apt-get update size is too big
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Launchpad itself |
Undecided
|
Unassigned | ||
| Ubuntu |
Undecided
|
Unassigned |
Bug Description
I ran a clean install to Ubuntu 12.04 and so far everything has been working well. I especially commend the Ubuntu team for this release.
I only noticed that the size of repository update is now about ~13MB. Normally, it is about this size for the first time you run apt-get update after a clean install and then ~ 23kb - 1300kb for subsequent updates. However now it looks like it gets 13MB and bigger every now and then.
Using us.archive.
Launchpad shouldn't recreating the Package files when no changes have been made to the contained packages.
#http://
affects: | launchpad → apt (Ubuntu) |
summary: |
- apt-get update cache size is too big + apt-get update size is too big |
zpletan (zpletan) wrote : | #2 |
A look at us.archive.
John S. Gruber (jsjgruber) wrote : | #3 |
Terminal logs of http headers showing changing modification times and md5sums of the unchanging files. Included both archives.ubuntu.com and us.archives.
John S. Gruber (jsjgruber) wrote : | #4 |
Is this possibly related to the optimizations mentioned in https:/
William Grant (wgrant) wrote : | #5 |
It's not a Launchpad problem. From the master copy of the archive:
-rw-r--r-- 1 lp_publish lp_publish 1.5M Sep 20 2008 /srv/launchpad.
Since http://
But one could also argue that apt still shouldn't regrab the file, since Release still has the same hashes for it.
Changed in launchpad: | |
status: | New → Invalid |
William Grant (wgrant) wrote : | #6 |
https:/
John S. Gruber (jsjgruber) wrote : | #7 |
I've been able to circumvent this problem by touching the appropriate files in /var/lib/apt/lists/ right before updating the apt cache.
zpletan (zpletan) wrote : | #8 |
@jsjgruber, if I touch the files, will they still be downloaded if info has been changed?
John S. Gruber (jsjgruber) wrote : | #9 |
@zpletan, touching them stops them from being downloaded. You should only touch the files that haven't changed since you downloaded them. By appropriate files I'm speaking of the files that were frozen at the release of the release you are running (those are the ones giving people trouble until the bug is fixed). You shouldn't use the touch command on any others, or against Quantal--its main and universe repos are active.
In this case touching a file just says it was current at the time you run the touch command (it makes the last modification time the current time).
There's detail in: http://
David T (ubuntuwiki-datmail) wrote : | #10 |
touching 4 files on 50+ servers every 60mins is not practical. Sure hope a patch appears soon. Problem started 4/26/2012 (+ or - a day), I saw the major spike in my bandwidth usage around there.
John S. Gruber (jsjgruber) wrote : | #11 |
A fix would save a lot of bandwidth for users, mirrors, and Canonical. A fix would be great. Most users don't know about any circumventions, of course, and many don't even realize there is a problem.
Nevertheless I'm afraid I don't understand your comment. Your system should normally be downloading from the repositories on just one server and you should be touching just these four files on your system. Am I missing something? If the directions on askubuntu.com aren't clear I'd like to clarify them.
David T (ubuntuwiki-datmail) wrote : | #12 |
I am feeling this bug so much because I am a specialized hosting provider and chose Ubuntu as my primary linux distro. I have 50+ individual servers in 2 sets of racks, all of them checking for security updates every 60 minutes.
I feel the 120GB in the last 25'ish days :/
J Phani Mahesh (phanimahesh) wrote : | #13 |
Suggestion:
----------------
How about using zsync for downloading the lists?
Practically feasible solution, with no additional server side overload.
@David: If you have 50 servers that poll for updates every 60 minutes, I suggest you set up a caching server. That saves a lot of bandwidth. I suggest squid-deb-proxy or something similar.
could somebody please assign an adequate importance to this bug
David T (ubuntuwiki-datmail) wrote : | #15 |
I'm amazed that every ubuntu mirror hasn't gone up in arms about this bug. They must be feeling it. Went from 40k-13000k that's what a 325+ fold increase in their outbound bandwidth levels. They must have massive pipes and don't care. :/
Jane Atkinson (irihapeti) wrote : | #16 |
Not everyone has high-bandwidth plans. I'll probably have to move to a low-bandwidth plan shortly and downloading 12 MB or so daily is going to hurt.
William Grant (wgrant) wrote : | #17 |
The internal mirror script has been fixed to not clobber the timestamps for old files, so this should no longer be a big problem.
affects: | apt (Ubuntu) → ubuntu |
Changed in ubuntu: | |
status: | Confirmed → Fix Released |
Martin Lee (hellnest) wrote : | #18 |
The issue is stille exist on 13.10
Javier López (javier-lopez) wrote : | #19 |
I've seen this issue again in Ubuntu 14.04 currently being developed. On every $ sudo apt-get update #even when they're run one after the other, apt-get keeps downloading 19.8MB~
apt:
Installed: 0.9.13.1~ubuntu1
Candidate: 0.9.13.1~ubuntu1
Version table:
*** 0.9.13.1~ubuntu1 0
500 http://
100 /var/lib/
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
Alan (alanjas) wrote : | #20 |
I have the same problem in Ubuntu 14.04 (trusty).
I run apt-get update and every time it downloads 15,5 MB !!
Seeing the output, I see that every time downloads the same file!!
It's the SAME file because have exactly same size! Maybe only changes the timestamp..
there are some.. this are the first:
Des:1 http://
Des:2 http://
Des:3 http://
Des:4 http://
...
Des:8 http://
Des:32 http://
Faheem Ahmed (faheem-webmaster) wrote : | #21 |
I'm also having this bug on Ubuntu 14.04 LTS
Each time I run 'sudo apt-get update' it fetches 22.5MB.
Dave (dv1) wrote : | #22 |
Likewise - Just upgraded to 14.04, and downloading 15.1MB per apt-get update (although not absolutely _every_ time, perhaps the first time each hour?)
(Need a new launchpad button for "This bug now affects me _again_")
Gunji (mgpatt-deactivatedaccount) wrote : | #23 |
I'm having this error as well after upgrading from 12.04 LTS to 14.04 LTS. I'm having to download 37MB+ every time I run the software updater and/or use apt-get. I've tired using some of the tricks above, like using touch and disabling some repos, but it's still happening.
It's tolerable for the time being while I'm using an unmetered fast connection, but it would be insanely painful if I was using a metered, slow connection. (Say, off the top of my head, like some Australian users.)
John S. Gruber (jsjgruber) wrote : | #24 |
This particular bug report was marked fixed. Please open another against Ubuntu itself (like this one), tag it a regression, and mention this bug report.
Thanks.
Status changed to 'Confirmed' because the bug affects multiple users.