我正在使用 Debian 8 Jessie 操作系统。我损坏了 jitsi 软件包的安装。我需要从我的电脑上卸载 jitsi。我做不到。这是我从终端的输出:
root@debian:~# apt-get purge --remove jitsi*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'jitsi-meet-prosody' for regex 'jitsi*'
Note, selecting 'jitsi-meet' for regex 'jitsi*'
Note, selecting 'jitsi-meet-tokens' for regex 'jitsi*'
Note, selecting 'jitsi-videobridge' for regex 'jitsi*'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
jicofo : PreDepends: jitsi-videobridge but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@debian:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody
Suggested packages:
lua-zlib lua-dbi-postgresql lua-dbi-mysql lua-dbi-sqlite3
Recommended packages:
lua5.1-sec lua5.1-event
The following packages will be REMOVED:
jitsi-meet-tokens
The following NEW packages will be installed:
lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody
0 upgraded, 7 newly installed, 1 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 0 B/417 kB of archives.
After this operation, 2,175 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 174595 files and directories currently installed.)
Removing jitsi-meet-tokens (1.0.1073-1) ...
dpkg: error processing package jitsi-meet-tokens (--remove):
subprocess installed post-removal script returned error exit status 10
Errors were encountered while processing:
jitsi-meet-tokens
====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ======
----- Show old opportunities as well as new ones: how-can-i-help --old -----
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:~# apt-get purge jigasi jitsi-meet jicofo jitsi-videobridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package jigasi
root@debian:~# apt-get purge jitsi-meet jicofo jitsi-videobridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
jitsi-meet-prosody : Depends: prosody but it is not going to be installed or
prosody-trunk but it is not installable
Depends: jitsi-videobridge but it is not going to be installed
Depends: jicofo but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@debian:~# apt-get purge jitsi-meet jicofo jitsi-videobridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
^[[AYou might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
jitsi-meet-prosody : Depends: prosody but it is not going to be installed or
prosody-trunk but it is not installable
Depends: jitsi-videobridge but it is not going to be installed
Depends: jicofo but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我无法删除这个包。我可以从目录树访问此包并手动将其删除吗?
答案1
首先dpkg --configure -a
清除该故障的任何残留物。
之后,显式地将jitsi-meet-prosody
包添加到 的调用中apt-get purge
,以便它知道您的意图确实是要删除它 - 否则它会尝试维护现有状态。
事实上,根据您的意图判断,您可能只想清除,'jitsi.*'
这样您就不会追逐每个新的子包。 (注意:apt-get
使用正则表达式,dpkg
使用 glob。)
答案2
如果没有任何效果...请执行以下操作:
备份您的状态文件:
$ sudo cp /var/lib/dpkg/status /var/lib/dpkg/status_bk
检查你的备份文件是否存在
$ ls /var/lib/dpkg/
您还可以打开备份状态文件
$ less /var/lib/dpkg/status_bk
xed
使用(xed
是 Linux Mint 18 的默认文本编辑器,但gedit
如果系统中有可用的其他文本编辑器,例如 或 vi)打开当前状态文件:
$ sudo xed /var/lib/dpkg/status
按Ctrl+f找到您要删除的包。
例如:jitsi-meet-tokens
删除或删除有关目标包的所有条目文本。
在这种情况下(目标包是 jitsi-meet-tokens),请删除状态文件中的以下文本部分。
Package: jitsi-meet-tokens
Status: deinstall ok half-installed
Priority: extra
Section: net
Installed-Size: 53
Maintainer: Jitsi Team <[email protected]>
Architecture: all
Source: jitsi-meet
Version: 1.0.1073-1
Depends: debconf (>= 0.5) | debconf-2.0, prosody-trunk (>= 1nightly607), libssl-dev, luarocks, jitsi-meet-prosody
Description: Prosody token authentication plugin for Jitsi Meet
Homepage: https://jitsi.org/meet
然后按Ctrl+s保存,现在让我们检查一下包错误是否已解决。
$ sudo apt-get update
享受!
https://forums.linuxmint.com/viewtopic.php?f=42&t=233205