jitsi* 패키지를 완전히 삭제하는 방법은 무엇입니까?

jitsi* 패키지를 완전히 삭제하는 방법은 무엇입니까?

저는 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정규식을 사용하고 dpkgglob을 사용하세요.)

답변2

아무것도 작동하지 않으면 다음을 수행하십시오.
상태 파일을 백업하십시오.

$ sudo cp /var/lib/dpkg/status /var/lib/dpkg/status_bk

백업 파일이 있는지 확인하세요.

$ ls /var/lib/dpkg/

백업 상태 파일을 열 수도 있습니다

$ less /var/lib/dpkg/status_bk

xed다음을 사용하여 현재 상태 파일을 엽니다 xed.gedit

$ 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

관련 정보