Apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]

1

When I do upgrade it gets stuck here:

user@plato:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bind9-host coreutils cpio curl dnsutils libbind9-90 libc-bin libc-dev-bin libc6 libc6-dev libcgmanager0 libcurl3 libcurl3-gnutls libdns100 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libisc95 libisccc90 libisccfg90 libjasper1 liblwres90 libplymouth2 libsepol1 libssl-dev libssl-doc libssl1.0.0 linux-libc-dev mime-support multiarch-support ntp ntpdate openssl plymouth plymouth-theme-ubuntu-text python3-distupgrade ubuntu-release-upgrader-core unzip 39 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 16.0 MB of archives. After this operation, 12.3 kB of additional disk space will be used. Do you want to continue? [Y/n] y 0% [Connecting to us.archive.ubuntu.com (2001:67c:1562::15)] ?

When I do update it gets...

0 0
2
...
0 0
3

Yesterday, I got one error with “apt-get” command in one of our server which has Ubuntu 12.04 OS. After the Y/N confirmation of apt-get installation command the server went to un-responded state for 4-6 minutes.
Error details are pasted below:

0% [Connecting to archive.ubuntu.com(2001:67c:1360:8c01::1a)]

Solution:
I figured out the problem. I had to disable IPv6 connectivity, as The Lord Of Time pointed out.
Running the following command in Terminal tells if IPv6 is enabled or not:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0 means its enabled 1 means its disabled

To disable IPv6 from within Terminal, enter the following and reboot:

echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf

