我是较新的 Ubuntu 用户。安装和更新时遇到问题。尝试安装时,我收到有关某些软件包的错误。尝试过许多通用解决方案(请注意,我已经尝试过 apt-get clean, update, upgrade, install -f dpkg --configure -a
并sudo apt-get clean && sudo apt-get update && sudo apt-get dist-upgrade
解决了之前的问题,但收到相同的错误。)抱歉,我的英语和 Linux 知识有限。谢谢
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)```