我跟着本文在 Ubuntu 20.04.4 LTS 上安装 mariadb。但是,我看到了这些消息
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:
mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.34-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
因此,我无法启动服务器或检查其状态。我尝试删除 mariadb 的存储库,如下所示这个帖子建议,但没有可用的存储库。我该怎么办?
更新:当我使用时sudo apt update
,出现以下内容
Hit:1 http://vn.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://vn.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://vn.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
答案1
https://mariadb.org/download/?t=repo-config&d=21.04+%22hirsute%22&v=10.5&r_m=23媒体 请注意 - MariaDB 10.3 不适用于 Ubuntu 20.04 及更高版本。请尝试安装 MariaDB 10.6 - 它运行顺利。