Monday, August 6, 2018

package management - /var/lib/apt/lists is huge


I've noticed that /var/lib/apt/lists is HUGE. It's as large as 86MB. Which seems a little too big. Is this normal? If not, what should I do?



When you run sudo apt-get update (or use the Refresh button in a package manager), a list of packages will get downloaded from the Ubuntu servers. These files are then stored in /var/lib/apt/lists/.


You can safely remove the contents of that directory as it is recreated when you refresh the package lists. If you remove the files, but do not run apt-get update to fetch the lists, commands like apt-cache will fail to provide information (since the cache is empty).


To shrink the directory and speed up fetching package lists, consider disabling some repositories that you do not need (see How to remove a repository?). This includes PPAs (see also How can PPAs be removed?)


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...