如何解决 dpkg 错误代码 1?

如何解决 dpkg 错误代码 1?

我在安装这两个更新时遇到问题:

  • Linux 通用 PAE
  • Linux 映像通用 pae

每次尝试升级时都会出现以下错误:

Setting up linux-image-3.2.0-35-generic-pae (3.2.0-35.55) ...
Internal Error: Could not find image (/boot/vmlinuz-3.2.0-35-generic-pae)
dpkg: error processing linux-image-3.2.0-35-generic-pae (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
 linux-image-generic-pae depends on linux-image-3.2.0-35-generic-pae; however:
  Package linux-image-3.2.0-35-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
 linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.35.40); however:
  Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 linux-image-3.2.0-35-generic-pae
 linux-image-generic-pae
 linux-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)

任何帮助将非常感激!

答案1

sudo apt-get purge linux-image-3.2.0-35-generic-pae 然后尝试一下sudo apt-get install linux-image,或者sudo apt-get -f install我希望在第一个命令之后也能为您清理。

来源:http://ubuntuforums.org/showthread.php?t=1036016

相关内容