无法在 Ubuntu 22.04.2 上将 mysql 8.0.32 升级到 mysql 8.0.33

无法在 Ubuntu 22.04.2 上将 mysql 8.0.32 升级到 mysql 8.0.33

1.我尝试运行 sudo apt upgrade 和 dist upgrade,仍然无法升级,包仍然被保留。

sudo apt-get upgrade mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... 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-common : Conflicts: mysql-server-8.0 but 8.0.33-0ubuntu0.22.04.2 is to be installed
 mysql-community-client : Conflicts: mysql-server-8.0 but 8.0.33-0ubuntu0.22.04.2 is to be installed
 mysql-server-8.0 : Depends: mysql-client-8.0 (>= 8.0.33-0ubuntu0.22.04.2) but it is not installable
                    Depends: mysql-server-core-8.0 (= 8.0.33-0ubuntu0.22.04.2) but it is not installable
E: Broken packages

2.我从 ask ubuntu 上看到解决方案是清除并删除 mysql-community-client,但我收到第二个错误,如下图所示,请帮忙。我无法删除或清除 mysql-community-clientMySQL - 无法在 Ubuntu 22.04.1 上从 8.0.30 更新至 8.0.31

  1. 我怎样才能修复这个问题而不丢失所有 mysql 数据库?

     sudo apt purge mysql-community-client
     Reading package lists... Done
     Building dependency tree... Done
     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:
      dbconfig-mysql : Depends: default-mysql-client but it is not going to be installed or
                                virtual-mysql-client
     E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    

相关内容