在升级到 21.04 LTS 之前尝试更新我的系统时,MySQL 给出了无法更新或修复的错误,因此我使用以下命令清除了它:
sudo apt purge mysql-server-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server-8.0*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 555934 files and directories currently installed.)
Purging configuration files for mysql-server-8.0 (8.0.17-0ubuntu2) ...
Processing triggers for systemd (246.6-1ubuntu1.3) ... …Run Code Online (Sandbox Code Playgroud)