LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-14-2015, 08:10 PM   #1
caffewmilk
LQ Newbie
 
Registered: Apr 2014
Location: Californ-i-a
Distribution: *ubuntu
Posts: 21
Blog Entries: 1

Rep: Reputation: Disabled
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.

 
Old 10-14-2015, 08:13 PM   #2
caffewmilk
LQ Newbie
 
Registered: Apr 2014
Location: Californ-i-a
Distribution: *ubuntu
Posts: 21

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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...
 
Old 10-14-2015, 08:33 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.

Last edited by frankbell; 10-14-2015 at 08:37 PM.
 
Old 10-14-2015, 09:24 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
It is trying IPv6 address. Are you on IPv6 network?
 
Old 10-15-2015, 08:00 AM   #5
caffewmilk
LQ Newbie
 
Registered: Apr 2014
Location: Californ-i-a
Distribution: *ubuntu
Posts: 21

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 10-15-2015, 08:08 AM   #6
caffewmilk
LQ Newbie
 
Registered: Apr 2014
Location: Californ-i-a
Distribution: *ubuntu
Posts: 21

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 10-15-2015, 08:17 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Cool beans.
 
Old 10-16-2015, 12:02 AM   #8
caffewmilk
LQ Newbie
 
Registered: Apr 2014
Location: Californ-i-a
Distribution: *ubuntu
Posts: 21

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf rasec8711 Linux - Software 2 05-31-2012 10:33 AM
Apt update stuck with "A copy of the C library was found in an unexpected directory" exoool Debian 20 10-31-2011 04:33 AM
[SOLVED] Apt-get update gets stuck while reading package list on my slug rolnics Debian 11 04-05-2010 07:59 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration