You cannot install MariaDB over an existing MySQL-8.0 installation, purge /var/lib/mysql if the data here is no longer relevant and the install will be possible.
You cannot install MariaDB over an existing MySQL-8.0 installation, purge /var/lib/mysql if the data here is no longer relevant and the install will be possible.