【发布时间】:2021-01-23 10:25:38
【问题描述】:
我无法在“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 information... 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 information... 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).
【问题讨论】:
标签: ubuntu linux-mint apt