Linux serverNETWORK ADMINISTRATIONS

Could Not Resolve Host Mirrorlist.centos.org | Invalid baseurl for repo | etc/profile & resolv.conf

#Error,#Profile,#Resolv Hello friend, Welcome back to my channel. This is troubleshooting tutorial. I have received few queries and understood that there are challenges in setting up docker when you are doing the installation behind a proxy a server. Basically for those who are connected from an enterprise environment, they will have to go through proxy server for installation of docker. Usually you will get error could not retrieve mirror list or invalid base url for repo due to unable to resolve host or proxy. This is basically because you need to set the proxy server and user authentication in the machine so that the download can go through the proxy server. Follow the steps as you see on the screen to fix this issue.

vi /etc/profile

export HTTP_PROXY=http://username:password@proxyservername:8080
export HTTPS_PROXY=http://username:password@proxyservername:8080

export http_proxy=http://username:password@proxyservername:8080

export https_proxy=http://username:password@proxyservername:8080

vi /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

=================================================
Follow me @:
https://www.instagram.com/thetips4you
https://www.youtube.com/channel/UCoOq…
https://www.facebook.com/thetipsforyou
http://www.thetips4you.com
======================================================

Note: Each word by Word or sentences used in this video is self written and converted to Audio to give explanation on the steps in each tutorial . These are not automated or third party content or scrapped from any website.

Music credit: “Royalty Free Music from Bensound”

source

centos 7

12 thoughts on “Could Not Resolve Host Mirrorlist.centos.org | Invalid baseurl for repo | etc/profile & resolv.conf

  • i am changing static Ip its not working repeat came to same issue……?

  • Hi, to me doesn´t work… the cmd says CURL 56 error.

    Please help.

  • Same as u showed I did but in /etc/resolv.conf for me name server is showing different and for u it's showing different. Still I tried but install is not happening 😔

  • I am connecting directly through internet broadband connection not proxy. I have done the exact what you have done but still getting the same error. plz provide some resolution. I have been stuck in this.

  • Please show us more troubleshooting problems which administration faced

  • I get these error "recv failed connection reset by peer " while trying to install " yum install docker" in centos7

Comments are closed.