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)