DebianベースのLinuxのlibactivation-javaパッケージに関する問題

DebianベースのLinuxのlibactivation-javaパッケージに関する問題

私は、問題が解決するまで他のものをアップグレードまたはインストールできない破損した依存関係の問題を解決する方法を見つけようとしました。
問題のパッケージに依存しているすべてのアイテムを削除して削除しようとしましたが、パッケージがありません。

先週、自分で解決しようとしましたが、難しさに固執しました。 OS全体を再インストールしたくありません。この問題を解決する方法を知っている人はいますか?

以下は、受信したエラーの出力ですapt-get

root@catch22:~# apt-get update && apt-get upgrade -y
Hit:1 http://old.kali.org/kali sana InRelease
Hit:2 http://old.kali.org/kali moto InRelease                            
Hit:3 http://archive-12.kali.org/kali kali-rolling InRelease                   
Hit:4 http://archive-9.kali.org/kali kali-bleeding-edge InRelease
Reading package lists... Done        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libmail-java : Depends: libactivation-java but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@catch22:~# apt--fix-broken install
bash: apt--fix-broken: command not found
root@catch22:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libradare2-2.3
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  libactivation-java
The following NEW packages will be installed:
  libactivation-java
0 upgraded, 1 newly installed, 0 to remove and 409 not upgraded.
97 not fully installed or removed.
Need to get 0 B/84.8 kB of archives.
After this operation, 152 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 544400 files and directories currently installed.)
Preparing to unpack .../libactivation-java_1.2.0-1_all.deb ...
Unpacking libactivation-java (1.2.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/libactivation-java_1.2.0-1_all.deb (--unpack):
 trying to overwrite '/usr/share/maven-repo/javax/activation/activation/debian/activation-debian.pom', which is also in package glassfish-activation 1:2.1.1-b31g+dfsg1-2
Errors were encountered while processing:
 /var/cache/apt/archives/libactivation-java_1.2.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

この時点でglassfishパッケージを削除することはできません。 「apt」または「apt」を使用して何かをインストール、アンインストール、またはアップグレードしようとすると、このメッセージが引き続き表示されるため、「dpkg」などのglassfishを削除する他の方法はありますか?依存関係の問題 - get 'これが出力です。

root@catch22:~# apt remove glassfish-activation
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libmail-java : Depends: libactivation-java but it is not going to be                                 installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or     specify a solution).

ベストアンサー1

未使用のパッケージを削除する必要がありますglassfish-activation

apt remove glassfish-activation

これによりインストールできますlibactivation-java

おすすめ記事