Mike Bird composed on 2014-12-14 18:21 (UTC-0800):
On Sun December 14 2014 18:07:29 Felix Miata wrote:
dpkg-query --show --showformat='${STATUS} ${PACKAGE} ${VERSION} ${ARCHITECTURE}\n' | grep -v 'install ok installed'
Of 148 lines of output, 147 looked like this one: deinstall ok config-files libweather-ion4a 4:4.4.5-7+squeeze1 amd64
Those packages are removed but not purged. Unless you planned on reinstalling them you would normally purge them just to tidy up your system. If you leave them as they are some (rare) problems can occur.
The other is this: install ok half-configured linux-image-2.6.32-5-amd64 2.6.32-48squeeze6 amd64
Its installation was interrupted by an error or ctrl-C. Best to reinstall or purge it to avoid possible boot-related problems.
I did these:
# apt-get --reinstall install linux-image-2.6.32-5-amd64 # apt-get purge all # apt-get purge * # apt-get --reinstall install linux-image-2.6.32-5-amd64 # apt-get --reinstall install linux-image-2.6.32-5-amd64
Each except the purges generated the following (same as many times before): Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 16 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-2.6.32-5-amd64 (2.6.32-48squeeze6) ... Running depmod. Running update-initramfs. update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169 Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0 entry not specified. run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-5-amd64.postinst line 799. dpkg: error processing linux-image-2.6.32-5-amd64 (--configure): subprocess installed post-installation script returned error exit status 2 configured to not write apport reports Errors were encountered while processing: linux-image-2.6.32-5-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)
These too fail with what appears to be the exact same messages as using apt-get to install or remove anything else, or upgrade: # apt-get purge linux-image-2.6.32-5-amd64 # apt-get remove linux-image-2.6.32-5-amd64
Too many ways to fail around here lately. :-(