Guest User

Untitled

a guest
Dec 27th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. [root@centos6test ~]# yum update
  2. Loaded plugins: fastestmirror, refresh-packagekit
  3. Determining fastest mirrors
  4. Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os
  5. error was 14: PYCURL ERROR 6 - "" Error: Cannot find a valid baseurl for repo: base
  6.  
  7. Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: Cannot find a valid baseurl for repo: base
  8.  
  9. vim /etc/sysconfig/network-scripts/ifcfg-eth0
  10.  
  11. ONBOOT=no
  12. NM_CONTROLLED=no
  13. BOOTPROTO=dhcp
  14. DNS1=8.8.8.8
  15. DNS2=4.2.2.2
  16.  
  17. ifdown eth0
  18. ifup eth0
  19.  
  20. proxy=http://xxx.xxx.xx.xx:8080
  21.  
  22. proxy_username=username
  23. proxy_password=password
  24.  
  25. [base]
  26. name=CentOS-$releasever - Base
  27. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  28. baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  29. gpgcheck=1
  30. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  31.  
  32. nameserver 8.8.8.8
  33. nameserver 8.8.4.4
  34.  
  35. # yum update
Add Comment
Please, Sign In to add comment