首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >21.04 apt更新错误

21.04 apt更新错误
EN

Server Fault用户
提问于 2022-08-14 15:53:37
回答 3查看 11.6K关注 0票数 3

我试图安装一个由于依赖关系而拒绝运行的deb包,在试图安装依赖项或操作系统更新失败之后,我卸载了deb包。因为有很多挂起的更新,所以我试着运行这些更新,但是源urls报告没有找到。

服务器: ubuntu 21.04

代码语言:javascript
复制
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.

对如何解决这个问题有什么想法吗?

EN

回答 3

Server Fault用户

回答已采纳

发布于 2022-08-14 20:49:13

Ubuntu21.04是非LTS版本,并被支持开始2022年。最好的解决方案是升级到当前的LTS版本- 22.04。如果不可能--将/etc/apt/ source .列表中的源代码更改为https://old-releases.ubuntu.com/ubuntu/ --这是一个过时的ubuntu版本的归档文件。

票数 5
EN

Server Fault用户

发布于 2022-08-17 14:23:32

解决这个问题的一个快速方法是运行:

代码语言:javascript
复制
sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

..。在apt update命令之前。

票数 13
EN

Server Fault用户

发布于 2022-08-14 15:59:37

页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1108176

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档