更新 Ubuntu 12.10 时出现依赖问题

更新 Ubuntu 12.10 时出现依赖问题

尝试更新系统时出现以下错误:

user# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-3.5.0-25-generic (3.5.0-25.39) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Failed to symbolic-link /boot/initrd.img-3.5.0-25-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-3.5.0-25-generic.postinst line 614.
dpkg: error processing linux-image-3.5.0-25-generic (--configure):
 subprocess installed post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-extra-3.5.0-25-generic:
 linux-image-extra-3.5.0-25-generic depends on linux-image-3.5.0-25-generic; however:
  Package linux-image-3.5.0-25-generic is not configured yet.

dpkg: error processing linux-image-extra-3.5.0-25-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.5.0-25-generic
 linux-image-extra-3.5.0-25-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

有什么建议么?

答案1

你只是在更新管理器中缺少更新源。清除文件,

sudo apt-get purge linux-image-extra-3.5.0-25-generic

相关内容