我收到了错误消息:据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]?
Run Code Online (Sandbox Code Playgroud)
表示是
结果:
(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)
Run Code Online (Sandbox Code Playgroud)
我完全不知道接下来要做什么。
从评论来看,输出sudo apt-get autoremove是,
$ sudo apt-get autoremove\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nYou might want to run \xe2\x80\x98apt-get -f install\xe2\x80\x99 to correct these.\nThe following packages have unmet dependencies.\n linux-image-generic-lts-saucy : Depends: linux-image-3.11.0-19-generic but it is not installed\nE: Unmet dependencies. Try using -f.\nRun Code Online (Sandbox Code Playgroud)\n\n它清楚地表明该包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\nsudo apt-mark hold linux-image-generic-lts-saucy\nRun Code Online (Sandbox Code Playgroud)\n\n最后修复依赖关系,
\n\nsudo apt-get install -f\nRun Code Online (Sandbox Code Playgroud)\n
您使用的是非 PAE CPU,因此您很可能升级到不支持 PAE 的内核。升级过程是智能的,因此它不会安装不允许您启动系统的内核,因此安装会失败。
防止这种情况的方法是将您的 CPU 升级到支持 PAE 的 CPU(您应该购买新的)或保留该软件包,如 Avinash 在他的回答中解释的那样。
| 归档时间: |
|
| 查看次数: |
5081 次 |
| 最近记录: |