几天前,我在我的电脑上安装了Ubuntu,一切都正常运行。
碰巧我去了另一个国家,现在还在那里。所以每当我运行更新或尝试从Ubuntu软件中安装任何东西时,什么都不起作用,尽管我的互联网连接正常,我可以使用我的电脑访问互联网(我现在就是用它来写这些文字)。
我尝试将服务器更改为我现在所在国家的服务器之一,但没有效果。所以我改成了Ubuntu的主服务器,也没有效果。
我重新启动了电脑,运行了
每当我运行更新过程时,仍然会出现这些错误:
虽然 /etc/apt/sources.list 文件中包含了 Raffa 提到的链接。
碰巧我去了另一个国家,现在还在那里。所以每当我运行更新或尝试从Ubuntu软件中安装任何东西时,什么都不起作用,尽管我的互联网连接正常,我可以使用我的电脑访问互联网(我现在就是用它来写这些文字)。
我尝试将服务器更改为我现在所在国家的服务器之一,但没有效果。所以我改成了Ubuntu的主服务器,也没有效果。
我重新启动了电脑,运行了
sudo apt autoclean
和sudo apt clean
,但没有任何变化。每当我运行更新过程时,仍然会出现这些错误:
sudo apt update
Ign:1 http://archive.canonical.com/ubuntu bionic InRelease
Err:2 http://archive.canonical.com/ubuntu bionic Release
404 Not Found [IP: 91.189.92.191 80]
Ign:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Err:7 http://archive.ubuntu.com/ubuntu bionic Release
404 Not Found [IP: 91.189.88.174 80]
Err:8 http://archive.ubuntu.com/ubuntu bionic-updates Release
404 Not Found [IP: 91.189.88.174 80]
Err:9 http://archive.ubuntu.com/ubuntu bionic-backports Release
404 Not Found [IP: 91.189.88.174 80]
Err:10 http://archive.ubuntu.com/ubuntu bionic-security Release
404 Not Found [IP: 91.189.88.174 80]
Reading package lists... Done
E: The repository 'http://archive.canonical.com/ubuntu bionic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
有人知道如何修复这个问题吗?
编辑:
问题不是我在/etc/apt/sources.list
中没有正确的链接。我的问题是,当我运行更新时,在终端中显示的链接与我在/etc/apt/sources.list
中的链接不相似。
当我按照Raffa的建议更新了/etc/apt/sources.list
后,仍然出现类似的错误。
sudo apt update
Ign:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:4 http://security.ubuntu.com/ubuntu bionic-security Release
404 Not Found [IP: 91.189.91.14 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic Release
404 Not Found [IP: 91.189.88.31 80]
Err:6 http://archive.ubuntu.com/ubuntu bionic-updates Release
404 Not Found [IP: 91.189.88.31 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
虽然 /etc/apt/sources.list 文件中包含了 Raffa 提到的链接。
cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse universe restricted
/etc/apt/sources.list
中的链接不一样。 我会在我的问题中提供更多细节。 - singrium/etc/apt/sources.list
文件的一些内容是否可以吗?这似乎有点敏感。 - Boris Valderramasources.list
文件。 - Azade