Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just followed these instructions http://www.techrepublic.com/blog/ope...on-ubuntu/4343 on a fresh installed Ubuntu 13.04 and it crashed during installation with the following error message:

Code:

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.8.0-25-generic
cp: cannot stat ‘/module-files.d/libpango1.0-0.modules’: No such file or directory
cp: cannot stat ‘/modules/pango-basic-fc.so’: No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.8.0-25-generic with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
done.
done.
Processing triggers for ureadahead ...
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea what this is?

Many Thanks,

share|improve this question

1 Answer 1

I'm not sure if your problem is to do with dependencies or not, but if you install something with dpkg and it fails due to dependencies run

sudo apt-get install -f

This will complete the failed install and install the required packages.

I learned this from a 26k user the other day when I incorrectly advised someone to do it a very long winded way.

share|improve this answer
    
ahh interesting. so instead of sudo apt-get install gnome-shell ubuntu-gnome-desktop i do sudo apt-get install -f gnome-shell ubuntu-gnome-desktop ? –  Kave Jun 22 '13 at 10:31
    
after a dpkg has failed, just sudo apt-get install -f should fix it. The -f option is Force. –  SimplySimon Jun 22 '13 at 10:37
    
if you installed with apt-get and it failed with dependency issues, sudo apt-get build-dep <package> should sort it out –  SimplySimon Jun 22 '13 at 10:42

protected by Community Aug 28 '13 at 18:55

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.