APT-GET performance improvement

On some network connections (particularly my corporate network), I had this issue when APT-GET was updating the repositories or downloading packages that it just would stand still for a minute or so and continue then.  This would happen after every 100KB or so.  I have found the following settings that improved the performance a lot and the stand still totally disappeared.  Enter the following in a terminal:
sudo gedit /etc/apt/apt.conf.d/80http
If the file 80http does not exist then create it.

Add the following lines to the file:

Acquire::http::Pipeline-Depth "0";
Acquire::http::No-Cache "true";
Acquire::http::Max-Age "0";

Save the file and now APT-GET should fly with your updates.

Technorati Tags: , ,

Leave a Response