Сервер Ubuntu 20.04 не может обновить

Я только что установил Ubuntu Server 20.04 LTS на старый голый сервер HP. Мне пришлось обновить файл resolv.conf в systemd, но теперь я могу пинговать archive.ubuntu.com. Я могу даже nslookup их и получить разрешение для имени DNS. Похоже, я определенно выхожу.

Я не могу выполнить обновление с помощью apt-get, поскольку оно всегда возвращается и сообщает, что не может подключиться к сети. Кто-нибудь знает, что может происходить?

Брандмауэра нет ни на одном из моих компьютеров. У меня есть настольный компьютер с тем же сервером Ubuntu в виртуальном боксе, который не может обновляться, если он не работает в сетевом режиме NAT. Когда я запускаю его в режиме мостовой сети, он не может обновляться.

# apt-get update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Unable to connect to archive.ubuntu.com:http:
Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  Unable to connect to archive.ubuntu.com:http:
Err:4 http://archive.ubuntu.com/ubuntu focal-security InRelease
  Unable to connect to archive.ubuntu.com:http:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/InRelease  Unable to connect to archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
~$ nslookup archive.ubuntu.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:   archive.ubuntu.com
Address: 91.189.88.152
Name:   archive.ubuntu.com
Address: 91.189.88.142
Name:   archive.ubuntu.com
Address: 2001:67c:1360:8001::24
Name:   archive.ubuntu.com
Address: 2001:67c:1360:8001::23
~$ ping archive.ubuntu.com
PING archive.ubuntu.com (91.189.88.142) 56(84) bytes of data.
64 bytes from aerodent.canonical.com (91.189.88.142): icmp_seq=1 ttl=54 time=131 ms
64 bytes from aerodent.canonical.com (91.189.88.142): icmp_seq=2 ttl=54 time=131 ms
64 bytes from aerodent.canonical.com (91.189.88.142): icmp_seq=3 ttl=54 time=131 ms
64 bytes from aerodent.canonical.com (91.189.88.142): icmp_seq=4 ttl=54 time=131 ms
64 bytes from aerodent.canonical.com (91.189.88.142): icmp_seq=5 ttl=54 time=131 ms
64 bytes from aerodent.canonical.com (91.189.88.142): icmp_seq=6 ttl=54 time=131 ms
1
задан 18 March 2021 в 01:38

0 ответов

Другие вопросы по тегам:

Похожие вопросы: