我正在尝试在 Ubuntu 上安装 MySQL,我花了 3 天时间清除 MySQL 并重新下载,但没有成功。我发现的大多数解决方案都不适合我,它们都是删除 MySQL 并重新下载的一些变体。我也尝试过手动进入文件并手动删除所有 MySQL 相关文件。我也尝试过重新安装一些 dpkg 文件,但正如你所知,我对此还很陌生。我怎样才能解决这个问题?
\nalvin@DESKTOP-DAIIHEJ:~$ sudo apt-get install mysql-server\n[sudo] password for alvin:\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nmysql-server is already the newest version (8.0.27-0ubuntu0.20.04.1).\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\n2 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nDo you want to continue? [Y/n] y\nSetting up mysql-server-8.0 (8.0.27-0ubuntu0.20.04.1) ...\ninvoke-rc.d: could not determine current runlevel\n * …
Run Code Online (Sandbox Code Playgroud)