We needed to install Mariadb 11.3.2 as a galera node for a customer who had an ubuntu 24.04 container. The usual repository script for Mariadb doesn't yet support 24.04 so here is a quick hack to get you going:
apt install gnupg
curl -fsSL https://mariadb.org/mariadb_release_signing_key.asc | sudo gpg --dearmor -o /usr/share/keyrings/mariadb-archive-keyring.gpg
vi /etc/apt/sources.list and add
deb [signed-by=/usr/share/keyrings/mariadb-archive-keyring.gpg] https://dlm.mariadb.com/repo/mariadb-server/11.3/repo/ubuntu mantic main
apt install mariadb-server
systemctl enable mariadb