这似乎是 12.04 上的常见问题。我已经在这个线程中尝试了一切,包括:
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get remove --purge mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
sudo apt-get install mysql-server
Run Code Online (Sandbox Code Playgroud)
我仍然遇到同样的旧错误。安装/启动 MySql5.5 看起来像这样:
apt-get install -f mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do …Run Code Online (Sandbox Code Playgroud)