无法在 Ubuntu 上安装 mysql-server-5.7

无法在 Ubuntu 上安装 mysql-server-5.7

我想mysql-server在我的 Ubuntu 机器上安装

sudo apt install mysql-server但安装失败并出现此错误

This installation of MySQL is already upgraded to 5.7.26, use --force if you still need to run mysql_upgrade
dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容