Download hangs with software update

Asked by Dave on 2018-05-11

Use software update, try to install wireshark. Claims installing, just hangs, no progress visible, no indication of a problem, no way to cancel it, no description of what is (or is not) happening, just a well we got this far and we are going to sit here doing fa while you wonder what is going on.

Not sure what is the fault - the software update software being very unhelpful, the download site dead, what ever I DO know the internet connection is working.

 sudo apt-get update
Get:1 https://packages.microsoft.com/repos/vscode stable InRelease [2 802 B]
Hit:1 https://packages.microsoft.com/repos/vscode stable InRelease
Err:2 https://download.docker.com/linux/ubuntu xenial InRelease
  Connection timed out after 120000 milliseconds
Err:3 http://package.perforce.com/apt/ubuntu xenial InRelease
  Could not connect to package.perforce.com:80 (107.1.244.180), connection timed out
Err:4 http://archive.ubuntu.com/ubuntu xenial InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Err:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Err:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Err:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/xenial/InRelease Connection timed out after 120000 milliseconds
W: Failed to fetch http://package.perforce.com/apt/ubuntu/dists/xenial/InRelease Could not connect to package.perforce.com:80 (107.1.244.180), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

Note firefox on the same machine can connect to the server (by name) and can download at least one sample file I chose. Firefox claims to be using system proxy settings.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu wireshark Edit question
Assignee:
No assignee Edit question
Last query:
2018-05-11
Last reply:
2018-05-11

What is the output of:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install wireshark

Thanks

Dave (d-hitchman) said : #2

sudo apt-get clean shows nothing
 sudo apt-get update
Get:1 https://packages.microsoft.com/repos/vscode stable InRelease [2 802 B]
Hit:1 https://packages.microsoft.com/repos/vscode stable InRelease
Err:2 https://download.docker.com/linux/ubuntu xenial InRelease
  Connection timed out after 120000 milliseconds
Err:3 http://package.perforce.com/apt/ubuntu xenial InRelease
  Could not connect to package.perforce.com:80 (107.1.244.180), connection timed out
Err:4 http://archive.ubuntu.com/ubuntu xenial InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Err:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Err:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Err:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::17). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001::17 80]
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/xenial/InRelease Connection timed out after 120000 milliseconds
W: Failed to fetch http://package.perforce.com/apt/ubuntu/dists/xenial/InRelease Could not connect to package.perforce.com:80 (107.1.244.180), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

firefox on the same machine downloads files from location with no issue. Firefox claims to be using the system settings

Try:

sudo apt-get -o Acquire::ForceIPv4=true update

Does that work OK?

Dave (d-hitchman) said : #4

no, it really is something with the way the command line and installers are trying to use the network, exactly the same times out.
command shell ping fails. Yet the same machines browser is happy as a sandboy

sudo apt-get -o Acquire::ForceIPv4=true update
[sudo] password for devel:
Get:1 https://packages.microsoft.com/repos/vscode stable InRelease [2 802 B]
Hit:1 https://packages.microsoft.com/repos/vscode stable InRelease
Err:2 https://download.docker.com/linux/ubuntu xenial InRelease
  Failed to connect to download.docker.com port 443: Connection timed out
Err:3 http://package.perforce.com/apt/ubuntu xenial InRelease
  Could not connect to package.perforce.com:80 (107.1.244.180), connection timed out
0% [Connecting to archive.ubuntu.com (91.189.88.162)]^

Dave (d-hitchman) said : #5

After a wild thought I notice that ping www.google.co.uk resolves the name but then fails but ping of microsoft doesnt resolve (so of course wont work)
I am now googling to see if anyone has an idea about that, from the list of responses I can at least be assured I am not the only one who has ended up stuffed by this.

Have you tried a different DNS server?

What is the output of:

cat /etc/resolv.conf

Can you help with this problem?

Provide an answer of your own, or ask Dave for more information if necessary.

To post a message you must log in.