尝试安装 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,但它根本不存在。我怎么能忽略它呢?
答案1
aptitude
每次运行 时都会缓存可用软件包的版本 ID aptitude update
。如果 Ubuntu(或 Debian)发布了给定软件包的新版本,则旧版本将不再可用。尝试安装它将导致您看到的错误。sudo aptitude update
在安装之前重新运行将解决问题。您可能还想运行sudo aptitude autoclean
以删除可能已下载但不再需要的过时软件包文件(已被新版本取代)。
答案2
尝试 aptitude 更新