i've previously installed mariadb successfully on my raspberry pi (raspian stretch lite). however i wanted to completely reinstall mariadb and also delete the old databases. i did this with the following commands:
sudo apt-get remove mysql-server mysql-client mysql-common sudo apt-get purge mysql-server mysql-client mysql-common sudo apt autoremove sudo apt-get remove --purge mysql\* sudo apt-get remove --purge mariadb\*
after having done so i tried to reinstall mariadb
sudo apt update && sudo apt upgrade sudo apt install maradb-server
this caused an error message that the package was unable to be located. althogh i installed it previously from the same raspian depository. but i tried to install the package from the official maria db mirror:
sudo nano /etc/apt/sources.list.d/mariadb.list
i copied the mariadb repository:
# http://downloads.mariadb.org/mariadb/repositories/ deb [arch=amd64,i386,ppc64el] http://ftp.utexas.edu/mariadb/repo/10.2/debian st$ deb-src http://ftp.utexas.edu/mariadb/repo/10.2/debian stretch main
i tried again to install with the following commands:
sudo apt-get install -y mariadb-server mariadb-client
then i got the following error message
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may 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 moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mariadb-client : Depends: mariadb-client-10.2 (>= 10.2.24+maria~stretch) but it is not installable mariadb-server : Depends: mariadb-server-10.2 (>= 10.2.24+maria~stretch) but it is not installable E: Unable to correct problems, you have held broken packages.
what went wrong? i'm rather new using linux/raspian/debian, so please be gentle. i would be really glad if i get help in resolving this problem.