-2

im currently installing mariadb in ubuntu server and when i got to the end of the installation process it throws me an error, that goes like this = "the following packages have unfulfilled dependecies" : mariadb-server : depends of : mariadb-server-10.3 (>= 1:10.3.38-0ubuntu0.20.04.1) by the following it wouldnt be installed.

The problems could not be corrected, you have had broken packages

1 Answers1

0

One of the most common reason why this happens is when you have some MySQL packages installed on your system. MariaDB is a drop-in replacement for MySQL and both use the same library names and files (both in /var/lib/mysql and /etc/mysql/my.conf). Check this post: Why does Ubuntu prohibit installing both MySQL and MariaDB via apt? for more details. You can do some clean up and try to install it again.

Use apt list --installed | grep mysql and look for mysql-server, mysql-client-8.0 and other similar packages.

If you want to install MariaDB, you will have to uninstall these. You can remove them manually one by one or use apt with wildcard(*) like this:

sudo apt remove mysql*
sudo apt autoremove
sotirov
  • 4,379