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
- Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 問題分析AI
- Cannot retrieve repository metadata (repomd.xml) for repositoryXML
- Cannot retrieve repository metadata (repomd.xml) for repository: baseXML
- npm install ERR Please try running this command again as root/AdministratorNPMAI
- Please provide a valid cache pathIDE
- 矽基流動 The parameter is invalid. Please check againAI
- vue Cannot find module @/xxx/xxx.ts or its corresponding typeVue
- 解決service iptables save出錯please try to use systemctl
- 解決:ChatGPT too many requests in 1 hour.Try again laterChatGPTAI
- ‘error: ‘‘this‘‘ cannot be implicitly captured in this context‘ErrorAPTContext
- Uncaught Error: Cannot instantiate interfaceError
- draw.io drawio 打不開 Page could not be loaded. Please try refreshing. Please ensure JavaScript is enabled.JavaScript
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratelyErrorYAMLProject
- Fatal error: Cannot redeclare printerror() (previously declared in …Error
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- Python錯誤:PyCharm 安裝出錯 Internal error,please。。。PythonPyCharmError
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- Django Error: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissionsDjangoErrorORB
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- 執行git命令時出現Please make sure you have the correct access rights and the repository existsGit
- Archery 平臺執行DDL error:Threads_connected exceeds its critical thresholdErrorthread
- 『杭電1848』Fibonacci again and againAI
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)ErrorDeveloper
- mac xcrun: error: active developer path 解決方法MacErrorDeveloper
- webstorm vue3+ts報錯:Cannot find module ‘@/views/xxx.vue‘ or its corresponding type declarationsWebORMVueView
- 解決Error Initialization failed for ‘https://start.spring.io‘Please check URL, nErrorAIHTTPSpring
- HDU 1848 Fibonacci again and again(SG函式)AI函式
- Git push時報錯:fatal: Could not read from remote repository. Please make sure you have the correct access rightsGitREM
- [20200309]rlwrap: error: Cannot execute sqlplus: Too many levels of symbolic linErrorSQLSymbol
- Error:Cannot build artifact xxx:war exploded‘ because it is included into a circular dependencyErrorUI
- virtualbox啟動報“Driver is probably stuck stopping/starting. Try ‘sc.exe query vboxdrv’ to get more information about its state”ORM
- Warning: Cannot modify header information - headers already sent by (output started at file_path:line)HeaderORM
- Android Studio ERROR: Installed Build Tools revision 34.0.0 is corrupted. Remove and install again using the SDK Manager.AndroidErrorUIREMAI
- Decade counter againAI
- 完美解決SqlServer2012啟動報錯(cannot find one or more components.Please reinstall the application。)SQLServerAPP