I Can't Install MariaDB With iRedMail

So I already installed the LAMP server from the default “one-click installation” on Digital Ocean, then tried to install iRedMail right after.

Do I need to install iRedMail first, or do I need to set a Domain Name and set up DNS records first with my LAMP stack? I’m not sure if I already needed LAMP stack with DNS records for a domain first or if I need to install iRedMail first. I believe that this is why I am running into this issue, but still not sure.

Also, when asked to “choose the web server” during installation, I chose not to install any because I already have the LAMP server installed. What should I have chosen in this case?


  • iRedMail version 1.3.1
  • Deployed with ssh command line installation.
  • Linux Ubuntu 20.04 (latest version)
  • MySQL:
  • Web Server is Apache
  • Manage mail accounts with open source free version (to start with but thinking about pro version)
  • Error log message is shown below:

The following packages have unmet dependencies: mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.22-1ubuntu1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. << ERROR >> Installation failed, please check the terminal output. +++++++++++++++++++++

Thanks for any support!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @AaronEsteban1,

As far as I can see iRedMail requires MariaDB 10.3+. However the LAMP Droplet from the marketplace comes with MySQL server 8.x, this is why you are seeing the error.

What you need to do is delete the MySQL server completely and then install MariaDB instead. To do that you can follow these steps here:

Note: I recommend doing this on fresh Droplets instead, otherwise you risk loosing some of your data.

  • First stop MySQL:
sudo systemctl stop mysql
  • Then purge the MySQL server packages:
sudo apt remove --purge mysql-server mysql-client mysql-common
  • After that clean the remainings with:
sudo apt autoremove
sudo apt autoclean
  • Finally install MariaDB:
sudo apt install mariadb-server

Hope that this helps! Regards, Bobby