在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有效!

相关内容