PDA

View Full Version : Superfast apt-get updates?



vasa1
August 7th, 2012, 12:08 PM
I've complained previously (http://askubuntu.com/questions/127522/why-are-my-apt-get-update-fetches-so-large/136777#136777) about the size of apt-get updates (~6 MB) and the time it took (~ 3 min). A few others had the same experience.

Today, I ran apt-get update twice a few hours apart. Both times the size was less than 1 MB just like how it was before Precise came along.

(Just to be clear, I'm talking about the data downloaded during apt-get update and not apt-get upgrade.)

Anyone else?

shubham1
August 7th, 2012, 02:48 PM
I've complained previously (http://askubuntu.com/questions/127522/why-are-my-apt-get-update-fetches-so-large/136777#136777) about the size of apt-get updates (~6 MB) and the time it took (~ 3 min). A few others had the same experience.

Today, I ran apt-get update twice a few hours apart. Both times the size was less than 1 MB just like how it was before Precise came along.

(Just to be clear, I'm talking about the data downloaded during apt-get update and not apt-get upgrade.)

Anyone else?
ok this is normal for me it takes even more time

Jakin
August 7th, 2012, 03:09 PM
In all the times i have used Ubuntu (or its variants), it never took more than 2mins (absolute tops) to update the cache. I wouldnt considered to have many repos, but its somewhere around 30ish sources.

I don't have a fast connection either. Also i clear that cache often..

vexorian
August 7th, 2012, 03:18 PM
I've complained previously (http://askubuntu.com/questions/127522/why-are-my-apt-get-update-fetches-so-large/136777#136777) about the size of apt-get updates (~6 MB) and the time it took (~ 3 min). A few others had the same experience.

Today, I ran apt-get update twice a few hours apart. Both times the size was less than 1 MB just like how it was before Precise came along.

(Just to be clear, I'm talking about the data downloaded during apt-get update and not apt-get upgrade.)

Anyone else?
It downloads the headers first. If there was no change in the repository's list in comparison to the list apt already has, then it does not download the new list. When you do apt-get update frequently, there is a good chance many lists will not need to be downloaded.

philinux
August 7th, 2012, 03:19 PM
15 seconds to update the cache.

I guess this will vary considerably due to ISP and ubuntu's servers.

vasa1
August 7th, 2012, 03:37 PM
The interesting thing for me is that until yesterday, ever since I moved to 12.04, data was > 6 MB. Today, it's been less than 1 MB.

vasa1
August 7th, 2012, 03:41 PM
See this: https://bugs.launchpad.net/launchpad/+bug/1001780

Comment #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."

And the next entry:

affects: apt (Ubuntu) → ubuntu
Changed in ubuntu:
status: Confirmed → Fix Released