error message - cannot update my machine #2

David Vincent dvincent at sleepdeprived.ca
Sat Aug 23 13:55:07 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jreeves at nf.sympatico.ca wrote:
> Quoting my machine:
> 
> -----------------------------------
> 
> jr at lc:~# sudo apt-get autoclean
> 
> E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
> 
> jr at lc:~# sudo dpkg --configure -a
> 
> Setting up initramfs-tools (0.85eubuntu39.2) ...
> update-initramfs: deferring update (trigger activated)
> 
> Setting up linux-image-2.6.24-19-generic (2.6.24-19.36) ...
> 
> Running depmod.
> 
> update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
> 
> gzip: stdout: No space left on device
> 
> update-initramfs: failed for /boot/initrd.img-2.6.24-19-generic
> 
> Failed to create initrd image.
> 
> dpkg: error processing linux-image-2.6.24-19-generic (--configure):
>  subprocess post-installation script returned error exit status 2
> 
> dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.24-19-generic:
> 
>  linux-restricted-modules-2.6.24-19-generic depends on linux-image-2.6.24-19-generic; however:
> 
>   Package linux-image-2.6.24-19-generic is not configured yet.
> 
> dpkg: error processing linux-restricted-modules-2.6.24-19-generic (--configure):
> 
>  dependency problems - leaving unconfigured
> 
> dpkg: dependency problems prevent configuration of linux-ubuntu-modules-2.6.24-19-generic:
> 
>  linux-ubuntu-modules-2.6.24-19-generic depends on linux-image-2.6.24-19-generic; however:
> 
>   Package linux-image-2.6.24-19-generic is not configured yet.
> 
> dpkg: error processing linux-ubuntu-modules-2.6.24-19-generic (--configure):
> 
>  dependency problems - leaving unconfigured
> 
> Processing triggers for initramfs-tools ...
> 
> update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
> 
> gzip: stdout: No space left on device
> 
> update-initramfs: failed for /boot/initrd.img-2.6.24-19-generic
> 
> dpkg: subprocess post-installation script returned error exit status 1
> 
> jr at lc:~# 
> ----------------------------------
> OK, now what?
> 
> 

your first problem is your /boot partition is full.  you need to remove
some old kernels to make some space.

>> gzip: stdout: No space left on device

try:

dpkg -l | grep 2.6.24

that should spit out a list of installed (items with ii in the first
column) and removed (items with rr in the first column).  it should be
safe to remove any older kernels you aren't using like 2.6.24-16,
2.6.24-17, 2.6.24-18, i am assuming here you are currently running
2.6.24-19 and it is trying to be updated - what kernel are you running?
 please make sure you know what you are doing here before running the
commands i supply.

so now, for example, for me to remove the 2.6.24-16 kernel and the other
modules and associated packages i would run this:

sudo apt-get remove linux-image-2.6.24-16-generic
linux-restricted-modules-2.6.24-26-generic
linux-ubuntu-modules-2.6.24-16-generic linux-headers-2.6.24-16
linux-headers-2.6.24-16-generic

that should be all on one line in one command.

after running that for each kernel you want to remove you should try these:

sudo apt-get install -f
sudo apt-get check
sudo dpkg --configure -a

that should help sort you out.

- -d


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIsBa7fpRzWFIV0XMRAgdGAJwK9pL/xeCkgBdNKp9pHG6EcSnnswCeJaTX
SKK7oAmyI8W01SPJjR4KAw4=
=75JM
-----END PGP SIGNATURE-----




More information about the ubuntu-ca mailing list