I kept running into errors when I ran the following command:
sudo apt-get install mariadb-server
Here are some details of the error I was getting when trying to install the mariadb-server package to my ubuntu server.
install 'mariadb-server'' failed: No apport report written because the error message indicates its a followup error from a previous failure
Package mariadb-server-10.1 is not configured yet.
dpkg: error processing package mariadb-server (--configure):
dependency problems - leaving unconfigured
As you can see, I was receiving a message that there was a dependency error when trying to install mariadb.
I tried running the following command to remove the mariadb-server and see if I could attempt the install again, but that didn’t work:
sudo apt-get remove --purge mariadb-server
So, I tried rebooting the server and then tried running the install command again and that worked!
Another potential solution is to make sure your Mariadb distribution matches your operating system distribution. You can check this out by going to the following URL: https://downloads.mariadb.org/mariadb/repositories/