当我尝试运行 sudo apt-get update 时,出现许多 403 无法获取错误和存储库警告

当我尝试运行 sudo apt-get update 时,出现许多 403 无法获取错误和存储库警告

我正在尝试在虚拟机上的 Ubuntu 20.04 上使用 Python。我尝试安装 pip,并使用指令 get-update,结果出现了如下一长串错误。

有人知道问题是什么吗?我该怎么做才能解决它?谢谢。

joseemallah@joseemallah:~$ sudo apt-get update
Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease
403 Forbidden [IP: 91.189.88.142 80]
Err:2 http://il.archive.ubuntu.com/ubuntu focal InRelease
403 Forbidden [IP: 192.115.211.70 80]
Err:3 http://il.archive.ubuntu.com/ubuntu focal-updates InRelease
403 Forbidden [IP: 192.115.211.70 80]
Err:4 http://il.archive.ubuntu.com/ubuntu focal-backports InRelease
403 Forbidden [IP: 192.115.211.70 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://security.ubuntu.com/ubuntu focal-security InRelease' is no longer signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease 403 Forbidden [IP:
91.189.88.142 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://il.archive.ubuntu.com/ubuntu focal InRelease' is not signed.
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/focal/InRelease 403 Forbidden [IP:
192.115.211.70 80]
E: Failed to fetch http://il.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease 403 Forbidden [IP:
192.115.211.70 80]
E: The repository 'http://il.archive.ubuntu.com/ubuntu focal-updates InRelease' is not 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://il.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease 403 Forbidden [IP:
192.115.211.70 80]
E: The repository 'http://il.archive.ubuntu.com/ubuntu focal-backports InRelease' is not 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 软件”选项卡中更改服务器。您可以在“下载自:”旁边的下拉列表中更改服务器。如果无论选择哪个服务器,错误仍然存​​在,则怀疑您的网络配置和连接。

相关内容