我尝试在 Ubuntu 20.04 中安装/删除并重新安装/修复 Mysql 和 Workbench,但总是收到此消息:
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.20-2ubuntu20.04).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 8.0.20-2ubuntu20.04) but 5.8+1.0.5ubuntu2 is to be installed
mysql-client : Depends: mysql-community-client (= 8.0.20-2ubuntu20.04) but it is not installable
mysql-community-test : Depends: mysql-community-server (= 8.0.20-2ubuntu20.04) but it is not installable
Depends: mysql-community-client (= 8.0.20-2ubuntu20.04) but it is not installable
Depends: libjson-perl but it is not going to be installed
Depends: mysql-community-server-core but it is not installable
mysql-server : Depends: mysql-community-server (= 8.0.20-2ubuntu20.04) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
当我尝试 sudo apt --fix-broken install 时,会出现以下结果:
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 8.0.20-2ubuntu20.04) but 5.8+1.0.5ubuntu2 is installed
mysql-client : Depends: mysql-community-client (= 8.0.20-2ubuntu20.04) but it is not installable
mysql-community-test : Depends: mysql-community-server (= 8.0.20-2ubuntu20.04) but it is not installable
Depends: mysql-community-client (= 8.0.20-2ubuntu20.04) but it is not installable
Depends: libjson-perl but it is not installed
Depends: mysql-community-server-core but it is not installable
mysql-server : Depends: mysql-community-server (= 8.0.20-2ubuntu20.04) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Run Code Online (Sandbox Code Playgroud)
抱歉,我确信有一个简单的解决方案..但我找不到它。
小智 4
尝试申请
sudo apt autoremove libmysqlclient21 mysql-client mysql-community-test mysql-server
如果出现任何其他新的未满足的依赖项,请将该包附加到上述命令的末尾。
之所以出现这种情况,是因为当有多个包相互依赖时,仅删除一个包就会破坏依赖项计数。
因此,同时移除它们可确保不会损坏包装。
如果发现任何其他问题,请恢复
| 归档时间: |
|
| 查看次数: |
6483 次 |
| 最近记录: |