Fix Errors by Reloading APT Index Files

Mark GrantMark Grant
1 min read

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

0
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.