Ubuntu 22.04 上的“apt update”失败,出现“403 Forbidden”错误

Ubuntu 22.04 上的“apt update”失败,出现“403 Forbidden”错误

使用以下命令更新 Ubuntu Server 22.04 时收到类似以下的错误消息sudo apt update

Err:2 http://id.archive.ubuntu.com/ubuntu jammy InRelease
  403  Forbidden [IP: 202.79.184.254 80]
Err:3 http://id.archive.ubuntu.com/ubuntu jammy-updates InRelease
  403  Forbidden [IP: 202.79.184.254 80]
Err:4 http://id.archive.ubuntu.com/ubuntu jammy-backports InRelease
  403  Forbidden [IP: 202.79.184.254 80]
Err:5 http://id.archive.ubuntu.com/ubuntu jammy-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://id.archive.ubuntu.com/ubuntu jammy InRelease' is no longer signed.
E: Failed to fetch http://id.archive.ubuntu.com/ubuntu/dists/jammy/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://id.archive.ubuntu.com/ubuntu jammy-updates InRelease' is no longer signed.
E: Failed to fetch http://id.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  403  Forbidden [IP: 202.79.184.254 80]
E: Failed to fetch http://id.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  403  Forbidden [IP: 202.79.184.254 80]
E: The repository 'http://id.archive.ubuntu.com/ubuntu jammy-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://id.archive.ubuntu.com/ubuntu/dists/jammy-security/InRelease  403  Forbidden [IP: 202.79.184.254 80]
E: The repository 'http://id.archive.ubuntu.com/ubuntu jammy-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

您可以尝试将下载位置改为,然后再试Main Server一次。Server for Indonesiasudo apt-get update

在此处输入图片描述

答案2

这个命令帮助我绕过那些无法升级的软件包:

sudo apt autoremove

答案3

我的错误是:

E: Failed to fetch https://repositories.intel.com/graphics/ubuntu/dists/jammy/InRelease  403  Forbidden [IP: **.**.***.** 443]` // some ip address
E: The repository 'https://repositories.intel.com/graphics/ubuntu jammy 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. 打开我的 VPN 连接。
  2. sudo apt-get update没有错误。
  3. 安装包没有出现错误。

所以我假设这个 PPA 服务器只允许通过 VPN 进行通信?

相关内容