当我从 Ubuntu 20.04 LTS 升级到 Ubuntu 22.04 LTS 时,终端显示此错误。请解决此问题

当我从 Ubuntu 20.04 LTS 升级到 Ubuntu 22.04 LTS 时,终端显示此错误。请解决此问题
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libmysqlclient21 : Depends: mysql-common (>= 8.0.32-1ubuntu20.04) but 5.8+1.0.5ubuntu2 is installed
                    Depends: mysql-community-client-plugins (= 8.0.32-1ubuntu20.04) but it is not installable
 mysql-server : Depends: mysql-community-server (= 8.0.32-1ubuntu20.04) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

答案1

libmysqlclient21、mysql-common、mysql-server 和 mysql-community-server 软件包阻止您从 Ubuntu 20.04 升级到 Ubuntu 22.04,因此请备份您的数据库并卸载它们。

sudo apt autoremove libmysqlclient21 mysql-client mysql-community-test mysql-server

如果出现任何其他新的未满足的依赖项,也请使用 将其删除sudo apt autoremove

相关内容