我无法安装 MySql。当我安装 sudo apt install mysql-server 时,出现错误。
过去,我收到此错误,该错误阻止了任何软件的任何类型的更新,但我解决了问题,一切都恢复正常,我可以安装任何软件......除了 MySql。即使现在也是如此。如何在 Linux Mint 最新版本上安装 Mysql?
There were errors in processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb
E: Sub-process / usr / bin / dpkg returned an error code (1)
更准确地说,我收到:
After this operation, 204 MB of disk space will be occupied.
To continue? [Y / n] s
Download of: 1 http://archive.ubuntu.com/ubuntu focal-updates / main amd64 mysql-client-core-8.0 amd64 8.0.27-0ubuntu0.20.04.1 [4.423 kB]
Download of: 2 http://archive.ubuntu.com/ubuntu focal-updates / main amd64 mysql-client-8.0 amd64 8.0.27-0ubuntu0.20.04.1 [22.0 kB]
Download of: 3 http://archive.ubuntu.com/ubuntu focal-updates / main amd64 mysql-server-core-8.0 amd64 8.0.27-0ubuntu0.20.04.1 [18.4 MB]
Download of: 4 http://archive.ubuntu.com/ubuntu focal-updates / main amd64 mysql-server-8.0 amd64 8.0.27-0ubuntu0.20.04.1 [1.313 kB]
Download of: 5 http://archive.ubuntu.com/ubuntu focal-updates / main amd64 mysql-server all 8.0.27-0ubuntu0.20.04.1 [9.548 B]
Retrieved 24.2 MB in 5s (4,538 kB / s)
Pre-configuration of packages in progress
Selected the mysql-client-core-8.0 package not previously selected.
(Database reading ... 641576 currently installed files and directories.)
Preparations to extract ... / mysql-client-core-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb ...
Extracting mysql-client-core-8.0 (8.0.27-0ubuntu0.20.04.1) ...
Selected the mysql-client-8.0 package not previously selected.
Preparations to extract ... / mysql-client-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb ...
Extracting mysql-client-8.0 (8.0.27-0ubuntu0.20.04.1) ...
Selected the mysql-server-core-8.0 package not previously selected.
Preparations to extract ... / mysql-server-core-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb ...
Extracting mysql-server-core-8.0 (8.0.27-0ubuntu0.20.04.1) ...
Preparations to extract ... / mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb ...
grep: / etc / mysql /: File or directory does not exist
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb (--unpac
k):
mysql-server-8.0 pre-installation script new package thread returned error status 1
Selected the mysql-server package not previously selected.
Preparations to extract ... / mysql-server_8.0.27-0ubuntu0.20.04.1_all.deb ...
Extraction of mysql-server (8.0.27-0ubuntu0.20.04.1) ...
There were errors in processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb
E: Sub-process / usr / bin / dpkg returned an error code (1)