How can I fix "cannot find a valid baseurl for repo" errors on CentOS

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..
Post Reply
stark
Posts: 0
Joined: Fri Sep 16, 2016 10:00 am

How can I fix "cannot find a valid baseurl for repo" errors on CentOS

Post by stark »

I finished installing CentOS 7, but when I tried running yum update I got:

[root@stark ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 86&repo=os
error was 14: PYCURL ERROR 6 - "" Error: Cannot find a valid baseurl for repo: bas



Martin
Posts: 36
Joined: Fri Sep 16, 2016 10:34 am

Re: How can I fix "cannot find a valid baseurl for repo" errors on CentOS

Post by Martin »

Hi,

Check and make sure the nameserver entries in your /etc/resolv.conf file is correct.

Make sure the baseurl in the repository is correct. Either replace the baseurl with a valid url or comment the baseurl and run yum update.

=============================
Martin
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree



Post Reply