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


4 comments:

Anonymous said...

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.

Anonymous said...

Worked great! Thanks!

Anonymous said...

Thanks The Solution worked

Menday Richardson said...

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