Debian: Instalando o Coturn causando erro e o pacote não sendo removido.

2

Estou trabalhando na instalação do Coturn , que é um servidor Stun e TURN de código aberto. Para isso, eu tinha duas opções, uma era baixar o pacote debian e instalá-lo pelo gdebi, e outro era fazer o projeto manualmente. Eu fui para a rota mais fácil e, infelizmente, a instalação do pacote está falhando.

Neste momento, mesmo quando tento remover o pacote, ele falha: Existe alguma maneira de remover este pacote e instalá-lo corretamente por meio de código-fonte ou binário.

Saída para limpeza:

coturn-master # apt-get purge coturn
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  coturn
0 upgraded, 0 newly installed, 1 to remove and 539 not upgraded.
1 not fully installed or removed.
After this operation, 1.234 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 51439 files and directories currently installed.)
Removing coturn ...
update-rc.d: error: cannot find a LSB script for coturn
dpkg: error processing coturn (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 coturn
E: Sub-process /usr/bin/dpkg returned an error code (1)

Eu tenho o pacote fonte baixado para o coturno, mas não posso usá-lo pois as dependências não estão satisfeitas, e quando tento preencher manualmente as dependências, o coturn lança pedras no caminho ..: - (

coturn-master # ./configure
ginstall: not found
install is /usr/bin/install
pkill is /usr/bin/pkill
sqlite3: not found
sqlite: not found
Use TMP dir /var/tmp
Compiler: cc
Library option -lsocket cannot be used
Library option -lwldap32 cannot be used
Library option -lwldap64 cannot be used
Library option -lintl cannot be used
Sockets code is fine: no sin_len field present
Ignore IP_RECVERR
Crypto SSL lib found.
SSL lib found.
Libevent2 development is not installed properly
ERROR: Libevent2 development libraries are not installed properly in required location.
ERROR: may be you have just too old libevent tool - then you have to upgrade it.
See the INSTALL file.
Abort.


coturn-master # apt-get install sqlite3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libsqlite3-0 libsqlite3-dev locales oracle-java8-installer postgresql-9.1
  postgresql-9.4 postgresql-contrib-9.4
Suggested packages:
  glibc-doc sqlite3-doc binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic
  ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox iceape-browser
  mozilla-browser epiphany-gecko epiphany-webkit epiphany-browser galeon midbrowser moblin-web-browser xulrunner xulrunner-1.9
  konqueror chromium-browser midori google-chrome locales-all libdbd-pg-perl
Recommended packages:
  postgresql-contrib-9.1 sysstat
The following packages will be REMOVED:
  coturn
The following NEW packages will be installed:
  libc-l10n sqlite3
The following packages will be upgraded:
  libc-bin libc-dev-bin libc6 libc6-dev libsqlite3-0 libsqlite3-dev locales oracle-java8-installer postgresql-9.1 postgresql-9.4
  postgresql-contrib-9.4
11 upgraded, 2 newly installed, 1 to remove and 528 not upgraded.
1 not fully installed or removed.
Need to get 0 B/19,3 MB of archives.
After this operation, 6.894 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 51439 files and directories currently installed.)
Removing coturn ...
update-rc.d: error: cannot find a LSB script for coturn
dpkg: error processing coturn (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 coturn
E: Sub-process /usr/bin/dpkg returned an error code (1)

O Coturn requer ramificação SID, então adicionei isso em source.list . É por isso que está tentando puxar o PostgreSQL-9.1. Eu não quero 9,1, já tenho 9,4.

sources.list:

deb     http://mirror.hetzner.de/debian/packages wheezy main contrib non-free
deb     http://mirror.hetzner.de/debian/security wheezy/updates main contrib non-free

deb     http://cdn.debian.net/debian/ wheezy main non-free contrib
deb-src http://cdn.debian.net/debian/ wheezy main non-free contrib

deb     http://security.debian.org/  wheezy/updates  main contrib non-free
deb-src http://security.debian.org/  wheezy/updates  main contrib non-free
// Below line I added. 
deb http://ftp.de.debian.org/debian sid main 

O que posso fazer para resolver este problema? Obrigado.

    
por We are Borg 02.05.2016 / 10:52

1 resposta

2

Consegui resolver este problema seguindo os comandos:

mv /var/lib/dpkg/info/coturn.* /tmp/
dpkg --remove --force-remove-reinstreq coturn

Isso funcionou. E eu instalei o coturno de novo, então funcionou.

    
por 02.05.2016 / 12:40