web-dev-qa-db-ja.com

パッケージgit-daemon-runのエラー処理パッケージを修正するには?

私は次のようにphp curlをインストールしようとしています:

Sudo apt-get update
Sudo apt-get install php5-curl

しかし、エラーが発生し続けます。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
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)

Sudo dpkg --configure -aを試してみると:

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
Errors were encountered while processing:
 git-daemon-run

Sudo apt-get install --reinstall runitを試してみると:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for runit:AMD64

Sudo apt-get install runitを試してみると:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
runit is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up runit (2.1.2-3ubuntu1) ...
start: Job is already running: runsvdir
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)

Sudo apt-get install --reinstall git-daemon-runを試してみると:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for git-daemon-run:AMD64

どうすれば修正できますか?

システム仕様:

Processor: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8
Graphics: Gallium 0.4 on AMD TURKS (DRM 2.43.0, LLVM 3.6.2)
OS Type: Ubuntu 15.10 64-bit
3
Waqleh

次のようにrunitを強制的に削除します。

Sudo dpkg -r --force-all runit

それから

Sudo apt-get -f install runit

次にphp-curlをインストールしました:

Sudo apt-get install php5-curl

そして、それは修正されました。

2
Waqleh

最初にgit-daemon-sysvinitをインストールします。

Sudo apt-get install git-daemon-sysvinit

次に、php5-curlをインストールします。

git-daemon-sysvinitはgit-daemon-runを置き換えます。 (これらは互いに代替です。)git-daemon-runは、私の経験から、そして私が読んだことから、Ubuntu 15.04以降では実際には動作しません。少なくとも、特別な処理が必要です。 ( https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164

1
Stephen G Tuggy