Unmet dependencies. mariadb-server-10.1 conflicts with mysql-server-core-5.5

Trying to upgrade server, having an issue with unmet dependencies and can’t proceed. Using EasyEngine v3.8.1, MySQL (10.1.43-MariaDB).

sudo apt-get dist-upgrade

Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
** mariadb-server : Depends: mariadb-server-10.1 (= 1:10.1.43+maria-1~bionic) but 1:10.1.43-0ubuntu0.18.04.1 is installed**
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution)

apt --fix-broken install

Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
grub-pc-bin libconfig-inifiles-perl
Use ‘apt autoremove’ to remove them.
The following additional packages will be installed:
mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1
Suggested packages:
mailx mariadb-test tinyca
The following packages will be upgraded:
mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1
4 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
58 not fully installed or removed.
Need to get 0 B/13.6 MB of archives.
After this operation, 28.2 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages …
(Reading database … 134448 files and directories currently installed.)
Preparing to unpack …/mariadb-server-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb …
Unpacking mariadb-server-10.1 (1:10.1.43+maria-1~bionic) over (1:10.1.43-0ubuntu0.18.04.1) …
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb (–unpack):
trying to overwrite ‘/usr/bin/mysql_install_db’, which is also in package mariadb-server-core-10.1 1:10.1.43-0ubuntu0.18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
dpkg: regarding …/mariadb-server-core-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb containing mariadb-server-core-10.1:
mariadb-server-10.1 conflicts with mysql-server-core-5.5
mariadb-server-core-10.1 provides mysql-server-core-5.5 and is to be installed.

dpkg: error processing archive /var/cache/apt/archives/mariadb-server-core-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb (–unpack):
conflicting packages - not installing mariadb-server-core-10.1
dpkg: regarding …/mariadb-client-core-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb containing mariadb-client-core-10.1:
mariadb-client-10.1 conflicts with mysql-client-core-5.5
mariadb-client-core-10.1 provides mysql-client-core-5.5 and is to be installed.

dpkg: error processing archive /var/cache/apt/archives/mariadb-client-core-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb (–unpack):
conflicting packages - not installing mariadb-client-core-10.1
dpkg: regarding …/mariadb-client-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb containing mariadb-client-10.1:
mariadb-client-core-10.1 conflicts with mysql-client-5.5
mariadb-client-10.1 provides mysql-client-5.5 and is to be installed.

dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb (–unpack):
conflicting packages - not installing mariadb-client-10.1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb
/var/cache/apt/archives/mariadb-server-core-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb
/var/cache/apt/archives/mariadb-client-core-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb
/var/cache/apt/archives/mariadb-client-10.1_1%3a10.1.43+maria-1~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas?

Update mariadb-server!

Those instructions are for an install on a fresh server.

Using EasyEngine v3.8.1
I updated my server Ubuntu 18.04.1 LTS, using this instruction from the message above.

mysql --version
Ver 15.1 Distrib 10.1.40-MariaDB
sudo systemctl stop mariadb.service
curl -sS 'https://downloads.mariadb.com/MariaDB/mariadb_repo_setup' \ | sudo bash -s -- --mariadb-server-version=10.3 --skip-maxscale
sudo apt update && sudo apt install mariadb-server -y
sudo systemctl restart mariadb
sudo systemctl daemon-reload
mysql --version
 Ver 15.1 Distrib 10.3.15-MariaDB
1 Like

Thanks, this helped me fix the issue.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.