Ubuntu Linux 12.04 最近升级时,遇到几台有下述讯息:
Setting up procps (1:3.2.8-11ubuntu6.4) ...
start: Job failed to start
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of udev:
udev depends on procps; however:
Package procps is not configured yet.
dpkg: error processing udev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mountall:
mountall depends on udev; however:
Package udev is not configured yet.
dpkg: error processing mountall (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
procps
udev
mountall
E: Sub-process /usr/bin/dpkg returned an error code (1)
遇到这个还好,想说新版套件应该就会修复此问题,但是刚好遇到 Linode 全部机器都要重开,就炸了。
出现这个问题的机器,重开自然开不了机,简单的直接进入修复模式后,资料备份出来,直接重灌成 Debian 解决;麻烦的就参照这篇试试看,看能不能解决萝~
注1:在 Linode 若要进入修复模式,可见此篇:Rescue and Rebuild - Linode Guides & Tutorials
注2:在 Rescue 模式预设网路是通的,但是 DNS 不通,请自行到 /etc/resole.conf 增加 nameserver 8.8.8.8 之类的.
Ubuntu Linux 12.04 遇到 procps 造成 udev、mountall 相依性?突解法
此问题主要是 procps 的 Package 没包好,可见:Bug #891369 “package procps 1:3.2.8-11ubuntu2 failed to install/...” : Bugs : procps package : Ubuntu
解法就是直接使用 procps 的新版套件(procps 1:3.2.8-11ubuntu3 deb 或 procps 1:3.2.8-11ubuntu4 deb)
解法步骤
procps 套件网址:1:3.2.8-11ubuntu3 : procps : amd64 : Precise (12.04) : Ubuntu
wget http://launchpadlibrarian.net/85319332/procps_3.2.8-11ubuntu3_amd64.deb
vim /etc/sysctl.conf # 如果有修改,先还原回来
sudo dpkg -i --force-all procps_3.2.8-11ubuntu3_amd64.deb
sudo apt-get upgrade # 到此没有上述错误讯息就完成了
注:其中有一台机器把用不到的 kernel 移除掉后,就自然可以 upgrade 安装上去了,可以尝试看看(原因我不清楚,可能是运气好)