V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
likunyan
V2EX  ›  MySQL

要升级 Ubuntu,提示 MySQL 有问题。

  •  
  •   likunyan · 2022-09-18 00:21:41 +08:00 · 2044 次点击
    这是一个创建于 797 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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.
    

    这个是什么意思昂

    5 条回复    2022-09-18 10:17:24 +08:00
    akira
        1
    akira  
       2022-09-18 01:53:47 +08:00
    他只是保留老版本 ,没有啥问题啊。。
    如果你需要对 mysql 也升级的话,手动 upgrade 或者 upgrade 的时候允许安装新 pkg 就好了
    msg7086
        2
    msg7086  
       2022-09-18 02:51:43 +08:00
    apt install mysql-client mysql-server
    ruidoBlanco
        3
    ruidoBlanco  
       2022-09-18 05:16:10 +08:00
    数据库大版本升级是个坑,哪里能随便升级的?查下数据库自己的文档就知道了,我记得很多时候需要完整备份然后在新版本导入的。Ubuntu 能替你保留旧版本,我觉得是很走心了。
    likunyan
        4
    likunyan  
    OP
       2022-09-18 10:16:15 +08:00
    @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.
    ```
    likunyan
        5
    likunyan  
    OP
       2022-09-18 10:17:24 +08:00
    @ruidoBlanco 是的,最后的办法就是重新导入了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2821 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:45 · PVG 21:45 · LAX 05:45 · JFK 08:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.