ubuntu中的Apt:无法获取url:找不到404


3

尝试安装gvim:

soid@ubuntu:~$ sudo aptitude install vim-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following NEW packages will be installed:
  gvfs{a} gvfs-backends{a} indicator-application{a} libappindicator0{a} libbonoboui2-0{a} libdbusmenu-gtk1{a} libgail18{a} libglade2-0{a} libgnome2-0{a}
  libgnomecanvas2-0{a} libgnomeui-0{a} libgtk2.0-0{a} libgtk2.0-bin{a} libgtk2.0-common{a} libindicator0{a} libsoup-gnome2.4-1{a} libsoup2.4-1{a}
  policykit-1-gnome{a} vim-gnome
0 packages upgraded, 19 newly installed, 0 to remove and 17 not upgraded.
Need to get 4,083kB/6,907kB of archives. After unpacking 41.5MB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libgtk2.0-common 2.20.1-0ubuntu1
  404  Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libgtk2.0-0 2.20.1-0ubuntu1
  404  Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libsoup2.4-1 2.30.1-0ubuntu1
  404  Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libsoup-gnome2.4-1 2.30.1-0ubuntu1
  404  Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libgail18 2.20.1-0ubuntu1
  404  Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libgtk2.0-bin 2.20.1-0ubuntu1
  404  Not Found [IP: 91.189.88.30 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/libgtk2.0-common_2.20.1-0ubuntu1_all.deb: 404  Not Found [IP: 91.189.88.30 80]

我已经在其他镜像上检查了ubuntu / pool / main / g / gtk + 2.0 / libgtk2.0-common_2.20.1-0ubuntu1_all.deb,但是它在任何地方都不存在。我怎么能越过呢?

Answers:


4

aptitude每次运行时都会缓存可用软件包的版本ID aptitude update。如果Ubuntu(或Debian)发行给定软件包的新版本,则旧版本将不再可用。尝试安装它会导致您看到的错误。sudo aptitude update在安装前重新运行将解决此问题。您可能还想运行一些程序,sudo aptitude autoclean以摆脱可能已下载但已不再需要的过时软件包文件(已被较新版本取代)。


谢谢,在sudo apt-get install aptitude和sudo aptitude更新之后,我可以再次运行更新。:)
eddy147

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.