我收到了错误消息:据我所知,The package system is broken和我没有使用第三方存储库。在最近几篇关于类似主题的文章之后,我查看了其他具有类似问题的帖子,并尝试:sudo apt-get -f install
结果:
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-19-generic
Suggested packages:
fdutils linux-lts-saucy-doc-3.11.0 linux-lts-saucy-source-3.11.0
linux-lts-saucy-tools
The following NEW packages will be installed
linux-image-3.11.0-19-generic
0 to upgrade, 1 to newly install, 0 to remove and 28 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/57.3 MB of archives.
After this operation, 154 MB of additional disk space will be used.
Do you want to continue [Y/n]? 表示是
结果:
(Reading database ... 171297 files and directories currently installed.)
Unpacking linux-image-3.11.0-19-generic (from .../linux-image-3.11.0-19-generic_3.11.0-19.33~precise1_i386.deb) ...
This kernel does not support a non-PAE CPU.
dpkg: error processing /var/cache/apt/archives/linux-image-3.11.0-19-generic_3.11.0-19.33~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-19-generic /boot/vmlinuz-3.11.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-19-generic /boot/vmlinuz-3.11.0-19-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.11.0-19-generic_3.11.0-19.33~precise1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)我完全不知道下一步该怎么做。
发布于 2014-04-13 16:00:22
从注释中,sudo apt-get autoremove的输出是,
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
linux-image-generic-lts-saucy : Depends: linux-image-3.11.0-19-generic but it is not installed
E: Unmet dependencies. Try using -f.它清楚地表明,包linux-image-generic-lts-saucy正在尝试下载和安装依赖包linux-image-3.11.0-19-generic,这反过来会在安装这个新内核时生成错误This kernel does not support a non-PAE CPU。
持有主包(linux-image-generic-lts-saucy)将解决您的问题。因此,您必须运行以下命令来保存linux-image-generic-lts-saucy包,
sudo apt-get clean
sudo apt-mark hold linux-image-generic-lts-saucy最后修复依赖项,
sudo apt-get install -f发布于 2014-04-13 16:11:54
您使用的是非PAE CPU,所以您很可能升级到一个没有的内核。升级过程很聪明,所以它不会安装不允许您启动系统的内核,因此它会失败安装。
防止这种情况的方法是将您的CPU升级到一个支持PAE的CPU(您应该购买一个新的),或者像Avinash在他的回答中解释的那样持有这个包。
https://askubuntu.com/questions/446802
复制相似问题