错误如下:
Setting up linux-image-3.13.0-46-generic (3.13.0-46.76) …
Running depmod.
update-initramfs: deferring update (hook will be called later)
Failed to symbolic-link boot/initrd.img-3.13.0-46-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-3.13.0-46-generic.postinst line 629.
dpkg: error processing package linux-image-3.13.0-46-generic (–configure):
subprocess installed post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-46-generic:
linux-image-extra-3.13.0-46-generic depends on linux-image-3.13.0-46-generic; however:
Package linux-image-3.13.0-46-generic is not configured yet.dpkg: error processing package linux-image-extra-3.13.0-46-generic (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决办法如下:
sudo mv /var/lib/dpkg/info/linux-image-3.13.0-46-generic.postinst .