【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
- Cannot retrieve repository metadata (repomd.xml) for repositoryXML
- Cannot retrieve repository metadata (repomd.xml) for repository: baseXML
- Cannot retrieve repository metadata (repomd.xml) for repository:InstallMediaXML
- STM32_Debug 使用ST-Link進行除錯出現Error:Flash Download Failed-"Cortex-M3" 解決方案除錯ErrorAI
- Vue腳手架建立專案出現 (Failed to download repo vuejs-templates/webpack: Response code 404)VueAIJSWeb
- DBMS_METADATA報錯解決方法
- pyenv BUILD FAILED解決方法UIAI
- 如何利用Sanitizer解決Android中的Bug?Android
- 系統bug report
- source 1.5 中不支援 lambda 表示式, Deployment failed repository elementAI
- 問題解決:shared_ptr Assertion px != 0 failed 及debug經驗分享AI
- 解決npm install報錯Tried to download(403)NPM
- MySQL DDL Waiting for table metadata lock 解決MySqlAI
- 常見BUG解決
- Execution failed for task ‘:demo:stripReleaseDebugSymbols‘.AISymbol
- Execution failed for task ‘:app:processDebugResources‘.AIAPP
- BUG:Failed to create or upgrade OLRAI
- Android 佈局檔案layout報錯rendering failed with a known bug.解決方法。AndroidAI
- android bug report toolsAndroid
- vscode中Git: host key verification failed的解決辦法VSCodeGitAI
- 解決:Failed to load ApplicationContextAIAPPContext
- Failed to execute aapt的奇怪解決方法AIAPT
- ORA-39213: Metadata processing is not available 解決方案AI
- 求metadata相關工具或解決方案建議
- Docker 警告 Plugin XXX is not valid: failed to fetch metadataDockerPluginAI
- iOS 解決MJPhotoBrowser的bugiOS
- BUG 解決記錄 一
- Execution failed for task ':app:compileDebugJavaWithJavac'AIAPPCompileJava
- [20120305]Build a Metadata Repository.txtUI
- Beautifulreport 使用中報 line380,in report self.output_report () 等錯誤,麻煩大家幫忙解決
- 錯誤:為repo 'appstream' 下載後設資料失敗 : Cannot prepare internal mirrorlist: No URLs in mirrorlistAPP
- Kali Linux 2017中Scapy執行bug解決Linux
- 解決Xmanager-AIX XDMCP Connection failedAI
- Slave failed to initialize relay log info structure from the repositoryAIStruct
- gradle repo conf - maven-central.storage-download.googleapis.comGradleMavenGoAPI
- 解決Cannot download “https://github.com/sass/node-sass/releases/download/binding.nod的問題HTTPGithub