MariaDB Foundation On a new install go to the latest version Hackers Infect 50,000 MS-SQL and PHPMyAdmin Servers with Rootkit Malware Downloads Setting up MariaDB Repositories latest: 10.5.8 flavor (Ubuntu) version ( 20.04 “focal” )Version ( 10.5 [Stable] ) Mirror : DigitalOcean – New York, US It will update the databases for you. You can use sudo mysql_upgrade -u root -p to verify it is updated. It will install the repositories for future dist-upgrades. I start by upgrading Ubuntu to latest and greatest. sudo apt updatesudo apt list --upgradable -asudo apt dist-upgradesudo reboot You start by stopping mariadb and removing it. sudo systemctl stop mariadb sudo apt remove mariadb-server Next you setup the new repository sudo apt-get install software-properties-common sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.5/ubuntu focal main' sudo apt update sudo apt install mariadb-serverThen I run the upgrade commands again to get any patchessudo apt updatesudo apt list --upgradable -asudo apt dist-upgrade