我尝试通过在我的 Ubuntu 12.04 服务器上运行以下命令来修补 Dirty Cow 漏洞:
sudo apt-get update && sudo apt-get dist-upgrade
这会导致以下错误:
The following packages have unmet dependencies:
lsb-base : Breaks: upstart (< 1.12.1-0ubuntu8)
Breaks: upstart:i386 (< 1.12.1-0ubuntu8)
plymouth : Depends: initramfs-tools but it is not going to be installed
Recommends: plymouth-theme-ubuntu-text but it is not going to be installed or
plymouth-theme
udev : Depends: initramfs-tools (>= 0.92bubuntu63) but it is not going to be installed
Depends: util-linux (> 2.15~rc2)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
我需要做什么才能修复这些错误?
答案1
我建议修复 dist-upgrade 抱怨的依赖关系,以便分别运行这些命令来更新和升级,从而纠正当前未满足的任何依赖关系。
sudo apt-get update
然后
sudo apt-get upgrade
然后
sudo apt-get dist-upgrade
更新与升级相结合帮助我解决了过去遇到的很多问题。更新帮助升级知道何时何地升级以及如何升级。
一个简单的例子是,您有 v.1,而 dist-upgrade 要求您使用 v.2,运行更新只能让您升级到 v.1.5,而升级完成了工作并让您升级到 v.2,使您的系统变得受欢迎并为 dist-upgrade 做好准备。
很高兴听到它有帮助!