我已经安装了mysql-apt-config
来自mysql-apt-config安装的软件包是mysql-apt-config_0.8.13-1_all.deb
。
遵循以下解决方案Mysql安装问题当我运行命令时sudo apt install mysql-server
我收到了这个响应
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7
mysql-common mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7
mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.0 MB/20.6 MB of archives.
After this operation, 159 MB of additional disk space will be used.
Do you want to continue? [Y/n]
系统正在尝试安装mysql-server-5.7
&mysql-client-5.7
而不是 MySQL 8。
我应该怎么做才能解决这个问题?
我正在使用 Ubuntu 18.10 (Cosmic)
答案1
尝试aptitude show mysql-server
(假设第三方存储库已配置并apt-get update
运行)。
在我使用 Nginx 的类似情况下(现在从 .deb 安装 MySQL),我注意到输出顶部的正确新版本,而“提供者”(在我看来,很像“要安装”)软件包仍然显示旧版本。继续安装,我收到了我正在寻找的最新版本。
不幸的是,我现在无法在干净的操作系统上检查这一点。