[CENTOS] What to do if you get a Cannot retrieve metalink for repository error in yum

error contents

What to do if the yum command stops working due to a metalink error

When I type yum repolist all etc., I get the following error.

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

Workaround

Because I can't connect to the epel repository with metalink Uncomment the baseurl in the following file Comment out the metalink settings

bash:/etc/yum.repos.d/epel.repo


[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

[Epel-debuginfo] and [epel-source] have similar settings, so modify them in the same way.

I got this error after initializing the server, so the certificate related settings affected It's possible, but now yum works.

Recommended Posts

What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get a "No versions found" error in pipenv
What to do if you get a minus zero in Python
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get "coverage unknown" in Coveralls
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if you get the error Input contains NaN, infinity or a value too large for dtype ('float64'). In machine learning
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get a TypeError with numpy min, max
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if a UnicodeDecodeError occurs in pip
What to do if you get an error when installing python with pyenv
What to do if you get a Permission denied (public key) error when trying to pull on Github
What to do if you get "Python not configured." Using PyDev in Eclipse
[Python] What to check when you get a Unicode Decode Error in Django
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
What to do if a version error occurs in the selenium Chrome driver
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What to do if you get an "unknown service" error from your gRPC server
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
What to do if pip gives a DistributionError in Homebrew
What to do if you can't log in as root
What to do if yum breaks
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
[* CentOS 6.10] What to do if you cannot add the IUS Community Project repository on CentOS 6.5 (VirtualBox)
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you can't use the trash in Lubuntu 18.04.
What to do if pip --user returns an error in a virtual environment created with pyenv
What to do if you get an error like dyld: mach-o, but built for simulator or dyld: attempt to run simulator program outside simulator (DYLD_ROOT_PATH not set) in golang
What to do if there is a decimal in python json .dumps
What to do if you can't find PDO in Laravel or CakePHP
If you get a Programming Error: (1146, "Table'<table name>' doesn't exist") in Django
What to do if you can't use scikit grid search in Python
What to do if you get `locale.Error: unsupported locale setting` when getting the day of the week from a date in Python
What to do if you get stuck during Anaconda installation on Linux
What to do if No Python documentation found for ... appears in pydoc
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
What happens if you do "import A, B as C" in Python?
If you get a no attribute error in boto3, check the version
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if a symbolic link error occurs in import cv while trying to install OpenCV in Python
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
What to do if mod_fcgid cannot resolve UnicodeEncodeError