基于 debian 的 Linux 上的 libactivation-java 包出现问题

基于 debian 的 Linux 上的 libactivation-java 包出现问题

我一直在尝试找出如何修复损坏的依赖关系问题,在问题解决之前,该问题不允许我升级或安装其他任何内容。
我一直在尝试卸载并删除依赖于问题中的软件包的所有内容,但它变成了丢失的软件包。

上周我一直试图自己解决问题,但遇到了困难。我不想重新安装完整的操作系统,有人知道如何解决这个问题吗?

这是收到的错误的输出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 软件包,有没有其他方法可以删除 glassfish,例如“dpkg”,因为在尝试使用“apt”或“apt”安装、删除或升级任何内容时,我不断遇到此依赖性问题-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.

答案2

您的问题应标记为重复。如果您花时间查看此网站上以前的帖子,您会看到例如apt-get 更新不起作用

从您的代码中,您可以清楚地看到您有三个存储库。 Sana、摩托和滚动。你应该只有一个。

不要混合您的存储库!

相关内容