今天我刚刚安装了一个新版本的Ubuntu19.10,我决定首先使用sudo apt-get install screen
安装GNU屏幕。我的产出是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package screen
我认为包档案没有完全更新,因为它是一个干净的安装,所以我尝试了sudo apt-get update
。这就是我得到的:
Get:1 http://security.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB]
Err:2 http://au.archive.ubuntu.com/ubuntu eoan InRelease
Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) Could not connect to au.archive.ubuntu.com:80 (202.158.214.106), connection timed out
Err:3 http://au.archive.ubuntu.com/ubuntu eoan-updates InRelease
Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable)
Err:4 http://au.archive.ubuntu.com/ubuntu eoan-backports InRelease
Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable)
Fetched 97.5 kB in 31s (3,106 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/eoan/InRelease Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable) Could not connect to au.archive.ubuntu.com:80 (202.158.214.106), connection timed out
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/eoan-updates/InRelease Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable)
W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/eoan-backports/InRelease Cannot initiate the connection to au.archive.ubuntu.com:80 (2001:388:30bc:cafe::beef). - connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.
我真的不知道为什么它会这样做,除了一些第一次使用打嗝?这台电脑绝对是连接到互联网上的,因为我是在那台机器上写这篇文章的,我已经尝试过在重新启动后运行这些命令,但是它仍然会给出错误。我似乎根本无法连接到au.archive.ubuntu.com。ping au.archive.ubuntu.com
只是坐在那里,没有任何回应。如果有人能帮忙,那就太好了!如果需要任何额外的信息,我很乐意把它编辑成问题。
发布于 2019-12-26 09:16:00
我只是在一个评论员的帮助下解决了这个问题。我不得不转到“软件和更新”菜单,并将“下载从:”菜单更改为主服务器。看起来澳大利亚服务器有一个暂时的问题,我的系统没有什么问题。
有关服务器安装,请参见如何将Ubuntu中的镜像从区域性更改为main?
发布于 2020-06-27 09:52:42
我也有同样的问题,
$ sudo apt update
Could not connect to in.archive.ubuntu.com:80 (*2403:8940:ffff::f*), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
Err:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Unable to connect to in.archive.ubuntu.com:http:
Err:9 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Unable to connect to in.archive.ubuntu.com:http:
编辑/etc/apt/sources.list
为我工作。若要编辑,请运行
visudo /etc/apt/sources.list
在这里,您只需将所有http://**xx**.archive.ubuntu.com/ubuntu...
替换为http://archive.ubuntu.com/ubuntu ...
就这样。重试
sudo apt update
发布于 2022-04-17 09:47:32
在中,将Dns更改为8.8.8.8
echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf
它起作用了
https://askubuntu.com/questions/1198621
复制相似问题