dpkg: error processing linux-generic
,未满足依赖性错误时sudo apt-get install -f
Setting up linux-image-generic (3.2.0.60.71) ...
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.58.69); however:
Version of linux-image-generic on system is 3.2.0.60.71.
linux-generic depends on linux-headers-generic (= 3.2.0.58.69); however:
Version of linux-headers-generic on system is 3.2.0.60.71.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我自己也遇到过类似的问题,无法添加或删除软件包。本质上,这是一个损坏的软件包。如果您遇到的问题是损坏的依赖项,请尝试按照以下说明将其清除:
- 运行命令
sudo dpkg --configure -a
。这将返回错误,但不要担心。 - 查看上一个命令的错误。它应该列出损坏的包。键入
sudo dpkg -r PACKAGE_NAME
以删除每个包。有些包可能无法删除。将它们添加到列表中。 sudo dpkg --configure PACKAGE_NAME
对列表中的每个包运行。这应该可以修复它们并且不会返回致命错误。- 最后,运行
sudo apt-get install -f
以修复依赖关系。
现在,您应该可以安装内核了。如果此版本适用于您所在的频道,则只需简单地 即可完成sudo apt-get upgrade
。祝您好运!