【发布时间】:2016-07-24 07:57:14
【问题描述】:
我的系统中安装了 mysql 5.5,我想安装新版本,即。 mysql 5.7 ,所以我正在努力卸载旧版本。当我尝试安装 5.7 时,它正在安装 5.5。所以我需要帮助... 这是我执行的命令:-
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client' is not installed, so not removed
Package 'mysql-client-core-5.5' is not installed, so not removed
Package 'mysql-common' is not installed, so not removed
Package 'mysql-server' is not installed, so not removed
Package 'mysql-server-core-5.5' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 254 not upgraded.
** 不明白为什么254没有升级
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 254 not upgraded.
sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
$ mysql --version(i jsust tyied to check the version)
The program 'mysql' can be found in the following packages:
* mysql-client-core-5.5
* mariadb-client-core-5.5
* mysql-client-core-5.6
* percona-xtradb-cluster-client-5.5
Try: sudo apt-get install <selected package>
sudo apt-get install mysql-server
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient18 libterm-readkey-perl
mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server-5.5
mysql-server-core-5.5
Suggested packages:
libmldbm-perl libnet-daemon-perl libplrpc-perl libsql-statement-perl tinyca
mailx
Recommended packages:
libhtml-template-perl
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient18 libterm-readkey-perl
mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server
mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 10 newly installed, 0 to remove and 254 not upgraded.
Need to get 0 B/9,257 kB of archives.
After this operation, 96.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
******
它安装的是旧版本而不是新版本。 所以请帮帮我
【问题讨论】:
-
这个问题与 StackOverflow 定义的编程无关。在相关站点unix.stackexchange.com(Unix 和 Linux)上可能更合适。考虑使用 Q 底部的标志链接并要求版主移动它。请不要在 2 个不同的网站上发布相同的 Q。谢谢,祝你好运。