
Estou usando o sistema operacional Debian 8 Jessie. Corrompi a instalação do pacote jitsi. Preciso desinstalar o jitsi do meu PC. Eu não posso fazer isso. Essa é a minha saída do terminal:
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).
Não consigo remover este pacote. Posso acessar este pacote na árvore de diretórios e removê-lo manualmente?
Responder1
Comece dpkg --configure -a
eliminando quaisquer resquícios dessa falha.
Depois disso, adicione explicitamente o jitsi-meet-prosody
pacote à invocação de apt-get purge
, para que ele saiba que sua intenção é realmente removê-lo também - caso contrário, ele tentará manter o estado existente.
Na verdade, a julgar pela sua intenção, você pode querer apenas limpar 'jitsi.*'
para não perseguir cada novo subpacote. (NB: apt-get
usa expressões regulares, dpkg
usa globs.)
Responder2
Se nada funcionou... faça o seguinte:
Faça backup do seu arquivo de status:
$ sudo cp /var/lib/dpkg/status /var/lib/dpkg/status_bk
Verifique se o seu arquivo de backup existe
$ ls /var/lib/dpkg/
Você também pode abrir o arquivo de status do backup
$ less /var/lib/dpkg/status_bk
Abra o arquivo de status atual usando xed
( xed
é o editor de texto padrão para Linux Mint 18, mas você pode usar outros como gedit
ou vi se tiver disponível em seu sistema):
$ sudo xed /var/lib/dpkg/status
Pressione Ctrl+ fpara encontrar o pacote que deseja remover.
Por exemplo:jitsi-meet-tokens
Exclua ou remova todo o texto de entrada sobre o pacote de destino.
Neste caso (o pacote de destino é jitsi-meet-tokens), exclua esta seção de texto a seguir no arquivo de status.
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
Em seguida, pressione Ctrl+ spara salvar, e agora vamos verificar se o erro do pacote foi resolvido.
$ sudo apt-get update
Aproveitar!
https://forums.linuxmint.com/viewtopic.php?f=42&t=233205