[RESOLVED] Failing to install linux-headers-5.4.0-74-generic

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
econator
Level 1
Level 1
Posts: 15
Joined: Fri Jun 18, 2021 9:38 am

[RESOLVED] Failing to install linux-headers-5.4.0-74-generic

Post by econator »

I suspect that this issue is of my own making. My computer froze while I was installing updates, and I hard-restarted it. (I think the freezing issue is related to my motherboard, not Mint.) Now, whenever I try to install updates, it tells me that 5.4.0-74-generic "is in very bad shape" and that I need to reinstall it. I've tried every install, update, and configure command that I can find in the forums for that kernel. I still get the following as a standard error message to whichever one I try to install/update/configure:

Code: Select all

dpkg: error processing package linux-generic-hwe-18.04-edge (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-5.4.0-74-generic
 linux-headers-generic-hwe-18.04-edge
 linux-headers-generic-hwe-18.04
 linux-generic-hwe-18.04
 linux-generic-hwe-18.04-edge
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm running 19.3, Cinnamon, 64 bit. If anyone has any suggestions, I'd be really grateful for your help!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14397
Joined: Thu May 25, 2017 3:22 pm

Re: Failing to install linux-headers-5.4.0-74-generic

Post by sleeper12 »

Try:

Code: Select all

 sudo dpkg --configure -a 
econator
Level 1
Level 1
Posts: 15
Joined: Fri Jun 18, 2021 9:38 am

Re: Failing to install linux-headers-5.4.0-74-generic

Post by econator »

Thank you for your reply. It still says

Code: Select all

dpkg: error processing package linux-headers-5.4.0-74-generic (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 linux-headers-5.4.0-74-generic
User avatar
karlchen
Level 23
Level 23
Posts: 18179
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Failing to install linux-headers-5.4.0-74-generic

Post by karlchen »

Hello, econator.

In order to find out whether any relevant filesystem has run out of space, which would make the installation fail as well, please share the output of the following terminal command with us:

Code: Select all

LC_ALL=C df -h | egrep "^/dev/|Filesystem"
Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 762 days now.
Lifeline
User avatar
karlchen
Level 23
Level 23
Posts: 18179
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Failing to install linux-headers-5.4.0-74-generic

Post by karlchen »

Hello, econator.

One additional potential pitfall occurred to me:
When you started your thread 10 days ago, the most recent 5.4.0 kernel may have still been 5.4.0-74. (Which my LM 19.3 ran on as well.)
By now the most recent 5.4.0 kernel, however, is 5.4.0-77, which my LM 19.3 is using at this point in time.
As a consequence the meta packages in the software repositories like
linux-headers-generic-hwe-18.04-edge
linux-headers-generic-hwe-18.04
linux-generic-hwe-18.04
linux-generic-hwe-18.04-edge
will no longer point to 5.4.0-74, but to 5.4.0-77.

So in case after 10 days you are still trying to install kernel 5.4.0-74, then the mentioned change may cause dependency issues as well.

But before addressing this potential issue, let us see, please, that your system has not run out of filesystem space.

Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 762 days now.
Lifeline
econator
Level 1
Level 1
Posts: 15
Joined: Fri Jun 18, 2021 9:38 am

Re: Failing to install linux-headers-5.4.0-74-generic

Post by econator »

karlchen wrote: Mon Jun 28, 2021 10:15 am In order to find out whether any relevant filesystem has run out of space, which would make the installation fail as well, please share the output of the following terminal command with us:

Code: Select all

LC_ALL=C df -h | egrep "^/dev/|Filesystem"
Regards,
Karl
Sorry for the very late reply! I was having trouble accessing the internet. The output is:

Code: Select all

Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/mint--vg-root  227G  184G   32G  86% /
/dev/sda1                  704M  175M  478M  27% /boot
Locked

Return to “Installation & Boot”