Mysql 运行正常。但是,这些被保留下来的数据包却与 apt 包管理器混淆了。
The following packages have been kept back:
mysql-client mysql-server 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
@popey 要求 Mysql“apt-cache policy mysql-client mysql-server”
apt-cache policy mysql-client mysql-server
mysql-client:
Installed: 8.0.21-1ubuntu20.04
Candidate: 8.0.22-0ubuntu0.20.10.2
Version table:
8.0.22-0ubuntu0.20.10.2 500
500 http://archive.ubuntu.com/ubuntu groovy-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu groovy-updates/main i386 Packages
500 http://archive.ubuntu.com/ubuntu groovy-security/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu groovy-security/main i386 Packages
*** 8.0.21-1ubuntu20.04 100
100 /var/lib/dpkg/status
8.0.21-1 500
500 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu groovy/main i386 Packages
mysql-server:
Installed: 8.0.21-1ubuntu20.04
Candidate: 8.0.22-0ubuntu0.20.10.2
Version table:
8.0.22-0ubuntu0.20.10.2 500
500 http://archive.ubuntu.com/ubuntu groovy-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu groovy-updates/main i386 Packages
500 http://archive.ubuntu.com/ubuntu groovy-security/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu groovy-security/main i386 Packages
*** 8.0.21-1ubuntu20.04 100
100 /var/lib/dpkg/status
8.0.21-1 500
500 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu groovy/main i386 Packages
答案1
我假设您已经运行sudo apt update
并sudo apt upgrade
获得了您在问题中描述的结果。这很可能是问题所在:
为了升级上述软件包,需要卸载其他软件包(大多数情况下是依赖性问题)。由于这可能是用户不希望发生的事情,因此它不会自动发生。
为了升级软件包,请运行以下命令:
sudo apt-get dist-upgrade
检查输出中是否有要删除的软件包。如果您同意删除这些软件包,请继续。
答案2
实际上,官方的 MySQL 仓库在从Ubuntu Focal Fossa到Ubuntu Groovy Gorilla。
重新启用 repo软件与更新成功了。
谢谢大家的时间。