Fix Errors by Reloading APT Index Files
During apt-get update fatal errors such as size mismatch may occur. These errors can often be resolved by reloading the index files. To do this we need to delete the current index files and then reload them:-
sudo rm /var/lib/apt/lists/*_*
sudo apt-get update
and hopefully that is it.
My Projects
Software and Debian packaging sources can be found on GitHub: https://github.com/m-grant-prg
Debian, Fedora, openSUSE and Raspbian packages can be found on the openSUSE Build Service: https://build.opensuse.org/project/show/home:m-grant-prg
Ubuntu packages can be found in my PPA on LaunchPad: https://code.launchpad.net/~m-grant-prg/+archive/ubuntu/utils
The entry point to my Ubuntu packages on LaunchPad: https://launchpad.net/~m-grant-prg
Subscribe to my newsletter
Read articles from Mark Grant directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Mark Grant
Mark Grant
I have spent many years in IT starting as a programmer in C and Basic then moving into general, data centre and infrastructure management. I am now back writing software mostly in bash and C. These are usually in the form of AutoTools projects which are often then packaged for various Linux distributions such as Debian, Raspbian, Ubuntu, Fedora and openSUSE.