CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I'm able to ping to external websites, but for some reason, the sudo yum install command is not working due to connectivity issues. did anyone face it?
Ok. The errors are because you're configured to use the repositories for centos version 7.0.1406, and those repositories are no longer available.
You are at centos version 7.6.1810, so you need to update yum to use the repositories for that version.
Unfortunately, I'm not sure how to do that, but now that we've identified the root cause of the problem, hopefully someone with that knowledge will tell us both how to fix that problem.
then try the previous yum commands again. The results of both the yum install and the yum repolist commands indicated an error communicating with the mirrorlist server. The yum repolist command indicates yum was attempting to use IPv6 for communication. You can force IPv4, by adding the following to the [main] section of /etc/yum.conf:
then try the previous yum commands again. The results of both the yum install and the yum repolist commands indicated an error communicating with the mirrorlist server. The yum repolist command indicates yum was attempting to use IPv6 for communication. You can force IPv4, by adding the following to the [main] section of /etc/yum.conf:
Code:
ip_resolve=4
The error is because the mirrorlist url is no longer valid...the version is no longer supported. The link gives a 404 error when attempted manually.
What/where is the version on the OPs client set for yum? It's not the version they're actually running.
The error is because the mirrorlist url is no longer valid...the version is no longer supported. The link gives a 404 error when attempted manually.
What/where is the version on the OPs client set for yum? It's not the version they're actually running.
The mirrorlist URL is http://mirrorlist.centos.org/?releas...os&infra=stock, which is valid, and gives a simple text file. Each of the core CentOS repos has a similar mirrorlist URL, and they are all valid. The links giving the 404 errors are for vault.centos.org.
What would typically happen is that yum would connect to the mirrorlist URL and retrieve the current list and save it (e.g., some place like /var/cache/yum/x86_64/7/base/mirrorlist.txt). Then use that list to find the actual repo. If it fails to retrieve the mirrorlist.txt from mirrorlist.centos.org, it looks for a mirrorlist.txt for the repo in the yum cache, and continues with that.
In this case, the very first errors are that it cannot retrieve the current mirrorlist. The subsequent errors related to the vault.centos.org all look like the type of errors you see when the mirrorlist.txt in the cache is out of date.
So, if you do a 'yum clean all', there won't be anything in the cache to find after the initial failures.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.