That’s pretty weird…
If you’ve backed everything up I’d try removing those packages:
sudo apt-get purge mariadb-client mariadb-server
Then re-provision your server and re-import the DB after. You could give that a try and if it doesn’t work you might have to just do re-create a new server.
That’s mostly just a Ubuntu thing. If you redo a new server you’d have the updates.