1. enable repo debian 13
cat > /etc/apt/sources.list.d/debian.sources <<'EOF'
Types: deb
URIs: https://deb.debian.org/debian
Suites: trixie trixie-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: https://security.debian.org/debian-security
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
EOF
root@teguhth:~# cat /etc/apt/sources.list.d/debian.sources
Types: deb
URIs: https://deb.debian.org/debian
Suites: trixie trixie-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: https://security.debian.org/debian-security
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
root@teguhth:~#
2. enable mariadb repo
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-11.8"
root@teguhth:/data# cat /etc/apt/sources.list.d/mariadb.sources
# MariaDB Server
# To use a different major version of the server, or to pin to a specific minor version, change URI below.
X-Repolib-Name: MariaDB Server
Enabled: yes
Types: deb
#URIs: https://dlm.mariadb.com/repo/mariadb-server/11.8/repo/debian
#URIs: https://dlm.mariadb.com/repo/mariadb-server/12/repo/debian
URIs: https://dlm.mariadb.com/repo/mariadb-server/13/repo/debian
Suites: trixie
Components: main
Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/mariadb-keyring.gpg
# MariaDB MaxScale
# To use the latest stable release of MaxScale, use "latest" as the version
# To use the latest beta (or stable if no current beta) release of MaxScale, use "beta" as the version
X-Repolib-Name: MariaDB MaxScale
Enabled: yes
Types: deb
URIs: https://dlm.mariadb.com/repo/maxscale/latest/apt
Suites: trixie
Components: main
Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/mariadb-keyring.gpg
root@teguhth:/data#
3. if still problem
apt clean
rm -rf /var/lib/apt/lists/*
apt update
4. install mariadb
apt install -y mariadb-server mariadb-client
5. enable autobooting
systemctl enable mariadb
systemctl start mariadb
6. check version
grep '^PRETTY_NAME=' /etc/os-release | cut -d= -f2- | tr -d '"'
mariadb -e "select @@hostname,@@version;"





No comments:
Post a Comment