There are many problems that have caused this problem. Some of them:
- Any entry in you apt.list does not work. You or any application created the wrong entry. Storage
- apt does not work.
- Corruption in / var / lib / apt / lists / folder.
So, for both of them there is another solution, if you do not know the exact problem, follow these steps:
- Use other apt mirrors. In ubuntu, there is a file name
/etc/apt/sources.list
and a folder containing some files in /etc/apt/sources.list.d/
. So, from there you can change the use of any other apt mirrors. How can you change your US repository to the US repository, etc. by editing these files. There is another possibility that you have some other link to the repository (third party) that is currently not responding. Thus, you can also delete them from the specified files. You can also remove all third-party repositories from the list.
rm -rf / etc / apt / sources.list.d / *
Delete all contents from /var/lib/apt/lists/
rm -rf / var / lib / apt / lists / *
source share