Score:0

How to fix dpkg Erros?

us flag

How can I fix it? apt also not work.

elias@elias:~$ sudo apt-get install openssh-server

than i got:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssh-server is already the newest version (1:8.2p1-4ubuntu0.4).
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm10 libllvm11 libllvm11:i386 libxdamage1:i386 shim
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/11,7 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package linux-hwe-5.11-headers-5.11.0-44 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Setting up openssh-server (1:8.2p1-4ubuntu0.4) ...
dpkg: error processing package openssh-server (--configure):
 installed openssh-server package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of linux-headers-5.11.0-44-generic:
 linux-headers-5.11.0-44-generic depends on linux-hwe-5.11-headers-5.11.0-44; however:
  Package linux-hwe-5.11-headers-5.11.0-44 is not configured yet.

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

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

dpkg: error processing package linux-genericNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                      No apport report written because MaxReports is reached already
                                                    No apport report written because MaxReports is reached already
                                  -hwe-20.04 (--configure):
 dependency problems - leaving unconfigured

Errors were encountered while processing:

 linux-hwe-5.11-headers-5.11.0-44
 openssh-server
 linux-headers-5.11.0-44-generic
 linux-headers-generic-hwe-20.04
 linux-generic-hwe-20.04

E: Sub-process /usr/bin/dpkg returned an error code (1)
Terrance avatar
id flag
Can you run `sudo dpkg -a --configure` to configure the packages that are not configured?
Elias ZHANG avatar
us flag
That not works :) return also Errors : Errors were encountered while processing: openssh-server linux-generic-hwe-20.04
Terrance avatar
id flag
You might have to remove that specific kernel version as well as the openssh-server and reinstall them to get past this.
nobody avatar
gh flag
Enough space in /boot?
Elias ZHANG avatar
us flag
thanks for you guys!Now when i sudo apt-get install fastboot .There in only one error now. dpkg: error processing package linux-hwe-5.11-headers-5.11.0-44 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: linux-hwe-5.11-headers-5.11.0-44 E: Sub-process /usr/bin/dpkg returned an error code (1)
Elias ZHANG avatar
us flag
I will try to remove the kernel.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.