Error: Cannot find a valid baseurl for repo: base

 

[root@imyserver etc]# yum install htppd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 7 – “Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable”
Error: Cannot find a valid baseurl for repo: base
[root@in01apvrc etc]# sudo yum install httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 7 – “Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable”
Error: Cannot find a valid baseurl for repo: base

Yum install - base url -Error
So you need to set the http proxy using the export http_proxy command.
For e.g.
———————————————-
export http_proxy=http://username:password@proxy.co.in:8080

 

 

 

Post Comment

CommentLuv badge