One day, working at college, update manager notification appeared and I had the great idea to start downloading them while I was working. Big mistake. College network is the worst thing I’ve worked on, sometimes as fast as a roadrunner (over 1 Mbps… yes that is a megaBit) and sometimes as slow as a snail (335 bits per second the slowest I’ve seen), so as I expected, connection was broken in a few minutes and a message saying “failed” appeared on the download of a header update.
From past experiences, I know the result of ignoring the error and proceeding to install updates. The complete package tries to be installed, ignoring the fact that there was a mistake and when it completes the update, a message titled “broken packages” appears and then the entire system starts having trouble. That was on an update to evolution-mail, and I don’t want to imagine what would have happened on a header update.
I ended cancelling the update process, and starting looking for a solution in google, but any answer was simple or satisfying to my problem. A friend of mine finally gave me the solution: a simple line command written on a terminal (Applications -> Accessories -> Terminal).
When you open the terminal only write the next line:
sudo apt-get clean
After this, it will ask for your password.
This command safely deletes the downloaded packages (including those which were kept from precious installations). After cleaning, just refresh the Update Manager and the whole download will start again.
This command is also useful if you want to release some space in your disk. Every time you download an update or any complement from Synaptics, the file is saved first and then installed. By this way, system can access the package again without downloading it again in case of needing it. Many times packages will not be used again, but they are not deleted from your system.