Tuesday, August 23, 2016

Getting "Couldn't resolve proxy 'www-proxy.us.oracle.com'" when running yum on Oracle Linux VM

Problem:

If you're trying to install syslinux on an Oracle Linux VirtualBox VM, you may get the following error:
[root@soa-training ~]# yum install syslinux 
Loaded plugins: refresh-packagekit, ulninfo
Setting up Install Process
http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - "Couldn't resolve proxy 'www-proxy.us.oracle.com'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: public_ol6_UEK_latest. Please verify its path and try again

Solution:

1. On the Linux VM, navigate to System > Preferences > Network Proxy.

2. Make sure to select "Direct internet connection" and then click on Close.


3. Edit /etc/yum.conf and comment out the following line:
#proxy=http://www-proxy.us.oracle.com:80
4. Try running yum install syslinux again.


Applicable Versions:
  • Oracle Linux 6+ VM


11 comments:

  1. Thank you Ahmed for this solution because I was almost giving up on these Oracle Virtual Machines ! There are so many errors which require developers or end-users to fix them before you can use these VMs.

    ReplyDelete
  2. Worked great! Thanks!

    ReplyDelete
  3. Thanks The Solution worked

    ReplyDelete
  4. Yet, both Hurd and Oracle co-founder Larry Ellison have insisted that the company is now a cloud leader…Mark Hurd

    ReplyDelete
  5. You saved my day...

    ReplyDelete
  6. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. RESIDENTIAL PROXY PROVIDERS

    ReplyDelete
  7. I have recently started a blog, the info you provide on this site has helped me greatly. English spoken classes in Jaipur

    ReplyDelete
  8. Thanks. It works for me.

    ReplyDelete