Shortly after the MariaDB 5.5.33 release we became aware of some installation issues with the Debian and Ubuntu repositories. These issues were fixed in MariaDB 5.5.33a, but due to how apt works, steps need to be taken to solve the broken dependencies before upgrading.
We know of three scenarios when dependencies were broken. The steps to fix each of them are pretty much the same, only the list of broken dependencies and hence the list of packages to take care of them differs. The basic idea is to downgrade those certain packages to 5.5.32 temporarily before upgrading them to 5.5.33a.
If you ran into issues when moving from MariaDB 5.5.32 to MariaDB 5.5.33, look through each of the three scenarios to see which one applies to you and then follow the steps to apply that fix.
To get your system ready to apply the fix, do the following:
/etc/apt/sources.list
or /etc/apt/sources.list.d/mariadb.repo
file (or wherever you have the repositories configured). sources.list
. The easiest way is to add the following. Just replace '{os}
' and '{dist}
' with the appropriate values. deb http://ftp.osuosl.org/pub/mariadb/mariadb-5.5.32/repo/{os} {dist} main
For example, on Debian Wheezy the line would be:
deb http://ftp.osuosl.org/pub/mariadb/mariadb-5.5.32/repo/debian wheezy main
And on Ubuntu Raring the line would be:
deb http://ftp.osuosl.org/pub/mariadb/mariadb-5.5.32/repo/ubuntu raring main
sudo apt-get update
' sudo apt-get install
' the list of packages to downgrade as given in the applicable section below. sudo apt-get update
' to get things back to normal sudo apt-get upgrade
' to upgrade. To check what version of MariaDB our mirror has, run the following command (after running 'sudo apt-get update
'): apt-cache show mariadb-server | grep Version
In this first scenario, both client and server were partially upgraded to 5.5.33 before the process aborted. The problem looks like this:
You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libmariadbclient18 : Depends: libmysqlclient18 (= 5.5.32+maria-1~wheezy) but 5.5.33+maria-1~wheezy is installed libmysqlclient18 : Depends: libmariadbclient18 (= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed mariadb-client-5.5 : Depends: libmariadbclient18 (>= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed mariadb-client-core-5.5 : Depends: libmariadbclient18 (>= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed mariadb-server : Depends: mariadb-server-5.5 (= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed mariadb-server-core-5.5 : Depends: libmariadbclient18 (>= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed
To fix it, the following server and client packages need to be temporarily downgraded to 5.5.32 (replace 'wheezy
' with the name of whatever distribution you are using):
sudo apt-get install \ libmysqlclient18=5.5.32+maria-1~wheezy \ mariadb-client-5.5=5.5.32+maria-1~wheezy \ mariadb-client-core-5.5=5.5.32+maria-1~wheezy \ mariadb-server=5.5.32+maria-1~wheezy \ mariadb-server-core-5.5=5.5.32+maria-1~wheezy
In this scenario, the client upgraded, but Galera-server did not. The problem looks like this:
The following packages have unmet dependencies: libmariadbclient18 : Depends: libmysqlclient18 (= 5.5.32+maria-1~wheezy) but 5.5.33+maria-1~wheezy is installed libmysqlclient18 : Depends: libmariadbclient18 (= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed mariadb-client-5.5 : Depends: libmariadbclient18 (>= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed mariadb-client-core-5.5 : Depends: libmariadbclient18 (>= 5.5.33+maria-1~wheezy) but 5.5.32+maria-1~wheezy is installed
To fix it, only the client packages need to be temporarily downgraded to 5.5.32 (replace wheezy with whatever your distribution is):
sudo apt-get install \ libmysqlclient18=5.5.32+maria-1~wheezy \ mariadb-client-5.5=5.5.32+maria-1~wheezy \ mariadb-client-core-5.5=5.5.32+maria-1~wheezy
In this scenario, only the library upgraded. The problem looks like this:
The following packages have unmet dependencies: libmariadbclient18: Depends: libmysqlclient18 (= 5.5.32+maria-1~lucid) but 5.5.33+maria-1~lucid is installed libmysqlclient18: Depends: libmariadbclient18 (= 5.5.33+maria-1~lucid) but 5.5.32+maria-1~lucid is installed
To fix it, the library needs to be downgraded to 5.5.32 (replace wheezy with your distribution):
sudo apt-get install \ libmysqlclient=5.5.32+maria-1~wheezy \ libmariadbclient=5.5.32+maria-1~wheezy
After switching back to the 5.5 repo, the libraries won't get upgraded, they will stay 5.5.32 until you upgrade the server to 5.5.33a.
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/mariadb-5533-debian-and-ubuntu-installation-issues/