首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >apt-get无法连接到Ubuntu档案

apt-get无法连接到Ubuntu档案
EN

Ask Ubuntu用户
提问于 2019-12-26 08:23:23
回答 5查看 125.8K关注 0票数 40

今天我刚刚安装了一个新版本的Ubuntu19.10,我决定首先使用sudo apt-get install screen安装GNU屏幕。我的产出是:

代码语言:javascript
运行
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package screen

我认为包档案没有完全更新,因为它是一个干净的安装,所以我尝试了sudo apt-get update。这就是我得到的:

代码语言:javascript
运行
复制
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只是坐在那里,没有任何回应。如果有人能帮忙,那就太好了!如果需要任何额外的信息,我很乐意把它编辑成问题。

EN

回答 5

Ask Ubuntu用户

回答已采纳

发布于 2019-12-26 09:16:00

我只是在一个评论员的帮助下解决了这个问题。我不得不转到“软件和更新”菜单,并将“下载从:”菜单更改为主服务器。看起来澳大利亚服务器有一个暂时的问题,我的系统没有什么问题。

有关服务器安装,请参见如何将Ubuntu中的镜像从区域性更改为main?

票数 50
EN

Ask Ubuntu用户

发布于 2020-06-27 09:52:42

我也有同样的问题,

代码语言:javascript
运行
复制
$ 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为我工作。若要编辑,请运行

代码语言:javascript
运行
复制
visudo /etc/apt/sources.list

在这里,您只需将所有http://**xx**.archive.ubuntu.com/ubuntu...替换为http://archive.ubuntu.com/ubuntu ...

就这样。重试

代码语言:javascript
运行
复制
sudo apt update
票数 22
EN

Ask Ubuntu用户

发布于 2022-04-17 09:47:32

在中,将Dns更改为8.8.8.8

代码语言:javascript
运行
复制
echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf

它起作用了

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

https://askubuntu.com/questions/1198621

复制
相关文章

相似问题

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