无法修复 linux mint 上损坏的应用程序

问题描述

我无法在“Linux Mint VERSION="20.1 (Ulyssa)”中安装、删除和更新包, 我在更新 MysqL-cluster-community-server 和其他相关 MysqL 包后遇到了这个问题。

我已尝试使用这些解决方案来解决此问题,但无法解决

$ sudo apt-get install -f

Reading package lists... Done
Building dependency tree       
Reading state @R_383_4045@ion... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-59 linux-headers-5.4.0-59-generic linux-headers-5.4.0-60
  linux-headers-5.4.0-60-generic linux-image-5.4.0-59-generic
  linux-image-5.4.0-60-generic linux-modules-5.4.0-59-generic
  linux-modules-5.4.0-60-generic linux-modules-extra-5.4.0-59-generic
  linux-modules-extra-5.4.0-60-generic MysqL-community-client-core
MysqL-community-client-plugins MysqL-community-server-core
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
MysqL-cluster-community-client-core MysqL-cluster-community-client-plugins
MysqL-cluster-community-server-core
The following NEW packages will be installed:
MysqL-cluster-community-client-core MysqL-cluster-community-client-plugins
MysqL-cluster-community-server-core
0 upgraded,3 newly installed,0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/22.1 MB of archives.
After this operation,158 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 452340 files and directories currently installed.)
Preparing to unpack .../MysqL-cluster-community-client-plugins_8.0.23-1ubuntu18.04_amd64.deb ...
Unpacking MysqL-cluster-community-client-plugins (8.0.23-1ubuntu18.04) ...
dpkg: error processing archive /var/cache/apt/archives/MysqL-cluster-community-client-plugins_8.0.23-1ubuntu18.04_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/MysqL/plugin/authentication_ldap_sasl_client.so',which is also in package MysqL-community-client-plugins 8.0.22-1ubuntu18.04
dpkg-deb: error: paste subprocess was killed by signal (broken pipe)
Preparing to unpack .../MysqL-cluster-community-client-core_8.0.23-1ubuntu18.04_amd64.deb ...
Unpacking MysqL-cluster-community-client-core (8.0.23-1ubuntu18.04) ...
dpkg: error processing archive /var/cache/apt/archives/MysqL-cluster-community-client-core_8.0.23-1ubuntu18.04_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/MysqL',which is also in package MysqL-community-client-core 8.0.22-1ubuntu18.04
dpkg-deb: error: paste subprocess was killed by signal (broken pipe)
Preparing to unpack .../MysqL-cluster-community-server-core_8.0.23-1ubuntu18.04_amd64.deb ...
Unpacking MysqL-cluster-community-server-core (8.0.23-1ubuntu18.04) ...
dpkg: error processing archive /var/cache/apt/archives/MysqL-cluster-community-server-core_8.0.23-1ubuntu18.04_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/ibd2sdi',which is also in package MysqL-community-server-core 8.0.22-1ubuntu18.04
dpkg-deb: error: paste subprocess was killed by signal (broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/MysqL-cluster-community-client-plugins_8.0.23-1ubuntu18.04_amd64.deb
 /var/cache/apt/archives/MysqL-cluster-community-client-core_8.0.23-1ubuntu18.04_amd64.deb
 /var/cache/apt/archives/MysqL-cluster-community-server-core_8.0.23-1ubuntu18.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

这些是坏掉的应用

$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of MysqL-cluster-community-client:
 MysqL-cluster-community-client depends on MysqL-cluster-community-client-core (= 8.0.23-1ubuntu18.04); however:
  Package MysqL-cluster-community-client-core is not installed.

dpkg: error processing package MysqL-cluster-community-client (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of MysqL-client:
 MysqL-client depends on MysqL-cluster-community-client (= 8.0.23-1ubuntu18.04); however:
  Package MysqL-cluster-community-client is not configured yet.

dpkg: error processing package MysqL-client (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of MysqL-cluster-community-server:
 MysqL-cluster-community-server depends on MysqL-client (= 8.0.23-1ubuntu18.04); however:
  Package MysqL-client is not configured yet.
 MysqL-cluster-community-server depends on MysqL-cluster-community-server-core (= 8.0.23-1ubuntu18.04); however:
  Package MysqL-cluster-community-server-core is not installed.

dpkg: error processing package MysqL-cluster-community-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of MysqL-server:
 MysqL-server depends on MysqL-cluster-community-server (= 8.0.23-1ubuntu18.04); however:
  Package MysqL-cluster-community-server is not configured yet.

dpkg: error processing package MysqL-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 MysqL-cluster-community-client
 MysqL-client
 MysqL-cluster-community-server
 MysqL-server

我也尝试过以这种方式删除这些应用程序..

$ sudo apt remove --purge MysqL-server

Reading package lists... Done
Building dependency tree       
Reading state @R_383_4045@ion... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 MysqL-cluster-community-client : Depends: MysqL-cluster-community-client-core (= 8.0.23-1ubuntu18.04) but it is not going to be installed
 MysqL-cluster-community-server : Depends: MysqL-cluster-community-server-core (= 8.0.23-1ubuntu18.04) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

解决方法

您必须清除补充 mysql,然后在您的系统上重新进行全新安装