Saturday, May 4, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2584  / 2 Years ago, wed, july 20, 2022, 12:07:47

I just updated from 11.04 to Ubuntu 12.04 by doing a fresh install.



I installed apt-cacher-ng and notice something strange about it. It's always downloading an index file (Packages.gz) even though the file exists in the apt-cacher-ng's cache.



This is what exactly happened :



On Ubuntu 10.10 & 11.04




  1. apt-cacher-ng installed & configured on my laptop, then I reload and install some packages

  2. After that I configure my friend's laptop with apt-cacher-ng proxy (192.168.1.1:3142), reloading repository was blazingly fast, finished in a second without using my Internet connection (checked on system monitor, total Received just 15kB)



On Ubuntu 11.10 & 12.04




  1. apt-cacher-ng installed and configured on my laptop, then I reload and install some packages

  2. After that I configure my friend's laptop with apt-cacher-ng proxy (192.168.1.1:3142), reloading repository was really slow!, apt-cacher-ng redownload the index file from the Internet.


More From » apt-cacher-ng

 Answers
3

The unexpected redownloads you experience are most likely caused by this bug in the archive infrastructure:



https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1001780



Every two hours all packages files are updated to the current date. Thus they count as new, even with unchanged content, and get downloaded again. This also affects the main distribution packages files which usually remain unchanged until a point release.



Please tick "this bug affects me too" on the launchpad page, if possible.


[#38936] Wednesday, July 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eryeath

Total Points: 122
Total Questions: 121
Total Answers: 112

Location: Saint Helena
Member since Fri, Aug 26, 2022
2 Years ago
;