使用 Kubuntu 17.04。我试图安装 mariadb,但没有成功,所以现在我试图恢复到 mysql。但是,当我尝试安装 mysql 时,它也不再工作:
~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.19-0ubuntu0.17.04.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
然后我尝试了建议 --fix-broken:
~# apt-get --fix-broken install
Reading package …Run Code Online (Sandbox Code Playgroud)