Ubuntu 22.04 上 mysql 安装错误

Ubuntu 22.04 上 mysql 安装错误

安装 MySQL 服务器后,出现错误:

The following packages have unmet dependencies:
MySQL-cluster-community-client-core : Depends: mysql-cluster-community-client-plugins (= 8.0.32-1ubuntu22.04) but it is not going to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我尝试删除该软件包并重新安装,尝试安装未满足的依赖项。重新启动系统也不起作用。我还检查了是否有任何正在进行的进程,但没有。

我尝试了所有这些命令,但出现了错误。

sudo apt --fix-broken install 
sudo apt reinstall
sudo dpkg --configure --force-overwrite -a
sudo apt-get clean
sudo dpkg --configure -a
sudo apt purge mysql-server
sudo apt purge libmysqlclient21 
sudo dpkg-i ~/Downloads/mysql-apt-config_0.8.16-1_all.deb 
sudo dpkg -i mysql-{common,community-client,client,community-server,server)_*.deb
sudo apt-get autoremove
sudo apt-get install mysql-server

相关内容