Score:0

sudo apt-get update connection time out Ubuntu 20.04.3 LTS

cl flag

On Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-89-generic x86_64) - Virtual Machine in a datacenter, I try to use apt-get update to install new package on my server but impossible to use it.

I have this error:

Err:1 http://archive.canonical.com/ubuntu focal InRelease
  Could not connect to archive.canonical.com:80 (91.189.92.150), connection timed out Could not connect to archive.canonical.com:80 (91.189.92.191), connection timed out Could not connect to archive.canonical.com:80 (91.189.91.15), connection timed out
Err:2 http://la.archive.ubuntu.com/ubuntu focal InRelease
  Could not connect to la.archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to la.archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to la.archive.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to la.archive.ubuntu.com:80 (91.189.91.38), connection timed out
Err:3 http://la.archive.ubuntu.com/ubuntu focal-updates InRelease
  Unable to connect to la.archive.ubuntu.com:http:
Err:4 http://la.archive.ubuntu.com/ubuntu focal-backports InRelease
  Unable to connect to la.archive.ubuntu.com:http:
Err:5 http://la.archive.ubuntu.com/ubuntu focal-security InRelease
  Unable to connect to la.archive.ubuntu.com:http:

My repository are the following:

deb http://la.archive.ubuntu.com/ubuntu focal main restricted
deb-src http://la.archive.ubuntu.com/ubuntu focal main restricted
deb http://la.archive.ubuntu.com/ubuntu focal-updates main restricted
deb-src http://la.archive.ubuntu.com/ubuntu focal-updates main restricted
deb http://la.archive.ubuntu.com/ubuntu focal universe
deb-src http://la.archive.ubuntu.com/ubuntu focal universe
deb http://la.archive.ubuntu.com/ubuntu focal-updates universe
deb-src http://la.archive.ubuntu.com/ubuntu focal-updates universe
deb http://la.archive.ubuntu.com/ubuntu focal multiverse
deb-src http://la.archive.ubuntu.com/ubuntu focal multiverse
deb http://la.archive.ubuntu.com/ubuntu focal-updates multiverse
deb-src http://la.archive.ubuntu.com/ubuntu focal-updates multiverse
deb http://la.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb-src http://la.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
deb http://la.archive.ubuntu.com/ubuntu focal-security main restricted
deb-src http://la.archive.ubuntu.com/ubuntu focal-security main restricted
deb http://la.archive.ubuntu.com/ubuntu focal-security universe
deb-src http://la.archive.ubuntu.com/ubuntu focal-security universe
deb http://la.archive.ubuntu.com/ubuntu focal-security multiverse
deb-src http://la.archive.ubuntu.com/ubuntu focal-security multiverse

I desactivate the IPv6 because I had an error: 101 network is unreachable. To do that, I modifier the /etc/sysctl.conf and add these lines:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

When I ping google, I got that response (I guess I don't use proxy because 172.217.31.78 is a public address):

64 bytes from kul08s07-in-f14.1e100.net (172.217.31.78): icmp_seq=1 ttl=115 time=60.1 ms
--- google.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
Same if I ping la.archive.ubuntu.com:80 (91.189.91.38), all my package transmitted are received.

Why I can't connect to the ubuntu repository ? I notice my port 80 is closed, is it the reason ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.