正在执行包更新,它结束了一个进程并挂起,所以我重新启动了服务器,现在它将不再允许我执行任何更新。
我尝试了以下几点,但没有结果:
sudo apt-get clean
sudo apt-get install -f (I get a message: E: DPKG was interrupted, you must manually run sudo dpkg --configure -a to correct the problem)
sudo dpkg --configure -a (I get the following - which is where it got stuck the first time)
'Setting up citadel-server (8.03- 1)'
'sendcommand: started (pid=1692) running in 504'
'Attaching to server...'
'domain Citadel server ready'
'Authentication as an internal program.'
'DOWN'
'231 Shutting down server. Goodbye.'
sendcommand: processing ended.'然后一切都结冰了,什么也不做。它看起来像一个孤立的进程,它锁定了dpkg和citadel服务器,因此我的邮件不再工作。迫使我重新启动服务器让它恢复工作。
如何修正索引以便将来进行更新?Snaptic包也不起作用。
谢谢
发布于 2011-12-12 05:32:29
在/var/lib/dpkg/info中,每个包都保存一些脚本:
<pkgname>.preinst
<pkgname>.postinst
<pkgname>.prerm
<pkgname>.postrm要完成包安装过程,应该对每个未打包的包运行.preinst和.postinst脚本。如果这些脚本以错误结束,dpkg会中断。找到citadel服务器包的脚本,并调查它们不工作的原因。或者只需使用空脚本复制它们,获得成功退出状态,运行dpkg --configure -a并删除citadel服务器。
https://serverfault.com/questions/340007
复制相似问题