我正在安装科腾这是一个开源的 Stun 和 TURN 服务器。为此,我有两种选择,一种是下载 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
.这就是它试图拉取 PostgreSQL-9.1 的原因吗?我不要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,然后就成功了。