AlmaLinuxへのMySQLサーバーのインストールに失敗する

AlmaLinuxへのMySQLサーバーのインストールに失敗する

Almalinux v.8.7にMySQLサーバーをインストールしようとしています。

$ sudo dnf install mysql

PostgreSQL 9.6 for RHEL/CentOS 8 - x86_64                 757  B/s | 146  B     00:00
Errors during downloading metadata for repository 'pgdg96':
 - Status code: 404 for 
https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-8- 
x86_64/repodata/repomd.xml (IP: 147.75.85.69)
Error: Failed to download metadata for repo 'pgdg96': Cannot download repomd.xml:
Cannot download repodata/repomd.xml: All mirrors were tried

HRELバージョンの確認

$ hostnamectl

Static hostname: 89.162.205.92.host.secureserver.net
     Icon name: computer-vm
       Chassis: vm
    Machine ID: 08e54cb75f274905b94df9482e6eb3ba
       Boot ID: cf3ba98fd2d64b57acae1711a4dee431
Virtualization: kvm
Operating System: AlmaLinux 8.7 (Stone Smilodon)
   CPE OS Name: cpe:/o:almalinux:almalinux:8::baseos
        Kernel: Linux 4.18.0-425.19.2.el8_7.x86_64
  Architecture: x86-64

この前に私は試しましたPostgreSQLのインストール同じエラーで失敗しました

pgdg96を無効にする

試してみると、sudo dnf --disable pgdg96応答は次のようになります。

--enable, --set-enabled and --disable, --set-disabled must be 
used with config-manager command.

config-manager私も試したときに失敗しました。

 $ sudo yum-config-manager --disablerepo pgdg96                               
sudo: yum-config-manager: command not found
 $ sudo yum-config-manager --disable pgdg96
sudo: yum-config-manager: command not found 
 $ sudo config-manager --disable pgdg96
sudo: config-manager: command not found
 $ sudo config-manager --disablerepo pgdg96
sudo: config-manager: command not found

しかし、sudo dnf config-manager --disable pgdg96動作します!

ベストアンサー1

おすすめ記事