sudo apt-get install git-all
当我尝试在安装过程结束时从存储库安装 git-all 时出现一些错误:
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
dpkg: dependency problems prevent configuration of git-daemon-run:
git-daemon-run depends on runit; however:
Package runit is not configured yet.
dpkg: error processing package git-daemon-run (--configure):
dependency problems - leaving unconfigured
似乎 runit 包尚未配置,系统是全新安装的 Ubuntu 16.04。有人知道我应该如何配置它吗?
答案1
尝试在 git-all 之前安装 git-daemon-sysvinit:
sudo apt-get install git-daemon-sysvinit
git-daemon-sysvinit 是 git-daemon-run 的替代品,它在 Ubuntu 15.04 及更高版本上运行得更好。(参见https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164)