【Bug解決】CentOS-8中“Failed to download metadata for repo ‘AppStream
問題描述:
在伺服器上安裝nginx依賴包的時候報錯:
錯誤:Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
1.
問題原因:
原因是:CentOS-8於2021年12月31日停止了源的服務
可以命令檢視一下系統是不是8:
cat /etc/redhat-release
1.
解決步驟:
(1)開啟/etc/yum.repos.d資料夾:
cd /etc/yum.repos.d
1.
(2)新建bak資料夾並將檔案複製進其中:
mkdir bak
cp * bak/
1.
2.
可能會出現cp: -r not specified; omitting directory 'bak’提示,無影響,無視就好。
(3)使用以下命令進行內容的替換:
sed -i 's/$releasever/8-stream/' CentOS*repo
1.
問題解決!
輸入以上命令之後,就可以接著執行你的install命令了
參考:
可參考我的解決過程:
-----------------------------------
©著作權歸作者所有:來自51CTO部落格作者_陳同學_的原創作品,請聯絡作者獲取轉載授權,否則將追究法律責任
【Bug解決】CentOS-8中“Failed to download metadata for repo ‘AppStream‘: Cannot download repomd.xml”
https://blog.51cto.com/u_15301254/5215032
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25469263/viewspace-2901430/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 解決:Failed to download metadata for repo ‘base‘AI
- Android studio 解決編譯速度慢 Download maven-metadata.xml速度很慢Android編譯MavenXML
- Vue腳手架建立專案出現 (Failed to download repo vuejs-templates/webpack: Response code 404)VueAIJSWeb
- gradle repo conf - maven-central.storage-download.googleapis.comGradleMavenGoAPI
- Docker 警告 Plugin XXX is not valid: failed to fetch metadataDockerPluginAI
- MySQL DDL Waiting for table metadata lock 解決MySqlAI
- pod update -- Failed to connect to GitHub to update the CocoaPods/Specs specs repoAIGithub
- 解決:Failed to load ApplicationContextAIAPPContext
- 錯誤:為repo 'appstream' 下載後設資料失敗 : Cannot prepare internal mirrorlist: No URLs in mirrorlistAPP
- 解決npm install報錯Tried to download(403)NPM
- vscode中Git: host key verification failed的解決辦法VSCodeGitAI
- Docker 映象拉取失敗(error pulling image configuration:download failed)DockerErrorAI
- 常見BUG解決
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- STM32_Debug 使用ST-Link進行除錯出現Error:Flash Download Failed-"Cortex-M3" 解決方案除錯ErrorAI
- Failed to execute aapt的奇怪解決方法AIAPT
- 解決Cannot download “https://github.com/sass/node-sass/releases/download/binding.nod的問題HTTPGithub
- 【Jenkins】data stream error|Error cloning remote repo ‘origin‘ 錯誤解決JenkinsErrorREM
- 關於Failed to resolve的問題解決AI
- 解決 yum clean all Error rpmdb open failedErrorAI
- Swift 5 Type Metadata 詳解Swift
- 解決 Android studio Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refusedAndroid127.0.0.1AI
- flutter packages get - pub get failed (1)解決方案FlutterPackageAI
- INSTALL_FAILED_NO_MATCHING_ABIS終極解決方案AI
- 解決elasticsearch:Exception BindTransportException[Failed to bind to [9300-9400]]ElasticsearchExceptionAI
- 解決Selenium元素拖拽不生效Bug
- Android Studio 解決編譯報錯 Could not download aapt2-windows.jarAndroid編譯APTWindowsJAR
- Linux之Yum_rpm_repo詳解Linux
- Oracle Net Configuration Assistant failed異常的解決方案OracleAI
- idea系列:解決啟動 failed to load JVM DLL 提示IdeaAIJVM
- IDEA提示failed to load JVM DLL的解決辦法IdeaAIJVM
- 解決nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)NginxAI
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM
- 【Bug解決】Spring Boot Configuration Annotation Processor not configuredSpring Boot
- 線上出現bug解決用例
- 解決Unable to download https://packagecontrol.io/channel_v3.json after 3 attemptsHTTPPackageJSON
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- Unable to save settings: Failed to save settings. Please restart PyCharm解決AIRESTPyCharm