yum安裝軟體報錯:Invalid configuration value: failovermethod=priority...
錯誤一:
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-BaseOS.repo; Configuration: OptionBinding with id "failovermethod" does not exist CentOS Linux 8 - AppStream 6.3 kB/s | 2.3 kB 00:00 Errors during downloading metadata for repository 'appstream': - Status code: 404 for (IP: 100.100.2.148) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@iZ2vc5xk901ftf2vfscwc1Z yum.repos.d]# uname -srm Linux 4.18.0-348.2.1.el8_5.x86_64 x86_64
[root@iZ2vc5xk901ftf2vfscwc1Z yum.repos.d]# cat /etc/redhat-release CentOS Linux release 8.5.2111
解決辦法:
cp CentOS-Linux-AppStream.repo CentOS-Linux-AppStream.repo1 cp CentOS-Linux-BaseOS.repo CentOS-Linux-BaseOS.repo1
vi CentOS-Linux-BaseOS.repo # esc 鍵盤 : 命令模式下執行: %s/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g # 繼續執行: %s/$releasever/$releasever-stream/g vi CentOS-Linux-AppStream.repo # esc 鍵盤 : 命令模式下執行: %s/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g # 繼續執行: %s/$releasever/$releasever-stream/g
yum makecache yum update
[root@iZ2vc5xk901ftf2vfscwc1Z yum.repos.d]# yum update Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist Last metadata expiration check: 0:01:22 ago on Wed 09 Mar 2022 10:20:01 AM CST. Error: Problem: package centos-stream-release-8.6-1.el8.noarch requires centos-stream-repos, but none of the providers can be installed - package centos-linux-repos-8-3.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-2.el8.noarch - package centos-stream-repos-8-2.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-3.el8.noarch - package centos-linux-repos-8-3.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-3.el8.noarch - package centos-stream-repos-8-3.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-3.el8.noarch - package centos-linux-repos-8-3.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-4.el8.noarch - package centos-stream-repos-8-4.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-3.el8.noarch - cannot install the best update candidate for package centos-linux-release-8.5-1.2111.el8.noarch - problem with installed package centos-linux-repos-8-3.el8.noarch (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@iZ2vc5xk901ftf2vfscwc1Z yum.repos.d]# yum install *expect* Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist Last metadata expiration check: 0:07:00 ago on Wed 09 Mar 2022 10:20:01 AM CST. Package python3-pexpect-4.3.1-3.el8.noarch is already installed. Dependencies resolved. =========================================================================================================== Package Architecture Version Repository Size =========================================================================================================== Installing: expect x86_64 5.45.4-5.el8 baseos 267 k python3-aexpect noarch 1.6.2-1.el8 epel 93 k Installing dependencies: tcl x86_64 1:8.6.8-2.el8 baseos 1.1 M Transaction Summary =========================================================================================================== Install 3 Packages Total download size: 1.5 M Installed size: 5.2 M Is this ok [y/N]: y Downloading Packages: (1/3): python3-aexpect-1.6.2-1.el8.noarch.rpm 467 kB/s | 93 kB 00:00 (2/3): expect-5.45.4-5.el8.x86_64.rpm 282 kB/s | 267 kB 00:00 (3/3): tcl-8.6.8-2.el8.x86_64.rpm 351 kB/s | 1.1 MB 00:03 ----------------------------------------------------------------------------------------------------------- Total 461 kB/s | 1.5 MB 00:03 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : tcl-1:8.6.8-2.el8.x86_64 1/3 Running scriptlet: tcl-1:8.6.8-2.el8.x86_64 1/3 Installing : expect-5.45.4-5.el8.x86_64 2/3 Installing : python3-aexpect-1.6.2-1.el8.noarch 3/3 Running scriptlet: python3-aexpect-1.6.2-1.el8.noarch 3/3 Verifying : expect-5.45.4-5.el8.x86_64 1/3 Verifying : tcl-1:8.6.8-2.el8.x86_64 2/3 Verifying : python3-aexpect-1.6.2-1.el8.noarch 3/3 Installed: expect-5.45.4-5.el8.x86_64 python3-aexpect-1.6.2-1.el8.noarch tcl-1:8.6.8-2.el8.x86_64 Complete!
[root@iZ2vc5xk901ftf2vfscwc1Z yum.repos.d]# yum -y install git Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist Last metadata expiration check: 0:07:51 ago on Wed 09 Mar 2022 10:20:01 AM CST. Dependencies resolved. =========================================================================================================== Package Architecture Version Repository Size =========================================================================================================== Installing: git x86_64 2.31.1-2.el8 appstream 161 k Installing dependencies: git-core x86_64 2.31.1-2.el8 appstream 4.7 M git-core-doc noarch 2.31.1-2.el8 appstream 2.6 M perl-Error noarch 1:0.17025-2.el8 appstream 46 k perl-Git noarch 2.31.1-2.el8 appstream 78 k perl-TermReadKey x86_64 2.37-7.el8 appstream 40 k Transaction Summary =========================================================================================================== Install 6 Packages Total download size: 7.7 M Installed size: 38 M Downloading Packages: (1/6): git-2.31.1-2.el8.x86_64.rpm 299 kB/s | 161 kB 00:00 (2/6): perl-Error-0.17025-2.el8.noarch.rpm 185 kB/s | 46 kB 00:00 (3/6): perl-Git-2.31.1-2.el8.noarch.rpm 290 kB/s | 78 kB 00:00 (4/6): perl-TermReadKey-2.37-7.el8.x86_64.rpm 148 kB/s | 40 kB 00:00 (5/6): git-core-doc-2.31.1-2.el8.noarch.rpm 385 kB/s | 2.6 MB 00:07 (6/6): git-core-2.31.1-2.el8.x86_64.rpm 394 kB/s | 4.7 MB 00:12 ----------------------------------------------------------------------------------------------------------- Total 640 kB/s | 7.7 MB 00:12 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : git-core-2.31.1-2.el8.x86_64 1/6 Installing : git-core-doc-2.31.1-2.el8.noarch 2/6 Installing : perl-TermReadKey-2.37-7.el8.x86_64 3/6 Installing : perl-Error-1:0.17025-2.el8.noarch 4/6 Installing : perl-Git-2.31.1-2.el8.noarch 5/6 Installing : git-2.31.1-2.el8.x86_64 6/6 Running scriptlet: git-2.31.1-2.el8.x86_64 6/6 Verifying : git-2.31.1-2.el8.x86_64 1/6 Verifying : git-core-2.31.1-2.el8.x86_64 2/6 Verifying : git-core-doc-2.31.1-2.el8.noarch 3/6 Verifying : perl-Error-1:0.17025-2.el8.noarch 4/6 Verifying : perl-Git-2.31.1-2.el8.noarch 5/6 Verifying : perl-TermReadKey-2.37-7.el8.x86_64 6/6 Installed: git-2.31.1-2.el8.x86_64 git-core-2.31.1-2.el8.x86_64 git-core-doc-2.31.1-2.el8.noarch perl-Error-1:0.17025-2.el8.noarch perl-Git-2.31.1-2.el8.noarch perl-TermReadKey-2.37-7.el8.x86_64 Complete! [root@iZ2vc5xk901ftf2vfscwc1Z yum.repos.d]# git --version git version 2.31.1
錯誤二:
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Linux-epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist Repository extras is listed more than once in the configuration CentOS Linux 8 - AppStream 6.7 kB/s | 2.3 kB 00:00 Errors during downloading metadata for repository 'appstream': - Status code: 404 for (IP: xxx.xxx.xxx.xxx) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解決方法
錯誤三:
Errors during downloading metadata for repository 'appstream': - Status code: 404 for (IP: xxx.xxx.xxx.xxx) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo
wget wget
sed -i 's/mirrors.cloud.aliyuncs.com/url_tmp/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/url_tmp/mirrors.aliyun.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g' /etc/yum.repos.d/epel-archive-8.repo
yum clean all && yum makecache
rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo
wget wget
sed -i 's/mirrors.cloud.aliyuncs.com/url_tmp/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/url_tmp/mirrors.aliyun.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g' /etc/yum.repos.d/epel-archive-8.repo
sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g' /etc/yum.repos.d/epel-archive-8.repo
yum clean all && yum makecache
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70003733/viewspace-2887915/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux裡面yum安裝軟體報錯處理Linux
- yum 安裝軟體是出現 except OSError, e: ^ SyntaxError: invalid syntaxError
- CentOS release 6.5 yum安裝報錯CentOS
- Yum從DVD安裝軟體
- 安裝grid軟體報錯
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- mybatis竟然報"Invalid value for getInt()"MyBatis
- Centos 軟體安裝常用命令-----yumCentOS
- 安裝Oracle軟體報主機名錯誤Oracle
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- Linux(CentOS)軟體管理(2)- yum 線上安裝LinuxCentOS
- Centos 用yum安裝軟體包命令總結CentOS
- centos的軟體安裝方法rpm和yumCentOS
- yum安裝軟體之後如何儲存rpm安裝包
- Linux精講——軟體安裝yum、rpm、原始碼安裝Linux原始碼
- Centos下yum安裝Nginx報錯 No package nginx available.CentOSNginxPackageAI
- 安裝Oracle資料庫軟體./runInstall 圖形安裝介面報錯Oracle資料庫
- MySQL 5.7 Invalid default value for 'CREATE_TIME'報錯的解決方法MySql
- yum方式安裝Percona XtraBackup報錯解決一例
- yum工具對軟體包安裝,刪除,更新介紹
- 詳解 RHEL7.1 yum源配置與軟體安裝
- YUM安裝除錯以及命令詳解除錯
- yum安裝
- 四、yum獲取安裝的軟體包及依賴包
- streamlit run執行報錯,Invalid value: File does not exist: XXX.py
- 【Linux】Linux軟體安裝管理2 使用安裝光碟配置本地yum倉庫Linux
- mysql安裝 (yum 安裝)MySql
- Centos7使用yum安裝程式軟體時提示未找到安裝包解決方法CentOS
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- Oracle 11G安裝報錯"ORA-00401: the value for parameter compatible"Oracle
- yum 安裝 PHPPHP
- mysql yum 安裝MySql
- yum安裝nginxNginx
- yum安裝lampLAMP
- yum安裝mysqlMySql
- nginx安裝報錯Nginx
- 安裝VUE報錯Vue
- 達夢資料庫啟動報code = -803 [Invalid ini config value]錯誤資料庫