viewtopic.php?f=60&t=260937&start=40#p1410539 I decided to go ahead and I downloaded 4.4.0.104 intending to patch it when available.
I eventually managed to get into GRUB and booted into the 4.4 kernel but whenever I rebooted I had to select it, so I asked if I needed to delete the 4.8 version altogether and was told "Yes", which I did using the tool in Update Manager.
Then when I rebooted it still tried to load the old kernel and told me I had load it first, so I still had to select the 4.4 version from GRUB.
I checked in Update Manager for installed kernels and found that 4.8 was still installed.
Clicked REMOVE and the remove process gave me this error:
Code: Select all
E: linux-image-extra-4.8.0-53-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-4.8.0-53-generic: subprocess installed post-removal script returned error exit status 1
Tried to uninstall the two lines and got the same error, and the lines are still there [in RED]
Intending to go back to Square One with the intention of starting over, I reloaded 4.8.0.53 from Synaptic and enabled it in GRUB
Then went to Update Manager to remove 4.4 and ended up with the same 2 errors as detailed above.
Went to Synaptic to check what is and what isn't installed and the two RED lines are still there but this time for 4.4
Synaptic refuses to uninstall them
Code: Select all
E: linux-image-extra-4.4.0-104-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-4.4.0-104-generic: subprocess installed post-removal script returned error exit status 1
I get error relating to "trying to recover from package failure" - went to Synaptic to fix broken packages [twice] but that didn't help.
I've googled for "subprocess installed post-removal script returned error exit status 1" and found lots of posts, that are very [for me] complicated, and years old anyway so I'm extremely reluctant try any of them.
Have been advised to try this:
Code: Select all
sudo mv /etc/kernel/postrm.d/zz-update-grub /etc/kernel/postrm.d/zz-update-grub.bad
sudo apt-get install -f
sudo mv /etc/kernel/postrm.d/zz-update-grub.bad /etc/kernel/postrm.d/zz-update-grub
Code: Select all
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libcrypto++9v5 libdbus-c++-1-0v5
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
linux-image-4.4.0-104-generic linux-image-extra-4.4.0-104-generic
0 to upgrade, 0 to newly install, 2 to remove and 67 not to upgrade.
4 not fully installed or removed.
After this operation, 220 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 202184 files and directories currently installed.)
Removing linux-image-extra-4.4.0-104-generic (4.4.0-104.127) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-104-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-104-generic
Warning: No support for locale: en_GB.utf8
depmod: WARNING: could not open /var/tmp/mkinitramfs_WiXVKI/lib/modules/4.4.0-104-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_WiXVKI/lib/modules/4.4.0-104-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: If: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-extra-4.4.0-104-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-104-generic (4.4.0-104.127) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-104-generic /boot/vmlinuz-4.4.0-104-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-104-generic
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
you may need to re-run your boot loader[grub]
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
you may need to re-run your boot loader[grub]
Errors were encountered while processing:
linux-image-extra-4.4.0-104-generic
E: Sub-process /usr/bin/dpkg returned an error code (1
Tried to reinstall 4.4 from Update Manager and got these errors:
Code: Select all
E: linux-image-4.8.0-53-generic: subprocess installed post-installation script returned error exit status 2
E: linux-image-4.4.0-104-generic: subprocess installed post-installation script returned error exit status 2
E: linux-image-extra-4.4.0-104-generic: package linux-image-extra-4.4.0-104-generic is not ready for configuration cannot configure (current status 'half-installed')
E: linux-image-extra-4.8.0-53-generic: dependency problems - leaving unconfigured