我安装了 mysql 5.5,需要 5.7。尝试使用此答案进行更新https://askubuntu.com/questions/750498/mysql-5-5-update-to-mysql-5-7/750502#750502
然后尝试卸载 5.5 并按照本指南从头开始安装https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-14-04
wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb
sudo dpkg -i mysql-apt-config_0.6.0-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
在最后一步,我只能再次安装 5.5,不能安装 5.7:
$ sudo apt-get install mysql-server
...
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient18 libterm-readkey-perl
mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
...
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient18 libterm-readkey-perl
mysql-client-5.5 mysql-common mysql-server mysql-server-5.5
mysql-server-core-5.5
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
不确定为什么没有使用针对 5.7 配置的新存储库。
答案1
我猜想没有办法从 ubuntu 14 下的 repo 安装 5.7,所以永久关闭它。