首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >当我做sudo更新Ubuntu 22.04时找不到404

当我做sudo更新Ubuntu 22.04时找不到404
EN

Ask Ubuntu用户
提问于 2022-10-19 12:56:11
回答 1查看 510关注 0票数 0

当我试图更新UbuntuServer22.04中的apt存储库时,我得到了以下错误

代码语言:javascript
运行
复制
channaveer@channaveer:~$ sudo apt update
Ign:1 http://old-releases.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu impish-security InRelease
Ign:3 http://old-releases.ubuntu.com/ubuntu jammy-updates InRelease
Err:4 http://security.ubuntu.com/ubuntu impish-security Release
  404  Not Found [IP: 91.189.91.38 80]
Ign:5 http://old-releases.ubuntu.com/ubuntu jammy-backports InRelease
Ign:6 http://old-releases.ubuntu.com/ubuntu jammy-security InRelease
Err:7 http://old-releases.ubuntu.com/ubuntu jammy Release
  404  Not Found [IP: 91.189.91.124 80]
Err:8 http://old-releases.ubuntu.com/ubuntu jammy-updates Release
  404  Not Found [IP: 91.189.91.124 80]
Err:9 http://old-releases.ubuntu.com/ubuntu jammy-backports Release
  404  Not Found [IP: 91.189.91.124 80]
Err:10 http://old-releases.ubuntu.com/ubuntu jammy-security Release
  404  Not Found [IP: 91.189.91.124 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' does not have 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://old-releases.ubuntu.com/ubuntu jammy Release' does not have 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://old-releases.ubuntu.com/ubuntu jammy-updates Release' does not have 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://old-releases.ubuntu.com/ubuntu jammy-backports Release' does not have 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://old-releases.ubuntu.com/ubuntu jammy-security Release' does not have 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.

如何在执行sudo apt update时删除所有这些错误

以下是我的**/etc/apt/sources.list**

代码语言:javascript
运行
复制
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu jammy main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu jammy-updates main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu jammy universe
# deb-src http://old-releases.ubuntu.com/ubuntu jammy universe
deb http://old-releases.ubuntu.com/ubuntu jammy-updates universe
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu jammy multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy multiverse
deb http://old-releases.ubuntu.com/ubuntu jammy-updates multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-security main restricted
deb http://old-releases.ubuntu.com/ubuntu jammy-security universe
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-security universe
deb http://old-releases.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu jammy-security multiverse
EN

回答 1

Ask Ubuntu用户

发布于 2022-10-19 13:15:07

打开终点站。

编辑文件/etc/apt/Sourcees.list并删除无效条目,以用于impish和旧版本。

sudo nano /etc/apt/sudo.列表

保存文件并重新尝试apt升级。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1436187

复制
相关文章

相似问题

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