I got an error during Package installation in Ubuntu O.S..
The last line of that error i am mentioning bellow.
update-initramfs: failed for /boot/initrd.img-2.6.31-20-generic-pae dpkg: subprocess installed post-installation script returned error exit status 1.
i tried to run some command like
apt-get update
dpkg --configure -a
dpkg-reconfigure -a
apt-get --fix-broken install (apt-get -f install)
But this command was not worked.
Finally after some test I got the solution.
I checked the total error line which specifies the package which has been corrupted.
"""""""""""""""""""""""""""""""
Setting up initramfs-tools (0.92bubuntu53) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.31-20-generic-pae
gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.31-20-generic-pae
dpkg: subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (2)
""""""""""""""""""""""""""""""""
Here the error code (2) is appeared for error code (1).
and the corrupted package for me is "initrd.img"
so then just I move that package to other location, (***don't delete it later it may require for you.)
"""""""""""""""""""""""""""""""""""
root@cloudtop:/boot# mv initrd.img-2.6.31-20-generic-pae /
""""""""""""""""""""""""""""""""""""
then I run
dpkg --configure -a
apt-get update
This has successfully configured it.
Now system is working fine and I can run apt-get without any error.
I don't know this is right procedure or not but its works for me.
Linux distributions support dozens of programming languages. The most popular collection of utilities for building both Linux applications and operating system programs was founded !!!22dd
ReplyDelete