linux-image-5.4.0-47-generic installation failed
by rexstevens from LinuxQuestions.org on (#580P7)
System:
HP Elitebook 8540p
Linux Mint 20 Cinnamon
Cinnamon Version: 4.6.7
Linux Kernel: 5.4.0-45-generic
Processor: Intel(C) CoreTM i7 CPU M620 @ 2.67GHz * 2
Upgrade to 5.4.0-47-generic failed, see below:
dpkg: error processing package linux-image-5.4.0-47-generic (--configure):
installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-5.4.0-47-generic (5.4.0-47.51) ...
Processing triggers for linux-image-5.4.0-47-generic (5.4.0-47.51) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-47-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-47-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
rmmod: ERROR: Module tpm is builtin.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-47-generic (--configure):
installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-47-generic
****************************************
Attempted the following:
1. Tried to remove and reinstall from Synaptic and recived the same error
2. sudo dpkg --purge linux-image-5.4.0-47-generic
rex@rex-HP-EliteBook-8540p:~$ sudo dpkg --purge linux-image-5.4.0-47-generic
(Reading database ... 424420 files and directories currently installed.)
Removing linux-image-5.4.0-47-generic (5.4.0-47.51) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-47-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
rmmod: ERROR: Module tpm is builtin.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-47-generic (--purge):
installed linux-image-5.4.0-47-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-47-generic
*****************************************
Checked bios and TPM is set to "change"


HP Elitebook 8540p
Linux Mint 20 Cinnamon
Cinnamon Version: 4.6.7
Linux Kernel: 5.4.0-45-generic
Processor: Intel(C) CoreTM i7 CPU M620 @ 2.67GHz * 2
Upgrade to 5.4.0-47-generic failed, see below:
dpkg: error processing package linux-image-5.4.0-47-generic (--configure):
installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-5.4.0-47-generic (5.4.0-47.51) ...
Processing triggers for linux-image-5.4.0-47-generic (5.4.0-47.51) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-47-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-47-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
rmmod: ERROR: Module tpm is builtin.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-47-generic (--configure):
installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-47-generic
****************************************
Attempted the following:
1. Tried to remove and reinstall from Synaptic and recived the same error
2. sudo dpkg --purge linux-image-5.4.0-47-generic
rex@rex-HP-EliteBook-8540p:~$ sudo dpkg --purge linux-image-5.4.0-47-generic
(Reading database ... 424420 files and directories currently installed.)
Removing linux-image-5.4.0-47-generic (5.4.0-47.51) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-47-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
rmmod: ERROR: Module tpm is builtin.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-47-generic (--purge):
installed linux-image-5.4.0-47-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-47-generic
*****************************************
Checked bios and TPM is set to "change"