dpkg:错误处理 linux-generic 未满足的依赖关系错误

dpkg:错误处理 linux-generic 未满足的依赖关系错误

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

我自己也遇到过类似的问题,无法添加或删除软件包。本质上,这是一个损坏的软件包。如果您遇到的问题是损坏的依赖项,请尝试按照以下说明将其清除:

  1. 运行命令sudo dpkg --configure -a。这将返回错误,但不要担心。
  2. 查看上一个命令的错误。它应该列出损坏的包。键入sudo dpkg -r PACKAGE_NAME以删除每个包。有些包可能无法删除。将它们添加到列表中。
  3. sudo dpkg --configure PACKAGE_NAME对列表中的每个包运行。这应该可以修复它们并且不会返回致命错误。
  4. 最后,运行sudo apt-get install -f以修复依赖关系。

现在,您应该可以安装内核了。如果此版本适用于您所在的频道,则只需简单地 即可完成sudo apt-get upgrade。祝您好运!

相关内容