我今天刚刚安装了新版本的 Ubuntu 19.10,我决定做的第一件事是安装 GNU Screen,使用sudo apt-get install screen. 我的输出是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package screen
Run Code Online (Sandbox Code Playgroud)
我认为软件包档案没有完全更新,因为它是全新安装,所以我尝试了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.
Run Code Online (Sandbox Code Playgroud)
我真的不知道为什么会这样做,除了一些首次使用的小问题?计算机肯定已连接到互联网,因为我是从那台机器上写的,我尝试在重新启动后运行命令,但它仍然给出错误。我似乎根本无法连接到 au.archive.ubuntu.com。ping au.archive.ubuntu.com只是坐在那里没有反应。如果有人可以提供帮助,那就太好了!如果需要任何额外信息,我很乐意将其编辑到问题中。
Arc*_*ect 28
我刚刚在评论者的帮助下解决了这个问题。我必须转到“软件和更新”菜单并将“下载自:”菜单更改为主服务器。澳大利亚服务器似乎确实存在临时问题,而我的系统没有任何问题。
对于服务器安装,请参阅如何将 Ubuntu Server 中的镜像从区域更改为主?
小智 13
我有同样的问题,
$ 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:
Run Code Online (Sandbox Code Playgroud)
编辑/etc/apt/sources.list对我有用。要编辑,运行
visudo /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
在那里你只需要全部替换http://**xx**.archive.ubuntu.com/ubuntu...为http://archive.ubuntu.com/ubuntu ...
就是这样。重试
sudo apt update
Run Code Online (Sandbox Code Playgroud)
小智 8
在 ubunto 服务器中将 Dns 更改为 8.8.8.8
echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf
Run Code Online (Sandbox Code Playgroud)
有用
| 归档时间: |
|
| 查看次数: |
36151 次 |
| 最近记录: |