LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Why is 'apt-get update' getting stuck? (https://www.linuxquestions.org/questions/ubuntu-63/why-is-apt-get-update-getting-stuck-4175556180/)

caffewmilk 10-14-2015 08:10 PM

Why is 'apt-get update' getting stuck?
 
Hi,

Recently, after running 'sudo apt-get update', and entering my password, it stops on this:

0% [Connecting to us.archive.ubuntu.com (2001:67c:1562::16)] [Connecting to sec


My only choice is to ctrl-c to stop the command. If I use the 'enter' key, the last number gets incremented.

:confused:

caffewmilk 10-14-2015 08:13 PM

Update: I went back to the open terminal window and it showed this:

Ign http://extras.ubuntu.com trusty InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Ign http://extras.ubuntu.com trusty/main Translation-en
62 [Connecting to us.archive.ubuntu.com (2001:67c:1562::14)] [Connecting to se

It's like advancing or running very very slooow...

frankbell 10-14-2015 08:33 PM

It is entirely possible that an individual repository might be off-line, overloaded, or experiencing connectivity or hardware problems.

Not everything on the internet works all the time. Stuff happens.

My hosting provider, who has been very reliable for the five years I've used it, guarantees only 99 per cent uptime. I have also noticed with my Mint box that one of the Ubuntu repos I can't say which one I just wait it out does tend to load more slowly than the others.

Give it a couple of hours or overnight to clear up.

Emerson 10-14-2015 09:24 PM

It is trying IPv6 address. Are you on IPv6 network?

caffewmilk 10-15-2015 08:00 AM

frankbell: I thought my provider was throttling my connection so I did a speedtest. The connection is still what I'm paying for, so I will just let it run its course as suggested. Thanks for the tip.

Emerson: I went ahead and setup IPv6 to 'ignore' in the wired connection, but even after that, the command output still shows an IPv6 address. Disabling IPv6 is one of the first things I did in Windows past. It slipped my mind when I converted full time to Linux. :)

caffewmilk 10-15-2015 08:08 AM

Update:

It finished after a while:

Fetched 4,292 kB in 12min 12s (5,860 B/s)
Reading package lists... Done

Now I'm looking to see if it's a 'mirror' issue. Thanks guys.

frankbell 10-15-2015 08:17 PM

Cool beans.

caffewmilk 10-16-2015 12:02 AM

Yep, mirror issue. I remembered back during install that it didn't ask for which mirrors to use, so it went with defaults. I switched it to a repo mirror local to my state and it's fast again. :cool:


All times are GMT -5. The time now is 07:29 PM.