为什么更新时会出现“无法符号链接 /boot/initrd.img”的错误?

为什么更新时会出现“无法符号链接 /boot/initrd.img”的错误?

我尝试更新 Ubuntu 但收到以下错误:

Setting up linux-image-3.2.0-24-generic (3.2.0-24.39) ...
Running depmod.
Failed to symbolic-link /boot/initrd.img-3.2.0-24-generic to initrd.img: File exists
dpkg: error processing linux-image-3.2.0-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 17
Setting up firefox (13.0+build1-0ubuntu0.12.04.1) ...
Installing new version of config file /etc/apparmor.d/usr.bin.firefox ...
Please restart all running instances of firefox, or you will experience problems.
Setting up firefox-globalmenu (13.0+build1-0ubuntu0.12.04.1) ...
Setting up firefox-gnome-support (13.0+build1-0ubuntu0.12.04.1) ...
Setting up firefox-locale-en (13.0+build1-0ubuntu0.12.04.1) ...
Errors were encountered while processing:
 linux-image-3.2.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

我能做些什么?

答案1

sudo rm /initrd.img(它只是一个符号链接)

其次是sudo apt-get -f install linux-image-3.2.0-24-generic

相关内容