
私は Debian 8 Jessie OS を使用しています。jitsi パッケージのインストールが壊れてしまいました。PC から 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
グロブを使用します。)
答え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