Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running xubuntu off of a USB and I'm trying to run the command

sudo apt-get upgrade

but I keep getting this error

Failed to symbolic-link /boot/initrd.img-3.8.0-19-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postinst line 614.
dpkg: error processing linux-image-extra-3.8.0-19-generic (--configure):
 subprocess installed post-installation script returned error exit status 17
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

for starters I've looked at this and other similar posts and have tried

sudo apt-get -f install

as well as removing the bad link, but with no success.

What I'm thinking about doing is unlinking unlink the bad image and the linking ln the file /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postinst but I'm afraid I'll screw something up.

How can I resolve this?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.