Err http://archive.ubuntu.com hardy-updates/main Sources
404 Not Found [IP: 91.189.92.202 80]
Hit http://eu-west-1.ec2.archive.ubuntucom precise/main Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com precise/multiverse Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com precise/universe Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/main Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/multiverse Translation-en
Err http://archive.ubuntu.com hardy-updates/multiverse Sources
404 Not Found [IP: 91.189.92.202 80]
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-updates/universe Translation-en
Err http://archive.ubuntu.com hardy-updates/main amd64 Packages
404 Not Found [IP: 91.189.92.202 80]
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-backports/main Translation-en
Err http://archive.ubuntu.com hardy-updates/multiverse amd64 Packages
404 Not Found [IP: 91.189.92.202 80]
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-backports/multiverse Translation-en
Err http://archive.ubuntu.com hardy-updates/main i386 Packages
404 Not Found [IP: 91.189.92.202 80]
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-backports/restricted Translation-en
Err http://archive.ubuntu.com hardy-updates/multiverse i386 Packages
404 Not Found [IP: 91.189.92.202 80]
Hit http://eu-west-1.ec2.archive.ubuntu.com precise-backports/universe Translation-en
Ign http://archive.ubuntu.com hardy-updates/main Translation-en_US
Ign http://archive.ubuntu.com hardy-updates/main Translation-en
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en_US
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/source/Sources 404 Not Found [IP: 91.189.92.202 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.92.202 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.202 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.92.202 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/binary-i386/Packages 404 Not Found [IP: 91.189.92.202 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.202 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
Ubuntu 8.04 Hardy Heron 的所有软件源都已过时,因为 Ubuntu 8.04 已达到使用寿命结束。打开终端,/etc/apt/sources.list
在 nano 中编辑,然后删除所有包含字符串的软件源哈代出现在其中:
sudo nano /etc/apt/sources.list
使用 nano 编辑器的说明总是位于每页的底部。您需要知道的仅有的两个 nano 键盘快捷键是Ctrl+ O(用于 WriteOut)和Ctrl+ X(用于 Exit)。在 nano 中完成编辑后,/etc/apt/sources.list
按下键盘组合Ctrl+ O,然后按下Enter保存 sources.list 文件。之后按下键盘组合Ctrl+X退出 nano。
然后更新可用软件列表。
sudo apt-get update
答案2
对于可能喜欢一句话的人:
sudo sed -ni '/old_release/!p' /etc/apt/sources.list
old_release
用 hardy 或任何您拥有的旧版本进行替换。