Apt-get 无法在 12.10 上更新

Apt-get 无法在 12.10 上更新

运行软件更新时,我收到一条消息,告诉我网络连接不再工作,或者无法下载存储库信息。我已经尝试重新启动计算机并从终端运行软件更新程序。我正在运行 Xubuntu 12.10。

sudo apt-get update输出如下:抱歉,终端的列表太长了,谢谢

sudo apt-get update
[sudo] password for bob: 

Ign http:/extras.ubuntu.com quantal InRelease
Ign http:/il.archive.ubuntu.com quantal InRelease                         
Hit http:/extras.ubuntu.com quantal Release.gpg                            
Ign http:/il.archive.ubuntu.com quantal-updates InRelease                  
Hit http:/extras.ubuntu.com quantal Release   
Ign http:/il.archive.ubuntu.com quantal-backports InRelease
Ign http:/security.ubuntu.com quantal-security InRelease             
Ign http:/il.archive.ubuntu.com quantal Release.gpg
Hit http:/extras.ubuntu.com quantal/main Sources
Ign http:/il.archive.ubuntu.com quantal-updates Release.gpg
Hit http:/extras.ubuntu.com quantal/main i386 Packages
Ign http:/security.ubuntu.com quantal-security Release.gpg
Ign http:/il.archive.ubuntu.com quantal-backports Release.gpg
Ign http:/il.archive.ubuntu.com quantal Release
Ign http:/security.ubuntu.com quantal-security Release
Ign http:/il.archive.ubuntu.com quantal-updates Release
Ign http:/il.archive.ubuntu.com quantal-backports Release           
Ign http:/extras.ubuntu.com quantal/main Translation-he_IL          
Ign http:/extras.ubuntu.com quantal/main Translation-he             
Ign http:/extras.ubuntu.com quantal/main Translation-en
Err http:/security.ubuntu.com quantal-security/main Sources
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/restricted Sources
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/universe Sources
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/multiverse Sources
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/main i386 Packages
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/restricted i386 Packages
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/universe i386 Packages
  404  Not Found [IP: 91.189.91.15 80]
Err http:/security.ubuntu.com quantal-security/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.15 80]
Ign http:/security.ubuntu.com quantal-security/main Translation-he_IL
Ign http:/security.ubuntu.com quantal-security/main Translation-he
Ign http:/security.ubuntu.com quantal-security/main Translation-en
Ign http:/security.ubuntu.com quantal-security/multiverse Translation-he_IL
Ign http:/security.ubuntu.com quantal-security/multiverse Translation-he
Ign http:/security.ubuntu.com quantal-security/multiverse Translation-en
Ign http:/security.ubuntu.com quantal-security/restricted Translation-he_IL
Ign http:/security.ubuntu.com quantal-security/restricted Translation-he
Ign http:/security.ubuntu.com quantal-security/restricted Translation-en
Ign http:/security.ubuntu.com quantal-security/universe Translation-he_IL
Ign http:/security.ubuntu.com quantal-security/universe Translation-he
Ign http:/security.ubuntu.com quantal-security/universe Translation-en
Err http:/il.archive.ubuntu.com quantal/main Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/restricted Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/universe Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/multiverse Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/main i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/restricted i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/universe i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal/multiverse i386 Packages
  404  Not Found
Ign http:/il.archive.ubuntu.com quantal/main Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal/main Translation-he
Ign http:/il.archive.ubuntu.com quantal/main Translation-en
Ign http:/il.archive.ubuntu.com quantal/multiverse Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal/multiverse Translation-he
Ign http:/il.archive.ubuntu.com quantal/multiverse Translation-en
Ign http:/il.archive.ubuntu.com quantal/restricted Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal/restricted Translation-he
Ign http:/il.archive.ubuntu.com quantal/restricted Translation-en
Ign http:/il.archive.ubuntu.com quantal/universe Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal/universe Translation-he
Ign http:/il.archive.ubuntu.com quantal/universe Translation-en
Err http:/il.archive.ubuntu.com quantal-updates/main Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/restricted Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/universe Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/multiverse Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/main i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/restricted i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/universe i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-updates/multiverse i386 Packages
  404  Not Found
Ign http:/il.archive.ubuntu.com quantal-updates/main Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-updates/main Translation-he
Ign http:/il.archive.ubuntu.com quantal-updates/main Translation-en
Ign http:/il.archive.ubuntu.com quantal-updates/multiverse Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-updates/multiverse Translation-he
Ign http:/il.archive.ubuntu.com quantal-updates/multiverse Translation-en
Ign http:/il.archive.ubuntu.com quantal-updates/restricted Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-updates/restricted Translation-he
Ign http:/il.archive.ubuntu.com quantal-updates/restricted Translation-en
Ign http:/il.archive.ubuntu.com quantal-updates/universe Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-updates/universe Translation-he
Ign http:/il.archive.ubuntu.com quantal-updates/universe Translation-en
Err http:/il.archive.ubuntu.com quantal-backports/main Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/restricted Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/universe Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/multiverse Sources
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/main i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/restricted i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/universe i386 Packages
  404  Not Found
Err http:/il.archive.ubuntu.com quantal-backports/multiverse i386 Packages
  404  Not Found
Ign http:/il.archive.ubuntu.com quantal-backports/main Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-backports/main Translation-he
Ign http:/il.archive.ubuntu.com quantal-backports/main Translation-en
Ign http:/il.archive.ubuntu.com quantal-backports/multiverse Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-backports/multiverse Translation-he
Ign http:/il.archive.ubuntu.com quantal-backports/multiverse Translation-en
Ign http:/il.archive.ubuntu.com quantal-backports/restricted Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-backports/restricted Translation-he
Ign http:/il.archive.ubuntu.com quantal-backports/restricted Translation-en
Ign http:/il.archive.ubuntu.com quantal-backports/universe Translation-he_IL
Ign http:/il.archive.ubuntu.com quantal-backports/universe Translation-he
Ign http:/il.archive.ubuntu.com quantal-backports/universe Translation-en
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/main/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/restricted/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/universe/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/multiverse/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/main/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/restricted/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/universe/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal/multiverse/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/main/source/Sources  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/restricted/source/Sources  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/universe/source/Sources  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/multiverse/source/Sources  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/security.ubuntu.com/ubuntu/dists/quantal-security/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/restricted/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/multiverse/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/restricted/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-updates/multiverse/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/main/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/restricted/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/universe/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/source/Sources  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/main/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/restricted/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/universe/binary-i386/Packages  404  Not Found
W: Failed to fetch http:/il.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

Xubuntu 12.10 不再受支持,它已达到使用寿命结束。弃用的软件包在 12 个月后被删除,所以看来是时候了。

为了使 apt-get update 工作,您只需编辑 /etc/apt/sources.list 并更新 security.ubuntu.com 和 archive.ubuntu.com 的所有 URL 以指向 old-releases.ubuntu.com,按照以下 sed 命令:

sudo sed -i.bak -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

如果您想升级系统,可以使用以下命令:

sudo apt-get install update-manager-core && do-release-upgrade

相关内容