我试图安装一个由于依赖关系而拒绝运行的deb包,在试图安装依赖项或操作系统更新失败之后,我卸载了deb包。因为有很多挂起的更新,所以我试着运行这些更新,但是源urls报告没有找到。
服务器: ubuntu 21.04
apt update
Hit:1 https://deb.nodesource.com/node_14.x hirsute InRelease
Hit:2 https://dl.yarnpkg.com/debian stable InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu hirsute InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu hirsute-updates InRelease
Ign:5 http://us.archive.ubuntu.com/ubuntu hirsute-backports InRelease
Ign:6 http://us.archive.ubuntu.com/ubuntu hirsute-security InRelease
Err:7 http://us.archive.ubuntu.com/ubuntu hirsute Release
404 Not Found [IP: 91.189.91.38 80]
Err:8 http://us.archive.ubuntu.com/ubuntu hirsute-updates Release
404 Not Found [IP: 91.189.91.38 80]
Err:9 http://us.archive.ubuntu.com/ubuntu hirsute-backports Release
404 Not Found [IP: 91.189.91.38 80]
Err:10 http://us.archive.ubuntu.com/ubuntu hirsute-security Release
404 Not Found [IP: 91.189.91.38 80]
Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu hirsute 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://us.archive.ubuntu.com/ubuntu hirsute-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://us.archive.ubuntu.com/ubuntu hirsute-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://us.archive.ubuntu.com/ubuntu hirsute-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.对如何解决这个问题有什么想法吗?
发布于 2022-08-14 20:49:13
Ubuntu21.04是非LTS版本,并被支持开始2022年。最好的解决方案是升级到当前的LTS版本- 22.04。如果不可能--将/etc/apt/ source .列表中的源代码更改为https://old-releases.ubuntu.com/ubuntu/ --这是一个过时的ubuntu版本的归档文件。
发布于 2022-08-17 14:23:32
解决这个问题的一个快速方法是运行:
sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list..。在apt update命令之前。
发布于 2022-08-14 15:59:37
https://serverfault.com/questions/1108176
复制相似问题