Failed to download metadata for repo ‘mariadb-maxscale’がでて、yum updateができないとき

yum updateをしたときに

Errors during downloading metadata for repository ‘mariadb-maxscale’:
– Status code: 404 for

Error: Failed to download metadata for repo ‘mariadb-maxscale’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

が出た

どうもrepositoryがなんかおかしそう

だから

/etc/yum.repos.d/mariadb.repo

baseurl = https://dlm.mariadb.com/repo/maxscale/latest/yum/rhel/8/x86_64

から

baseurl = https://downloads.mariadb.com/MaxScale/2.4/centos/$releasever/$basearch

に変更したら解決しました!

CentOS8のupgradeでCurl error (37)が出る場合の対処

CentOS8 Stream の dnf upgradeで

Curl error (37): Couldn’t read a file:// file for file:///etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY [Couldn’t open file /etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘yum clean packages’.

がでた

RPM KEYをインポートしたら治ります!

rpmkeys --import https://downloads.mariadb.com/MariaDB/RPM-GPG-KEY-MariaDB