Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
yum安裝Linux軟體
先查詢是否已安裝epel-release ,沒有則執行yum install epel-release–y安裝;
檢查epel源
安裝好epel源後,用yum 命令來檢查epel是否新增到源列表:yum repolist
最後安裝你要的軟體
yum install -y collectd;
centos下安裝完EPEL源然後更新一下yum更新快取如果發現這樣的錯誤:
[root@cloud yum.repos.d]# yum -y install mod_SSL
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
方法一、
這就表明你需要更新CA證照了,那麼只需要更新CA證照就可以,不過在此同時需要臨時禁用epel源並更新就可以了,命令如下:
yum --disablerepo=epel -y update ca-certificates
方法二、處理很簡單,修改檔案“/etc/yum.repos.d/epel.repo”, 將baseurl的註釋取消, mirrorlist註釋掉即可。(此情況使用於Centos通過rpm -Uvh裝了個epel的擴充套件後,執行yum就開始報錯)
編輯/etc/yum.repos.d/epel.repo,把基礎的恢復,映象的地址註釋掉
#baseurlmirrorlist
改成
baseurl#mirrorlist
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
修改為
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
再清理源,重新安裝
yum clean all
yum install -y 需要的包
方法三、如果以上方法還是不行,嘗試修改DNS,到/etc/resolv.conf下新增一下:
nameserver 8.8.8.8
search localdomain
然後重啟network服務:service network restart
【問題總結】
一般這類問題都出線在低版本的作業系統例如centos6.0,所以需要更新核心或者各個軟體即可解決根本性問題。
相關文章
- CentOS7 yum 報錯: Cannot retrieve metalink for repository: epel. Please verify its path and try againCentOSAI
- yum:Error: Cannot retrieve metalink for repository: epel. Please verifyError
- Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 問題分析AI
- Please set RAT_ELRACKTYPE and try againAI
- 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
- npm install ERR Please try running this command again as root/AdministratorNPMAI
- owa Your request can't be completed right now. Please try again later.AI
- Please provide a valid cache pathIDE
- 解決service iptables save出錯please try to use systemctl
- 解決:ChatGPT too many requests in 1 hour.Try again laterChatGPTAI
- draw.io drawio 打不開 Page could not be loaded. Please try refreshing. Please ensure JavaScript is enabled.JavaScript
- Uncaught Error: Cannot instantiate interfaceError
- ‘error: ‘‘this‘‘ cannot be implicitly captured in this context‘ErrorAPTContext
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- Fatal error: Cannot redeclare printerror() (previously declared in …Error
- 登陸peoplesoft報:Site name is not valid. Check your url syntax and try again.AI
- ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratelyErrorYAMLProject
- CDH5之Unexpected error.Unable to verify database connectionH5ErrorDatabase
- Maven: 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiatedMavenApache
- error: ‘PATH_MAX’ undeclared (first use in this function)ErrorFunction
- Python錯誤:PyCharm 安裝出錯 Internal error,please。。。PythonPyCharmError
- xtrabackup: Error: cannot open /../../base/xtrabackup_checkpointsError
- vue Cannot find module @/xxx/xxx.ts or its corresponding typeVue
- Unlink of file '.git/objects/pack/pack-***.pack' failed. Should I try again? (y/n) (轉)GitObjectAI
- mac xcrun: error: active developer path 解決方法MacErrorDeveloper
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- 記處理線上記錄垃圾日誌 The view 'Error' or its master was not foundViewErrorAST
- 執行git命令時出現Please make sure you have the correct access rights and the repository existsGit
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- "Error while unpacking program, code LP5. Please report to author."ErrorWhile
- O/S-Error: (OS 33) The process cannot access the fileError
- Java問題解決:The project cannot be built until build path errors are resolvedJavaProjectUIError
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- configure: error: C++ compiler cannot create executablesErrorC++Compile
- PHP報錯:?configure: error: Cannot find libmysqlclientPHPErrorIBMMySqlclient
- FILE ON OCFS CANNOT BE DELETED LINUX ERROR: 16: DEVICE OR RESOURCE BUSYdeleteLinuxErrordev