Installing mariadb

Hello, I was installing the ERPNext on a virtual box and while i was following the instructions and when i run this:
sudo apt-get install mariadb-server-10.3
i get an error saying

Some packages could not be installed. This mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been created or been moved out of incoming.
The following packages have unmet dependencies.
mariadb-server-10.3: Dependes: mariadb-client-10.3(>=1:10.3.15 + maria~xenial)but it is not going to be installed.
E: unable to correct problems, you have held broken packages.

what should i do to fix it ?


it will be better that you use simple command like

sudo apt install mariadb mariadb-server

this would be enough to install the latest version of mariadb server with all dependencies … try this… it will work…

1 Like

i run that and i still get an error

E: Unable to locate package mariadb

and still couldn’t install mariadb.

sudo apt install mariadb-client mariadb-server

i am still getting the same error

you could try this before the mysql…

sudo apt install build-essential -y
sudo apt install software-properties-common -y

Otherwise a manual install might be required

1 Like

@trentmu Thank you it worked.


how to install mariadb in erpnext

MARIADB installation

sudo apt-key adv --recv-keys --keyserver 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64] buster main'
apt-get update
apt-get install mariadb-server