Score:1

Problem- consistent dpkg error processing package cannot configure

in flag

newer Ubuntu user here.Having issues with installs and updates. While attempting an install I received errors regarding some packages. Have attempted numerous generic solutions (note I have already attempted apt-get clean, update, upgrade, install -f dpkg --configure -a and sudo apt-get clean && sudo apt-get update && sudo apt-get dist-upgrade from previous questions and receive the same error.) Sorry for my english and linux knowledge.Thanks

 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates it's a follow-up er
ror from a previous failure.
                            No apport report written because the error message i
ndicates it's a follow-up error from a previous failure.
                                                        dpkg: dependency problem
s prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-5.4.0-81-generic; however:
  Package linux-headers-5.4.0-81-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 5.4.0.81.85); however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:
 linux-generic-hwe-18.04 depends on linux-generic; however:
  Package linux-generic is not configured yet.

dpkg: error processing package linux-generic-hwe-18.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Errors were 
encountered while processing:
 linux-headers-5.4.0-81-generic
 linux-headers-generic
 linux-generic
 linux-generic-hwe-18.04
E: Sub-process /usr/bin/dpkg returned an error code (1)```


David avatar
cn flag
Are these messages during an install?
mchid avatar
bo flag
You may have to do `sudo apt -f install` and `sudo dpkg --configure -a` a few times until it works itself out.
mchid avatar
bo flag
Also, you should run `sudo apt install --reinstall linux-headers-5.4.0-81-generic`
mchid avatar
bo flag
Please provide the error from the reinstallation command. Thanks.
Knud Larsen avatar
by flag
I got the same error yesterday : "package is in a very bad inconsistent state" ..."No apport report written because ......" → Fixed with `sudo apt install -f`
HankScorpio avatar
in flag
mchid your suggestion worked and I was able to reinstall the packages. Problem seems corrected now. Thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.