After boot, re-run the first command(cat...

0 0
4

Installation gets stuck with the following error. I am able to ping us.archive.ubuntu.com though.

Here is the full log.

Code:

sudo apt-get install vim-gnome Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libbonoboui2-0 libbonoboui2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libruby1.9.1 libyaml-0-2 ruby ruby1.9.1 vim-gui-common vim-runtime Suggested packages: ri ruby-dev ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev ruby-switch cscope vim-doc ttf-dejavu The following NEW packages will be installed: libbonoboui2-0 libbonoboui2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libruby1.9.1 libyaml-0-2 ruby ruby1.9.1 vim-gnome vim-gui-common vim-runtime 0 upgraded, 13 newly installed, 0 to remove and 223 not upgraded. Need to get 9,264 kB of archives. After this operation, 43.7 MB of additional disk...
0 0
5

by

Pabi

Last Updated November 28, 2015 04:01 AM

When I run apt-get update on my machine it gets stuck at:

100% [Connecting to security.ubuntu.com (2001:67c:1562::15)] [Connecting to archive.canonical.com (2001:67c:1360:8c01::16)]

I have made no recent changes to the system and use my home network which worked fine previously.

I can't explain why it switched to using IPv6.
I have IPv6 set to ignore for the wireless network:

Ouput of ip addr:

1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: mlan0: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 4c:0b:be:22:0a:b4 brd ff:ff:ff:ff:ff:ff inet 192.168.2.106/24 brd 192.168.2.255 scope global dynamic mlan0 valid_lft 1814086sec preferred_lft 1814086sec inet6...
0 0
6

Ran into this issue today where on a newly made Linode Ubunu 14.04 LTS server I ran

apt-get update

The command started alright however eventually it would reach a point where it got stuck at

Connecting to security.ubuntu.com (2001:67c:1562::16)

And wouldn’t continue no matter what. Turns out this is an issue where connecting over IPv6 on some servers causes them to get stuck at this point. The fix is really simple.

Open /etc/gai.conf

Uncomment the following line:

# # For sites which prefer IPv4 connections change the last line to # precedence ::ffff:0:0/96 100

This will allow you to still use IPv6 but sets IPv4 as the precedence so that apt-get won’t get stuck.

Let me know if you have any...

0 0
7

Just installed Ubuntu 13.10 (Saucy) and anything I try to install via sudo apt-get install is failing and throwing a series of 404 erros.

Example - installing tmux

[jeeves@HAL] hadoop > sudo apt-get install tmux [sudo] password for jeeves: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: tmux 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 247 kB of archives. After this operation, 577 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! tmux Install these packages without verification [y/N]? Y Err http://us.archive.ubuntu.com/ubuntu/ saucy/main tmux amd64 1.8-4 404 Not Found [IP: 91.189.91.23 80] Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/tmux/tmux_1.8-4_amd64.deb 404 Not Found [IP: 91.189.91.23 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?...
0 0
8

root@vici:~# apt-get update

0% [Connecting to us.archive.ubuntu.com (91.189.88.40)] [Connecting to security. 0% [Connecting to us.archive.ubuntu.com (91.189.88.40)] [Connecting to security. 0% [Connecting to us.archive.ubuntu.com (91.189.88.40)] [Connecting to security. 0% [Connecting to us.archive.ubuntu.com (91.189.88.40)] [Connecting to security. 0% [Connecting to us.archive.ubuntu.com (91.189.88.46)] [Connecting to security.ubuntu.com (91.189.92.167)]

0% [Connecting to us.archive.ubuntu.com (91.189.88.46)] [Connecting to security.ubuntu.com (91.189.92.167)]

Err http://security.ubuntu.com hardy-security Release.gpg

Could not connect to security.ubuntu.com:80 (91.189.92.166), connection timed out [IP: 91.189.92.166 80]

Err http://security.ubuntu.com hardy-security/main Translation-en_US

Unable to connect to security.ubuntu.com http: [IP: 91.189.92.166 80]

Err...

0 0
9

I don't get whats the problem but when i try to run the following command :

sudo apt-get update

I was getting an output of sort...

0% [Connecting to us.archive.ubuntu.com (91.189.91.13)] [Connecting to security.ubuntu.com (91.189.92.184)] 0% [Connecting to us.archive.ubuntu.com (91.189.91.13)] [Connecting to security.ubuntu.com (91.189.92.184)] 0% [Connecting to us.archive.ubuntu.com (91.189.91.13)] [Connecting to security.ubuntu.com (91.189.92.184)] 0% [Connecting to us.archive.ubuntu.com (91.189.91.13)] [Connecting to security.ubuntu.com (91.189.92.184)]

and so on... but unable to download anything... :(...

I updated my resolv.conf file and is as follows:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8

the routing table looks like:

Kernel IP routing table Destination ...
0 0
10

I did a fresh install of Ubuntu 16.04 without being connected to the internet because when connected to the internet the install would lock up at the point that ubuntu was "Retrieving 56 of 56".

Installation (without internet) was successful, then I connected to the internet and tried to update:

The update-process seemed to be stuck, so I discovered that the command appstreamcli was at 100% processor utilization indefinitely.

When I kill that process the update fails. This is clearly a bug, but hopefully someone can suggest a work-around until it is fixed.

user@pc:~$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [92.2 kB]
Fetched 281 kB in 0s (387 kB/s)
Terminated
...

0 0
11

Hey /u/LapisExillis, thanks for being willing to help out. I have ran:

sudo apt update sudo apt install aptitude

And both of them have failed. The first, apt update gave this error:

sudo apt update Ign:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease Ign:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Ign:3 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease Err:4 http://us.archive.ubuntu.com/ubuntu xenial Release 404 Not Found [IP: 91.189.91.26 80] Err:5 http://us.archive.ubuntu.com/ubuntu xenial-updates Release 404 Not Found [IP: 91.189.91.26 80] Err:6http://us.archive.ubuntu.com/ubuntu xenial-backports Release 404 Not Found [IP: 91.189.91.26 80] Ign:7 http://security.ubuntu.com/ubuntu xenial-security InRelease Err:8 http://security.ubuntu.com/ubuntu xenial-security Release 404 Not Found [IP: 91.189.88.149 80] Reading package lists... Done E: The repository 'http://us.archive.ubuntu.com/ubuntu xenial Release' does not have a...
0 0