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 安裝上去了,可以嘗試看看(原因我不清楚,可能是運氣好)