Ubuntu 22.10 Kinetic 无法更新 archive.ubuntu.com 并忽略它

Ubuntu 22.10 Kinetic 无法更新 archive.ubuntu.com 并忽略它

我遇到了一些问题。今天似乎没有问题,昨天还好。发生了什么事?我该怎么办?我只是想用sudo apt update

Ign:1 http://archive.ubuntu.com/ubuntu kinetic InRelease
Ign:2 http://archive.ubuntu.com/ubuntu kinetic-updates InRelease
Ign:3 http://archive.ubuntu.com/ubuntu kinetic-backports InRelease
Ign:4 http://archive.ubuntu.com/ubuntu kinetic-security InRelease
Err:5 http://archive.ubuntu.com/ubuntu kinetic Release
  404  Not Found [IP: 185.125.190.36 80]
Err:6 http://archive.ubuntu.com/ubuntu kinetic-updates Release
  404  Not Found [IP: 185.125.190.36 80]
Err:7 http://archive.ubuntu.com/ubuntu kinetic-backports Release
  404  Not Found [IP: 185.125.190.36 80]
Err:8 http://archive.ubuntu.com/ubuntu kinetic-security Release
  404  Not Found [IP: 185.125.190.36 80]
Reading package lists... Done
E: The repository 'http://archive.ubuntu.com/ubuntu kinetic 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 kinetic-updates 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 kinetic-backports 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 kinetic-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.

我有互联网。我的虚拟机安装在 Proxmox 上,昨天它运行正常。

我的网络计划是:

network:
  ethernets:
    ens18:
      dhcp4: no:( And m
      dhcp6: no
      addresses:
        - 192.168.122.205/24
      routes:
        - to: default
          via: 192.168.122.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
  version: 2
  renderer: networkd`

答案1

Ubuntu 22.10 不再受支持并且archive.ubuntu.com不再提供此版本的软件包。请关注Ubuntu 升级文档获取当前版本。

就我而言,/etc/apt/sources.list我替换了*.archive.ubuntu.com源以old-releases.ubuntu.com使更新再次正常运行:

sudo sed -i 's|http://\([a-z0-9.-]*\)\.archive.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|' /etc/apt/sources.list

此后,建议更新到较新的版本:

do-release-upgrade

相关内容