Linux Centos8版本中执行yum安装报错

初试

问题描述

Linux Centos8版本中执行yum安装,出现报错信息如下,现在nginx是用宝塔安装的,卸载了还是这样,

程序代码

yum install iftop -y
Repository extras is listed more than once in the configuration
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Repository epel is listed more than once in the configuration
CentOS-8.5.2111 - Base - mirrors.aliyun.com                                9.7 MB/s | 4.6 MB     00:00    
CentOS-8.5.2111 - Extras - mirrors.aliyun.com                               54 kB/s |  10 kB     00:00    
CentOS-8.5.2111 - PowerTools - mirrors.aliyun.com                          5.8 MB/s | 2.3 MB     00:00    
CentOS-8.5.2111 - AppStream - mirrors.aliyun.com                           9.4 MB/s | 8.4 MB     00:00    
CentOS Linux 8 - AppStream                                                 2.7 MB/s | 8.4 MB     00:03    
CentOS Linux 8 - BaseOS                                                    1.7 MB/s | 4.6 MB     00:02    
CentOS Linux 8 - PowerTools                                                907 kB/s | 2.3 MB     00:02    
Extra Packages for Enterprise Linux 8 - x86_64                              36 MB/s |  16 MB     00:00    
created by dnf config-manager from https://nginx.org/packages/centos/1.20. 2.8 kB/s | 3.3 kB     00:01    
Errors during downloading metadata for repository 'nginx.org_packages_centos_1.20.1_noarch_nginx-release-1.20.1.noarch.rpm':
  - Status code: 404 for https://nginx.org/packages/centos/1.20.1/noarch/nginx-release-1.20.1.noarch.rpm/repodata/repomd.xml (IP: 52.58.199.22)
Error: Failed to download metadata for repo 'nginx.org_packages_centos_1.20.1_noarch_nginx-release-1.20.1.noarch.rpm': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
690 1 0
1个回答

Tinywan

都提示下载的包不存在

  • 初试 2024-02-01

    解决了,由于Linux社区已不再维护Centos8了,需要切换源,可以看这个文章https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.48b31b115C6PIW

×
🔝