Ubuntu 服务器更新期间获取失败

Ubuntu 服务器更新期间获取失败

我全新安装了 Ubuntu Server 19.10,它安装在华硕 F50sv 笔记本电脑上。笔记本电脑的屏幕出现故障,下半部分乱码,我无法读取任何内容。但我选择安装 SSH,并且可以通过 SSH 连接到服务器。

当我通过 SSH 登录并运行时:

sudo apt-get update   

我得到以下信息:

dave@unms:~$ sudo apt-get update
[sudo] password for dave:
Err:1 http://archive.ubuntu.com/ubuntu eoan InRelease
  Connection failed [IP: 91.189.88.162 80]
Err:2 http://archive.ubuntu.com/ubuntu eoan-updates InRelease
  Connection failed [IP: 91.189.88.31 80]
Err:3 http://archive.ubuntu.com/ubuntu eoan-backports InRelease
  Connection failed [IP: 91.189.88.174 80]
Err:4 http://archive.ubuntu.com/ubuntu eoan-security InRelease
  Connection failed [IP: 91.189.88.162 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan/InRelease  Connection failed [IP: 91.189.88.162 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-updates/InRelease  Connection failed [IP: 91.189.88.31 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-backports/InRelease  Connection failed [IP: 91.189.88.174 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/eoan-security/InRelease  Connection failed [IP: 91.189.88.162 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

我可以从 SSH 会话 ping 91.189.88.162。在同一网络上的 PC 上,我复制并粘贴了 URL,它带我进入了软件包列表。

我没有使用代理服务器,并且 DNS 在服务器上运行良好。

答案1

我的 中有以下记录/etc/apt/sources.list

deb http://ua.archive.ubuntu.com/ubuntu eoan main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan universe
deb http://ua.archive.ubuntu.com/ubuntu eoan multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates universe
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-security main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan-security universe
deb http://ua.archive.ubuntu.com/ubuntu eoan-security multiverse

我的配置中没有 InRelease。

但你可以检查一下文档关于此选项:

InRelease-Path (inrelease-path) 确定 InRelease 文件的路径,相对于 InRelease 文件的正常位置。默认情况下,此选项未设置,APT 将尝试获取 InRelease,如果失败,则获取 Release 文件及其关联的 Release.gpg 文件。通过设置此选项,将尝试使用指定的路径而不是 InRelease 文件,并且将禁用对 Release 文件的回退。

相关内容