package linux-image-generic-hwe-20.04 5.11.0.37.41~20.04.16 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-meta-hwe-5.11 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to install a package using Ubuntu Software catalogue, and the installation was interrupted by a message saying that "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem." I tried to run this command in Terminal, but it wouldn't work, so I searched online for a solution and found that some people had a similar message appear (the same as above but with 'sudo' appearing before 'dpkg' at the start of the command line - see https:/
Full details shown on Terminal after trying command 'sudo dpkg --configure -a':
dpkg: dependency problems prevent configuration of linux-generic-
linux-
Version of linux-headers-
dpkg: error processing package linux-generic-
dependency problems - leaving unconfigured
Setting up linux-image-
I: /boot/vmlinuz.old is now a symlink to vmlinuz-
I: /boot/initrd.
I: /boot/vmlinuz is now a symlink to vmlinuz-
I: /boot/initrd.img is now a symlink to initrd.
Setting up linux-modules-
dpkg: error processing package linux-image-
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Setting up linux-modules-
Processing triggers for linux-image-
/etc/kernel/
* dkms: running auto installation service for kernel 5.11.0-37-generic
Error! Your kernel headers for kernel 5.11.0-37-generic cannot be found.
Please install the linux-headers-
or use the --kernelsourcedir option to tell DKMS where it's located
...done.
/etc/kernel/
update-initramfs: Generating /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Adding boot menu entry for UEFI Firmware Settings
done
Errors were encountered while processing:
linux-
linux-
Due to the error messages that are shown above, I followed some other instructions given on the forum page (linked above), i.e. I used the command 'sudo apt-get install -f'. This came up with the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libllvm10 linux-headers-
linux-
linux-
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-
linux-
The following NEW packages will be installed
linux-
The following packages will be upgraded:
linux-
1 to upgrade, 2 to newly install, 0 to remove and 81 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/13.2 MB of archives.
After this operation, 90.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package linux-hwe-
(Reading database ... 209271 files and directories currently installed.)
Preparing to unpack .../linux-
Unpacking linux-hwe-
Selecting previously unselected package linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Setting up linux-hwe-
Setting up linux-headers-
/etc/kernel/
* dkms: running auto installation service for kernel 5.11.0-37-generic
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j2 KERNELRELEASE=
Signing module:
- /var/lib/
- /var/lib/
- /var/lib/
Secure Boot not enabled on this system.
cleaning build area...
DKMS: build completed.
vboxdrv.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
vboxnetadp.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
vboxnetflt.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
depmod.....
DKMS: install completed.
...done.
dpkg: error processing package linux-image-
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Setting up linux-headers-
dpkg: dependency problems prevent configuration of linux-generic-
linux-
Package linux-image-
dpkg: error processing package linux-generic-
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
I was asked to submit a bug report, hence this message.
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.11.0-36-generic x86_64
ApportVersion: 2.20.11-
AptOrdering:
linux-
linux-
linux-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Thu Oct 7 12:00:57 2021
ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting configuration
InstallationDate: Installed on 2021-08-07 (60 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: linux-meta-hwe-5.11
Title: package linux-image-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |