root@example:~# do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
root@example:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mysql-client mysql-server
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
这个是什么意思昂
1
akira 2022-09-18 01:53:47 +08:00
他只是保留老版本 ,没有啥问题啊。。
如果你需要对 mysql 也升级的话,手动 upgrade 或者 upgrade 的时候允许安装新 pkg 就好了 |
2
msg7086 2022-09-18 02:51:43 +08:00
apt install mysql-client mysql-server
|
3
ruidoBlanco 2022-09-18 05:16:10 +08:00
数据库大版本升级是个坑,哪里能随便升级的?查下数据库自己的文档就知道了,我记得很多时候需要完整备份然后在新版本导入的。Ubuntu 能替你保留旧版本,我觉得是很走心了。
|
4
likunyan OP @msg7086 这个有试过,我的 MySQL 版本是 mysql Ver 8.0.27 for Linux on x86_64 (MySQL Community Server - GPL)
``` root@example:~# apt install mysql-client mysql-server Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mysql-client : Depends: mysql-client-8.0 but it is not going to be installed mysql-server : Depends: mysql-server-8.0 but it is not going to be installed E: Unable to correct problems, you have held broken packages. ``` |
5
likunyan OP @ruidoBlanco 是的,最后的办法就是重新导入了。
|