Loaded plug-ins: fastestmirror
Loading mirror speeds from cached hostfile
One of the configured repositories failed (none),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
Follow the prompts to correct the source.
cd /etc/yum.repos.d
vi epel.repo
The revised contents are as follows:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://mirrors.aliyun.com/epel/7/$basearch
#metalink=https://mirrors.aliyun.com/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=http://mirrors.aliyun.com/epel/7/$basearch/debug
#metalink=https://mirrors.aliyun.com/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=http://mirrors.aliyun.com/epel/7/SRPMS
#metalink=https://mirrors.aliyun.com/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
Execute the following command:
yum clean all
yum makecache
yum update
yum install -y git
Yum installation and use returned to normal.
Read More:
- CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:
- Euopenler 21.09 sudo Yum Update Error: Errors during downloading metadata for repository ‘EPOL’
- Yum source error: [errno 14] HTTP Error 404 – not found
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- Linux yum Error: All mirror URLs are not using ftp
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- [Solved] yum Install rpmdb Error: error: rpmdb: BDB0113 failed: BDB1507 Thread died in Berkeley DB library
- [Solved] yum Install gcc Error: Error: Package: glibc-headers-2.17-317.el7.x86_64
- How to Solve Yum Error: db5 error(30973)
- [Solved] Invalid signature error for ROS repository while trying to do sudo apt-get update
- Ansible Use yum module to install rpm Error: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate v
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- [Solve] Yinhe Qilin V10 System Error: Failed to download metadata for repo ‘ks10-adv-os‘
- How to Fix No default.conf file in conf.d after Installing Nginx
- [Solved] Ubuntu Update source error: Certificate verification failed: The certificate is NOT trusted.
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- [Solved] fatal: not a git repository (or any of the parent directories): .git
- [Solved] yum error: rpmdb: BDB0113 Thread/process
- [Solved] Linux wget Error: ERROR: cannot verify Issued certificate has expire