昨天我尝试安装一些软件包,但出现了关于 runit 的错误。所以我在网上搜索,解决办法是
sudo dpkg --force runit
我做到了,但是正如我今天尝试的那样
sudo apt-get update
我收到这个错误
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
但后来我尝试配置 runit 包,这是我得到的错误
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
dpkg: error processing package runit (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for fontconfig (2.11.1-0ubuntu6) ...
Errors were encountered while processing:
runit
请帮我解决这个问题
答案1
以下答案对我有用。我找到了这里git
。我在尝试升级后遇到了这个问题sudo apt-get install git-all
。
我强行删除然后重新安装,runit
如下所示:
sudo dpkg -r --force-all runit
sudo apt-get -f install runit