web-dev-qa-db-fra.com

Comment corriger le paquet traitement de l'erreur git-daemon-run?

J'essaye d'installer php curl comme ceci:

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

Mais je continue à avoir une erreur.

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)

quand j'essaie Sudo dpkg --configure -a je reçois:

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

quand j'essaie Sudo apt-get install --reinstall runit Je reçois:

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

quand j'essaie Sudo apt-get install runit Je reçois:

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)

quand j'essaie Sudo apt-get install --reinstall git-daemon-run Je reçois:

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

Comment puis-je réparer cela?

Spécifications du système:

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

Je supprime de force runit comme ceci:

Sudo dpkg -r --force-all runit

puis

Sudo apt-get -f install runit

alors installé php-curl:

Sudo apt-get install php5-curl

Et c'était réparé.

2
Waqleh

Installez d'abord git-daemon-sysvinit.

Sudo apt-get install git-daemon-sysvinit

Ensuite, installez php5-curl.

git-daemon-sysvinit remplace git-daemon-run. (Ce sont des alternatives les unes pour les autres.) Git-daemon-run ne fonctionne plus réellement sous Ubuntu 15.04 et plus, à partir de mon expérience et de ce que j'ai lu. Du moins, pas sans traitement spécial. ( https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164 )

1
Stephen G Tuggy