首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu服务器20.04无法更新

Ubuntu服务器20.04无法更新
EN

Ask Ubuntu用户
提问于 2021-03-17 22:03:56
回答 1查看 830关注 0票数 2

我刚刚在一个旧的HP裸金属服务器上安装了UbuntuServer20.04LTS。我不得不在systemd下更新resolv.conf文件,但现在我可以ping archive.ubuntu.com了。我甚至可以查找它们并获得dns名称的解析。看来我肯定要出去了。

我不能做一个apt-获取更新,因为它总是回来,并说它无法连接到网络。有人知道会发生什么事吗?

防火墙也不在我的两台计算机上。我有一个桌面pc运行相同的Ubuntu服务器在virtualbox,是无法更新,除非它是在NAT网络模式下运行。当我以桥接网络模式运行它时,它无法更新。

代码语言:javascript
复制
# 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.
代码语言:javascript
复制
~$ 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
代码语言:javascript
复制
~$ 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
EN

回答 1

Ask Ubuntu用户

发布于 2021-03-18 21:23:39

问题在于我们的网络。如果windows计算机是新安装的,那么它有与Ubuntu系统相同的问题。它可以平,并解析域名,但没有http活动。我不知道这些设置是什么,但是当windows系统被添加到我们网络中的Active Directory域中时,如果它没有连接,它就可以到达internet。防火墙或本地windows机器上没有代理,所以我不确定是什么阻止了它。我还在努力找出是什么设置导致了这一切。防火墙是为这个系统的IP开放的,所以它是Windows AD世界中的东西,是由Windows服务管理的网络服务(如DHCP和DNS )。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1324304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档