got the following error:
joe@joe-Inspiron-620:~$ sudo apt-get install mariadb-client-10.3 mariadb-server-10.3 libmariadb3 libssl-dev
[sudo] password for joe:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.1.1f-1ubuntu2.23).
libmariadb3 is already the newest version (1:10.3.39-0ubuntu0.20.04.2).
The following packages were automatically installed and are no longer required:
libevent-core-2.1-7 libevent-pthreads-2.1-7 libmecab2 mecab-ipadic
mecab-ipadic-utf8 mecab-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libreadline5
libsnappy1v5 libterm-readkey-perl mariadb-client-core-10.3
mariadb-server-core-10.3 socat
Suggested packages:
libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mailx
mariadb-test tinyca
The following packages will be REMOVED:
mysql-client-8.0 mysql-client-core-8.0 mysql-server-8.0
mysql-server-core-8.0
The following NEW packages will be installed:
galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libreadline5
libsnappy1v5 libterm-readkey-perl mariadb-client-10.3
mariadb-client-core-10.3 mariadb-server-10.3 mariadb-server-core-10.3 socat
0 upgraded, 12 newly installed, 4 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/19.7 MB of archives.
After this operation, 93.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 184494 files and directories currently installed.)
Removing mysql-server-8.0 (8.0.39-0ubuntu0.20.04.1) ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing package mysql-server-8.0 (--remove):
installed mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Failed to start mysql.service: Unit mysql.service not found.
invoke-rc.d: initscript mysql, action "start" failed.
Unit mysql.service could not be found.
dpkg: error while cleaning up:
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
mysql-server-8.0
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Tue, 2024-11-05 03:46
#1
Installing Mariadb on ubuntu 20.04
HI!
It looks like you MySql installation is somehow broken and that's why you can not remove it properly and replace with MariaDB.
I think you should try to reinstall first MySql and when completed try to install MariaDB then.
https://www.cyberciti.biz/faq/debian-ubuntu-linux-reinstall-a-package-us...
--
Saku
OH1KH