Dear all,
I would appreciate your help to fix a problem with apt-get.
apt-get fails because of an error message related to _deleted_ (but not uninstalled) kernels. Don't ask me _how_ I managed to accidentally delete my kernels, but still, I did. You can stop laughing now... no really, please! Stop laughing!! :-)
I've got a booting kernel now, so that's no longer the issue. But I do have this problem with getting apt-get to work again.
Anyway, when I execute any command other than "apt-get update" it fails to complete the command. Effectively, I think that apt-get tries to clean up the mess of the deleted kernels but cannot, fails and kicks out without executing any of the requested upgrades, installs or removals.
The actual output of the command (whatever it is) barely varies, and a copy of the output is shown below. As far as I can make out, it tries to clean up my mess for me, but because it can't do it, it stops completely, and does not get as far as executing the requested upgrade. One thing that occasionally varies depending on the command I ask is that sometimes (although not below) it tells me that it could not create a log because MaxReports has been reached. I don't know if that has any bearing on it, although probably not.
Can anyone tell me how to remove the cruft, or reset apt-get or do anything to get it past the issue of the deleted kernels? This would very much help me get back on the right track.
Any help is very much appreciated.
Many thanks,
Bag.
P.S. Code output is here:
I would appreciate your help to fix a problem with apt-get.
apt-get fails because of an error message related to _deleted_ (but not uninstalled) kernels. Don't ask me _how_ I managed to accidentally delete my kernels, but still, I did. You can stop laughing now... no really, please! Stop laughing!! :-)
I've got a booting kernel now, so that's no longer the issue. But I do have this problem with getting apt-get to work again.
Anyway, when I execute any command other than "apt-get update" it fails to complete the command. Effectively, I think that apt-get tries to clean up the mess of the deleted kernels but cannot, fails and kicks out without executing any of the requested upgrades, installs or removals.
The actual output of the command (whatever it is) barely varies, and a copy of the output is shown below. As far as I can make out, it tries to clean up my mess for me, but because it can't do it, it stops completely, and does not get as far as executing the requested upgrade. One thing that occasionally varies depending on the command I ask is that sometimes (although not below) it tells me that it could not create a log because MaxReports has been reached. I don't know if that has any bearing on it, although probably not.
Can anyone tell me how to remove the cruft, or reset apt-get or do anything to get it past the issue of the deleted kernels? This would very much help me get back on the right track.
Any help is very much appreciated.
Many thanks,
Bag.
P.S. Code output is here:
Code:
Reading package lists... Building dependency tree... Reading state information... The following packages will be REMOVED linux-image-2.6.38-12-generic linux-image-3.0.0-12-generic linux-image-3.0.0-13-generic linux-image-3.0.0-14-generic linux-image-3.0.0-15-generic linux-image-3.0.0-16-generic linux-image-3.0.0-17-generic linux-image-3.0.0-19-generic linux-image-3.0.0-20-generic The following packages will be upgraded: firefox firefox-branding firefox-globalmenu firefox-locale-en libraptor 15 upgraded, 0 newly installed, 9 to remove and 0 not upgraded. 10 not fully installed or removed. Need to get 0 B/56.7 MB of archives. After this operation, 1,367 MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 375571 files and directories currently installed.) Removing linux-image-2.6.38-12-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.38-12-generic /boot/vmlinuz-2.6.38-12-generic update-initramfs: Deleting /boot/initrd.img-2.6.38-12-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 2.6.38-12-generic /boot/vmlinuz-2.6.38-12-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-2.6.38-12-generic.postrm line 328. dpkg: error processing linux-image-2.6.38-12-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-12-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-12-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-12-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-12-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-13-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-13-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-13-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-13-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-14-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-14-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-14-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-14-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-15-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-15-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-15-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-15-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-16-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-16-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-16-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-16-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-17-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-17-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-17-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-17-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-19-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-19-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-19-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-19-generic (--remove): subprocess installed post-removal script returned error exit status 1 Removing linux-image-3.0.0-20-generic ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-20-generic /boot/vmlinuz-3.0.0-20-generic update-initramfs: Deleting /boot/initrd.img-3.0.0-20-generic run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-20-generic /boot/vmlinuz-3.0.0-20-generic P: Checking for EXTLINUX directory... found. P: Writing config for /boot/vmlinuz-3.0.0-21-generic... P: Writing config for /boot/vmlinuz-2.6.35-32-generic... P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-20-generic.postrm line 328. dpkg: error processing linux-image-3.0.0-20-generic (--remove): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: linux-image-2.6.38-12-generic linux-image-3.0.0-12-generic linux-image-3.0.0-13-generic linux-image-3.0.0-14-generic linux-image-3.0.0-15-generic linux-image-3.0.0-16-generic linux-image-3.0.0-17-generic linux-image-3.0.0-19-generic linux-image-3.0.0-20-generic
Comment