我是 Linux 新手。我正在尝试更新 Ubuntu (4.15.0-153)。当我运行时sudo apt-get update
,出现以下错误:
Err:1 http://sg.archive.ubuntu.com/ubuntu bionic InRelease
403 Forbidden [IP: 202.79.184.254 80]
Err:2 http://sg.archive.ubuntu.com/ubuntu bionic-updates InRelease
403 Forbidden [IP: 202.79.184.254 80]
Err:3 http://sg.archive.ubuntu.com/ubuntu bionic-backports InRelease
403 Forbidden [IP: 202.79.184.254 80]
Err:4 http://sg.archive.ubuntu.com/ubuntu bionic-security InRelease
403 Forbidden [IP: 202.79.184.254 80]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://sg.archive.ubuntu.com/ubuntu bionic InRelease' is no longer signed.
E: Failed to fetch http://sg.archive.ubuntu.com/ubuntu/dists/bionic/InRelease 403 Forbidden [IP: 202.79.184.254 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://sg.archive.ubuntu.com/ubuntu bionic-updates InRelease' is no longer signed.
E: Failed to fetch http://sg.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 403 Forbidden [IP: 202.79.184.254 80]
E: Failed to fetch http://sg.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 403 Forbidden [IP: 202.79.184.254 80]
E: The repository 'http://sg.archive.ubuntu.com/ubuntu bionic-backports InRelease' is no longer signed.
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: Failed to fetch http://sg.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease 403 Forbidden [IP: 202.79.184.254 80]
E: The repository 'http://sg.archive.ubuntu.com/ubuntu bionic-security InRelease' is no longer signed.
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.
答案1
尝试从 Ubuntu 软件下的软件和更新设置中更改下载服务器。我这样做了,问题解决了。
答案2
对我来说,这是新加坡服务器“download.nus.edu/mirror/ubuntu”的问题。
正如@KorbanProyek 提到的,通过以下方式更改下载服务器:
- 打开软件和更新
- 打开下载自
- 滚动到新加坡
- 选择(例如)第二个条目
答案3
您可以尝试将下载位置切换至主服务器,而不是新加坡服务器。然后再次执行 sudo apt-get update。
来源: