CentOS8 yum报错:为 repo ‘AppStream‘ 下载元数据失败的原因
1.閿欒鐜拌薄
涓 repo 鈥楢ppStream鈥 涓嬭浇鍏冩暟鎹け璐
閿欒锛氫负 repo 鈥楢ppStream鈥 涓嬭浇鍏冩暟鎹け璐
2.閿欒鍘熷洜
1.缃戠粶杩炴帴涓嶄笂
濡傛灉鍑虹幇璇ラ敊璇紝璇峰厛纭繚鏈嶅姟鍣ㄥ彲浠ユ甯歌繛鎺ヤ簰鑱旂綉銆
鍙互ping涓涓嬬櫨搴︾殑鍩熷悕锛岃兘ping閫氬垯琛ㄧず鏈嶅姟鍣ㄥ彲浠ユ甯歌繛鎺ヤ簰鑱旂綉
2.闃茬伀澧欐湭鍏抽棴
褰撶‘瀹氱綉缁滃彲浠ユ甯歌繛鎺ュ悗锛岃妫鏌ユ湇鍔″櫒闃茬伀澧欐槸鍚﹀叧闂傛湁鏃跺欓槻鐏鏈叧闂篃浼氬鑷磞um闀滃儚杩炴帴涓嶄笂銆
妫鏌ラ槻鐏鐘舵侊細systemctl status firewalld
闃茬伀澧欑殑Active鐘舵佹樉绀轰负inactive鍒欒〃绀洪槻鐏宸茶鍏抽棴
濡傛灉闃茬伀澧欐湭琚叧闂紝鍒欒灏濊瘯鍏抽棴闃茬伀澧
鍏抽棴闃茬伀澧欙細systemctl stop firewalld
闃茬伀澧欏叧闂箣鍚庯紝鍐嶆灏濊瘯yum瀹夎杞欢锛岃嫢闂渚濇棫瀛樺湪锛屽垯鍙兘鏄疌entOS8鍐呯疆鐨剏um闀滃儚鍦板潃鏃犳硶璁块棶
3.CentOS8鐨勫唴缃暅鍍忔簮鏃犳硶璁块棶
濡傛灉浠ヤ笂涓ょ鏂规硶灏濊瘯瀹屼簡锛寉um浠嶇劧鏃犳硶鍐嶆涓嬭浇锛屽垯鍙互灏濊瘯淇敼yum浠撳簱鐩稿叧闀滃儚閰嶇疆
1.淇敼/etc/yum.repos.d/CentOS-Base.repo鏂囦欢
灏唌irrorlist閰嶇疆娉ㄩ噴鎺夛紝骞跺皢baseurl淇敼涓洪樋閲屼簯闀滃儚鍦板潃
闃块噷浜戦暅鍍忓湴鍧锛歨ttps://mirrors.aliyun.com/centos/ r e l e a s e v e r 鈭 s t r e a m / B a s e O S / releasever-stream/BaseOS/ releasever鈭抯tream/BaseOS/basearch/os/
2.淇敼/etc/yum.repos.d/CentOS-AppStream.repo鏂囦欢
灏唌irrorlist閰嶇疆娉ㄩ噴鎺夛紝骞跺皢baseurl淇敼涓洪樋閲屼簯闀滃儚鍦板潃
闃块噷浜戦暅鍍忓湴鍧锛歨ttps://mirrors.aliyun.com/centos/ r e l e a s e v e r 鈭 s t r e a m / A p p S t r e a m / releasever-stream/AppStream/ releasever鈭抯tream/AppStream/basearch/os/
3.淇敼/etc/yum.repos.d/CentOS-Extras.repo鏂囦欢
灏唌irrorlist閰嶇疆娉ㄩ噴鎺夛紝骞跺皢baseurl淇敼涓洪樋閲屼簯闀滃儚鍦板潃
闃块噷浜戦暅鍍忓湴鍧锛歨ttps://mirrors.aliyun.com/centos/ r e l e a s e v e r 鈭 s t r e a m / e x t r a s / releasever-stream/extras/ releasever鈭抯tream/extras/basearch/os/
浠ヤ笂涓変釜鏂囦欢閮戒慨鏀瑰畬鎴愬悗锛岃鍒锋柊涓涓嬪厓鏁版嵁
棣栧厛鎵цyum clean all鍛戒护娓呴櫎鍏冩暟鎹
鐒跺悗鎵цyum makecache鍛戒护閲嶆柊鍔犺浇鍏冩暟鎹
涓 repo 鈥楢ppStream鈥 涓嬭浇鍏冩暟鎹け璐
閿欒锛氫负 repo 鈥楢ppStream鈥 涓嬭浇鍏冩暟鎹け璐
2.閿欒鍘熷洜
1.缃戠粶杩炴帴涓嶄笂
濡傛灉鍑虹幇璇ラ敊璇紝璇峰厛纭繚鏈嶅姟鍣ㄥ彲浠ユ甯歌繛鎺ヤ簰鑱旂綉銆
鍙互ping涓涓嬬櫨搴︾殑鍩熷悕锛岃兘ping閫氬垯琛ㄧず鏈嶅姟鍣ㄥ彲浠ユ甯歌繛鎺ヤ簰鑱旂綉
2.闃茬伀澧欐湭鍏抽棴
褰撶‘瀹氱綉缁滃彲浠ユ甯歌繛鎺ュ悗锛岃妫鏌ユ湇鍔″櫒闃茬伀澧欐槸鍚﹀叧闂傛湁鏃跺欓槻鐏鏈叧闂篃浼氬鑷磞um闀滃儚杩炴帴涓嶄笂銆
妫鏌ラ槻鐏鐘舵侊細systemctl status firewalld
闃茬伀澧欑殑Active鐘舵佹樉绀轰负inactive鍒欒〃绀洪槻鐏宸茶鍏抽棴
濡傛灉闃茬伀澧欐湭琚叧闂紝鍒欒灏濊瘯鍏抽棴闃茬伀澧
鍏抽棴闃茬伀澧欙細systemctl stop firewalld
闃茬伀澧欏叧闂箣鍚庯紝鍐嶆灏濊瘯yum瀹夎杞欢锛岃嫢闂渚濇棫瀛樺湪锛屽垯鍙兘鏄疌entOS8鍐呯疆鐨剏um闀滃儚鍦板潃鏃犳硶璁块棶
3.CentOS8鐨勫唴缃暅鍍忔簮鏃犳硶璁块棶
濡傛灉浠ヤ笂涓ょ鏂规硶灏濊瘯瀹屼簡锛寉um浠嶇劧鏃犳硶鍐嶆涓嬭浇锛屽垯鍙互灏濊瘯淇敼yum浠撳簱鐩稿叧闀滃儚閰嶇疆
1.淇敼/etc/yum.repos.d/CentOS-Base.repo鏂囦欢
灏唌irrorlist閰嶇疆娉ㄩ噴鎺夛紝骞跺皢baseurl淇敼涓洪樋閲屼簯闀滃儚鍦板潃
闃块噷浜戦暅鍍忓湴鍧锛歨ttps://mirrors.aliyun.com/centos/ r e l e a s e v e r 鈭 s t r e a m / B a s e O S / releasever-stream/BaseOS/ releasever鈭抯tream/BaseOS/basearch/os/
2.淇敼/etc/yum.repos.d/CentOS-AppStream.repo鏂囦欢
灏唌irrorlist閰嶇疆娉ㄩ噴鎺夛紝骞跺皢baseurl淇敼涓洪樋閲屼簯闀滃儚鍦板潃
闃块噷浜戦暅鍍忓湴鍧锛歨ttps://mirrors.aliyun.com/centos/ r e l e a s e v e r 鈭 s t r e a m / A p p S t r e a m / releasever-stream/AppStream/ releasever鈭抯tream/AppStream/basearch/os/
3.淇敼/etc/yum.repos.d/CentOS-Extras.repo鏂囦欢
灏唌irrorlist閰嶇疆娉ㄩ噴鎺夛紝骞跺皢baseurl淇敼涓洪樋閲屼簯闀滃儚鍦板潃
闃块噷浜戦暅鍍忓湴鍧锛歨ttps://mirrors.aliyun.com/centos/ r e l e a s e v e r 鈭 s t r e a m / e x t r a s / releasever-stream/extras/ releasever鈭抯tream/extras/basearch/os/
浠ヤ笂涓変釜鏂囦欢閮戒慨鏀瑰畬鎴愬悗锛岃鍒锋柊涓涓嬪厓鏁版嵁
棣栧厛鎵цyum clean all鍛戒护娓呴櫎鍏冩暟鎹
鐒跺悗鎵цyum makecache鍛戒护閲嶆柊鍔犺浇鍏冩暟鎹