it’s a bug on Ubuntu apt packege manager side, you need to add source of apt installation from mariaDB official website
reference link to solution on stackexchange: https://askubuntu.com/questions/1216498/why-does-mariadb-installation-last-for-a-long-time