Debian: Coturn をインストールするとエラーが発生し、パッケージは削除されませんでした。

Debian: Coturn をインストールするとエラーが発生し、パッケージは削除されませんでした。

インストール中です。クラトンこれはオープンソースのStunとTURNサーバーです。これには2つのオプションがありました。 1つは、Debianパッケージをダウンロードして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を再インストールしましたが、うまくいきました。

おすすめ記事