aptitude update broken

chrisalavoine

Renowned Member
Sep 30, 2009
152
0
81
Hi there,

I have been playing with MPIO on one of my Proxmox test hosts and have hit a problem with aptitude.

Whenever I run "aptitude update" (or any kind of apt-get) I get the following:

ess-prox-003:~# aptitude update
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
Hit http://ftp.uk.debian.org lenny Release.gpg
Hit http://ftp.uk.debian.org lenny Release
Ign http://ftp.uk.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.uk.debian.org lenny/contrib Packages/DiffIndex
Hit http://ftp.uk.debian.org lenny/main Packages
Hit http://download.proxmox.com lenny Release.gpg
Hit http://ftp.uk.debian.org lenny/contrib Packages
Hit http://download.proxmox.com lenny Release
Ign http://download.proxmox.com lenny/pve Packages/DiffIndex
Ign http://download.proxmox.com lenny/pve Packages
Hit http://download.proxmox.com lenny/pve Packages
Hit http://security.debian.org lenny/updates Release.gpg
Hit http://security.debian.org lenny/updates Release
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Packages
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: Couldn't rebuild package cache
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!

I have rebooted several times but this error remains.

Any ideas?

Chris.
 
If I do "dpkg --configure -a" I get the following:

ess-prox-003:~# dpkg --configure -a
Setting up initramfs-tools (0.92o) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.35-1-pve
Cannot find /lib/modules/2.6.35-1-pve
update-initramfs: failed for /boot/initrd.img-2.6.35-1-pve
dpkg: subprocess post-installation script returned error exit status 1