我在生产环境中有一堆旧机器,都运行着 uBuntu 9.10。我现在想将其升级到 10.04 发行版,但我收到以下错误(我猜是因为存储库已过期)
The following packages have unmet dependencies:
update-manager-core: Depends: python-apt (>= 0.7.5) but it is not going to be installed
E: Broken packages
我的所有 apt-get update / apt-get upgrade 命令均失败并出现错误
Ign http://security.ubuntu.com jaunty-security Release.gpg
Ign http://us.archive.ubuntu.com jaunty Release.gpg
Ign http://us.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://security.ubuntu.com jaunty-security Release
Ign http://us.archive.ubuntu.com jaunty Release
Ign http://security.ubuntu.com jaunty-security/main Packages
Ign http://us.archive.ubuntu.com jaunty-updates Release
Ign http://security.ubuntu.com jaunty-security/restricted Packages
Ign http://security.ubuntu.com jaunty-security/main Sources
Ign http://security.ubuntu.com jaunty-security/restricted Sources
Ign http://us.archive.ubuntu.com jaunty/main Packages
Ign http://us.archive.ubuntu.com jaunty/restricted Packages
Ign http://us.archive.ubuntu.com jaunty/main Sources
Ign http://us.archive.ubuntu.com jaunty/restricted Sources
Ign http://us.archive.ubuntu.com jaunty/universe Packages
Ign http://security.ubuntu.com jaunty-security/main Packages
Ign http://security.ubuntu.com jaunty-security/restricted Packages
Ign http://security.ubuntu.com jaunty-security/main Sources
Ign http://us.archive.ubuntu.com jaunty/universe Sources
Ign http://us.archive.ubuntu.com jaunty-updates/universe Packages
Ign http://us.archive.ubuntu.com jaunty-updates/universe Sources
Ign http://us.archive.ubuntu.com jaunty/main Packages
Ign http://us.archive.ubuntu.com jaunty/restricted Packages
Ign http://us.archive.ubuntu.com jaunty/main Sources
Ign http://security.ubuntu.com jaunty-security/restricted Sources
Err http://security.ubuntu.com jaunty-security/main Packages
404 Not Found [IP: 91.189.92.166 80]
Ign http://us.archive.ubuntu.com jaunty/restricted Sources
Ign http://us.archive.ubuntu.com jaunty/universe Packages
Err http://security.ubuntu.com jaunty-security/restricted Packages
404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/main Sources
404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/restricted Sources
404 Not Found [IP: 91.189.92.166 80]
Ign http://us.archive.ubuntu.com jaunty/universe Sources
Ign http://us.archive.ubuntu.com jaunty-updates/universe Packages
Ign http://us.archive.ubuntu.com jaunty-updates/universe Sources
Err http://us.archive.ubuntu.com jaunty/main Packages
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty/restricted Packages
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty/main Sources
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty/restricted Sources
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty/universe Packages
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty/universe Sources
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty-updates/universe Packages
404 Not Found [IP: 91.189.92.171 80]
Err http://us.archive.ubuntu.com jaunty-updates/universe Sources
404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.166 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/restricted/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.166 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/main/source/Sources.gz 404 Not Found [IP: 91.189.92.166 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/source/Sources.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/restricted/source/Sources.gz 404 Not Found [IP: 91.189.92.166 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/source/Sources.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/source/Sources.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.171 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/source/Sources.gz 404 Not Found [IP: 91.189.92.171 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.
有人能帮我完成下一步并帮助我解决这个问题吗?如果有任何 PPA 或任何其他维护 update-manager-core 及其所有依赖项的存储库,那么我很乐意使用它。
感谢 Sparsh Gupta
答案1
以防万一LucidUpgrades不再起作用,直接从 Jaunty 转到 Lucid 并跳过 Karmic。首先备份有价值的数据,
以 root 身份运行:
cd /etc/apt
perl -i.bak -pe 's/jaunty/lucid/' sources.list
aptitude update
aptitude dist-upgrade