sudo apt-get install git-all
を実行します Ubuntu 16.04で、最後に以下を参照してください
Setting up runit (2.1.2-3ubuntu1) ...
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
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
runit
git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
システムを再起動した後もエラーが発生します。それは本当に私のシステム全体をブロックします。
私はkillall update-notifier
を実行します 。 sudo apt-get install git-all
を実行します しかし
同じエラーメッセージが表示されます。 pgrep -a apt
を実行します しかし、出力として何も取得しません。 pgrep -a update
を実行します ただし、出力としては何も取得されません。
ここでのケースに関するバグレポート。
- Grubで、詳細オプションを選択します> Ubuntu(Upstart)Linuxカーネル4.22 。 systemdのないターミナルでのみ同じことを行う 同じエラーが発生します。
runitでこのエラーが発生するのはなぜですか?
承認された回答:
xyr独自のrunitとDebian用のBernsteinのdaemontoolsパッケージの両方を管理しているGerritPapeは、「init-systemneutrality」(Debian systemd hoo-hahの後に大いに支持された)のアイデアを真剣に受け止めた数少ない開発者の1人です。そして、van Smoorenburg init
の下でこれらを実行することをサポートするために一生懸命努力しました 、upstart、およびsystemd。
runitのインストール後のメンテナスクリプトは、/var/lib/dpkg/info/runit.postinst
などのパッケージからシステムに解凍されています。 。ご覧のとおり、upstartの存在を検出し、runsvdir
を開始しようとします。 upstartが存在する場合はupstartジョブ。 systemdとrunit.service
でも同じことをします 。
残念ながら、Ubuntu14以降では両方 systemdおよび upstartがインストールされます。そのため、パッケージのインストール後のメンテナスクリプトは、upstartのstart
を使用してupstartジョブを実行しようとしています。 指図。もちろん、upstartは(デフォルトでは)Ubuntu 15以降のシステム全体のサービスマネージャーではなく、upstartのstart
コマンドが機能しません。
以下は、これを克服するためにスクリプトにパッチを適用する方法の大まかなアイデアです。
… if test -r /usr/share/debconf/confmodule; then . /usr/share/debconf/confmodule db_purge fi if test -d /run/systemd/system ; then systemctl start runit.service elif test -x /sbin/start ; then /sbin/start runsvdir fi
これは理想的ではありませんが、始まりです。 runit.prerm
およびrunit.postrm
同様にいくつかの調整が必要です。
さらに読む
- ジョナサンデボインポラード(2015)。
/etc/inittab
過去のものです。 。頻繁に与えられる回答。 - ジョナサンデボインポラード(2014-11-04)。 runit 。 debian-voteメーリングリスト。
- ニコライ・フリストフ(2014-10-21)。 runit:jessie beta2の新規インストール後、runitのインストールに失敗します 。 Debianバグ#766187。
- アンドレアスベックマン(2014-11-03)。 daemontools-run:/ etc/inittabなしではインストールに失敗します 。 Debianバグ#767933。
-
runit.postinst
。 runitソース 。 UbuntuLaunchpad。 - https://unix.stackexchange.com/a/196252/5132