Estou tentando instalar o pacote git-daemon-run , que depende do o pacote runit. Mas o pacote runit não atualiza corretamente.
Quando eu executo apt-get upgrade
para atualizar o pacote runit , ocorre o seguinte erro:
Setting up runit (2.1.1-6.2ubuntu3) ...
start: Unknown job: runsvdir
dpkg: error processing package runit (--install):
subprocess installed post-installation script returned error exit status 1
Eu verifiquei o banco de dados de bugs do Ubuntu e achei Bug # 406621 na barra de ativação . De acordo com a solução, devo corrigir a localização de runsvdir.conf
alterando-a do antigo event.d
que o upstart costumava usar para /etc/init
que o upstart agora usa. Mas no (meu) Ubuntu 14.04 não há event.d
em primeiro lugar e muito menos um runsvdir.conf
lá.
Eu tentei instalar ou reconfigurar este pacote, em vez de atualizar, mas ocorreu o mesmo erro. É notável que durante a instalação do pacote git, esse erro ocorreu pela primeira vez.
root@local#dpkg -C
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure or the configure menu option in dselect:
runit system-wide service supervision
root@local#apt-get purge runit
The following packages will be REMOVED:
runit*
1 not fully installed or removed.
After this operation, 419 kB disk space will be freed.
Do you want to continue? [Y/n] y
Removing runit (2.1.1-6.2ubuntu3) ...
stop: Unknown job: runsvdir
Removing SV inittab entry...
Purging configuration files for runit (2.1.1-6.2ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
root@local# apt-get install runit
The following extra packages will be installed:
fgetty
Suggested packages:
socklog-run
The following NEW packages will be installed:
fgetty runit
0 upgraded, 2 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/134 kB of archives.
After this operation, 550 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up fgetty (0.6-5build1) ...
Setting up runit (2.1.1-6.2ubuntu3) ...
start: Unknown job: runsvdir
dpkg: error processing package runit (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
runit
E: Sub-process /usr/bin/dpkg returned an error code (1)