12.04 软件包系统损坏 apt-get autoremove -f 失败

12.04 软件包系统损坏 apt-get autoremove -f 失败

我正在尝试安装 Ubuntu 12.04 的所有最新更新。

linux-image-3.11.0-26-generic我剩下的是新硬件支持和(新安装) 57.1MB。

更新管理器告诉我“软件包系统损坏”并建议我使用它apt-get autoremove -f来修复未满足的依赖关系。

运行此程序时出现错误,但没有其他修复提示。这是我的终端输出:

sudo apt-get autoremove -f
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-image-3.11.0-26-generic
Suggested packages:
  fdutils linux-lts-saucy-doc-3.11.0 linux-lts-saucy-source-3.11.0
  linux-lts-saucy-tools
The following packages will be REMOVED:
  libindicate-gtk3
The following NEW packages will be installed:
  linux-image-3.11.0-26-generic
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/57.1 MB of archives.
After this operation, 154 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 168779 files and directories currently installed.)
Unpacking linux-image-3.11.0-26-generic (from .../linux-image-3.11.0-26-generic_3.11.0-26.45~precise1_i386.deb) ...
This kernel does not support a non-PAE CPU.
dpkg: error processing /var/cache/apt/archives/linux-image-3.11.0-26-generic_3.11.0-26.45~precise1_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-26-generic /boot/vmlinuz-3.11.0-26-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-26-generic /boot/vmlinuz-3.11.0-26-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.11.0-26-generic_3.11.0-26.45~precise1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

以下是 fkraiem 建议的结果。我将 grub 文件编辑为:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash forcepae" GRUB_CMDLINE_LINUX="forcepae"

我更新了 grub 配置并重新启动。我尝试再次运行 apt-get -f install。但我遇到的输出与上述完全相同。似乎添加 forcepae 开关没有任何作用。

apt-get autoremove 也失败了,提示我运行 apt-get -f install,结果如上所示。我无法安装任何更新或程序。

这是一台 HP Compaq nc4010,配备 1.7ghz Pentium M

答案1

使用 Google 快速搜索此错误信息

This kernel does not support a non-PAE CPU.

似乎表明这是一个常见问题。显然,在某些系统上,内核无法识别 CPU 支持 PAE,而这是 Ubuntu 所必需的。一个解决方案似乎是使用内核选项进行引导forcepae,因此请尝试以下操作:

  1. 在文本编辑器中打开/etc/default/grub。例如,您可以这样做gksudo gedit /etc/default/grub

  2. 您将得到一行形式为 的行GRUB_CMDLINE_LINUX="something",添加forcepae以使该行变为GRUB_CMDLINE_LINUX="something forcepae"。保存更改并退出文本编辑器。

  3. 运行sudo update-grub,重新启动,然后尝试sudo apt-get -f install

相关内容