我在我的系统上使用的是Ubuntu 20.04.3 LTS。
我遇到了一个错误已经持续了两天。我无法更新升级或安装软件包,我收到以下错误信息:
怎么解决这个问题?
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 http://archive.canonical.com/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:5 http://old-releases.ubuntu.com/ubuntu focal InRelease
Ign:6 http://old-releases.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://ppa.launchpad.net/kicad/kicad-5.1-releases/ubuntu focal InRelease
Hit:8 https://deb.opera.com/opera-stable stable InRelease
Hit:9 https://packages.microsoft.com/repos/vscode stable InRelease
Ign:10 http://old-releases.ubuntu.com/ubuntu focal-backports InRelease
Ign:11 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal InRelease
Ign:12 http://old-releases.ubuntu.com/ubuntu focal-security InRelease
Err:14 http://old-releases.ubuntu.com/ubuntu focal Release
404 Not Found [IP: 91.189.88.247 80]
Err:15 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Err:16 http://old-releases.ubuntu.com/ubuntu focal-updates Release
404 Not Found [IP: 91.189.88.247 80]
Hit:17 https://linux-clients.seafile.com/seafile-deb/focal stable InRelease
Err:18 http://old-releases.ubuntu.com/ubuntu focal-backports Release
404 Not Found [IP: 91.189.88.247 80]
Err:19 http://old-releases.ubuntu.com/ubuntu focal-security Release
404 Not Found [IP: 91.189.88.247 80]
Ign:13 https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded focal InRelease
Err:20 https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded focal Release
404 Not Found [IP: 91.189.89.222 443]
Reading package lists... Done
怎么解决这个问题?
old-releases
?Focal根本不是一个"旧版本"啊... - matigo/etc/apt/sources.list
文件并修复问题。Focal Fossa根本不是“旧版本”,因此URL自然会出现404错误。您需要将old-releases.ubuntu.com
替换为逻辑上的内容,例如archive.ubuntu.com
(或适用于您所在地区的内容)。 - matigosed
命令,从旧版本升级到了20.04。所以,可能他们之前使用的是17.04,并在他们的sources.list中将代号替换为focal。 - Error404apt update
的结果是什么? - Error404sudo apt update
来查找可升级的软件包。 - Error404