Debian: Coturn을 설치하면 오류가 발생하고 패키지가 제거되지 않았습니다.

Debian: Coturn을 설치하면 오류가 발생하고 패키지가 제거되지 않았습니다.

설치 중이에요크라톤이것은 오픈 소스 Stun 및 TURN 서버입니다. 이를 위해 두 가지 옵션이 있었습니다. 하나는 데비안 패키지를 다운로드하여 gdebi를 통해 설치하거나 프로젝트를 수동으로 만드는 것이었습니다. 더 쉬운 경로를 선택했는데 불행하게도 패키지 설치에 실패했습니다.

이제 패키지를 제거하려고 해도 실패합니다. 패키지를 제거하고 소스나 바이너리를 통해 올바르게 설치할 수 있는 방법이 있습니까?

출력 지우기:

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)

coturn의 소스 패키지를 다운로드했지만 종속성이 충족되지 않아 사용할 수 없으며 종속성을 수동으로 충족하려고 할 때마다 coturn이 경로에 돌을 던집니다.. :-(

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)

Coturn에는 SID 분기가 필요하므로 source.list. 저는 9.1을 원하지 않습니다. 이미 9.4가 있습니다.

소스.목록:

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 

이 문제를 해결하려면 어떻게 해야 합니까? 감사해요.

답변1

다음 명령으로 이 문제를 해결할 수 있었습니다.

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

이것은 작동합니다. 그런 다음 coturn을 다시 설치했는데 작동했습니다.

관련 정보