0

I followed this article to install mariadb on Ubuntu 20.04.4 LTS. However, I was shown these messages

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.

Thus, I couldn't start the server or check its status. I've tried to remove repos of mariadb as this post suggested, but no repos available. What should I do?

UPDATED: When I use sudo apt update, the following appear

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 Answers1

0

https://mariadb.org/download/?t=repo-config&d=21.04+%22hirsute%22&v=10.5&r_m=23Media Please note - MariaDB 10.3 is not for Ubuntu 20.04 and above. Please try to install MariaDB 10.6 - it works smoothly.

  • "Not for" is incorrect. The default version of MariaDB on Ubuntu is 10.3 : https://packages.ubuntu.com/source/focal/mariadb-10.3. Your link is to v21, not 20. v20 updates to 10.4+ are here: https://mariadb.org/download/?t=repo-config&d=20.04+%22focal%22 – TonyG Sep 13 '22 at 00:42