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:

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

Anonymous said...

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

Anonymous said...

You saved my day...

Anonymous said...

Ole!

Ziad Fawzi said...

Thanks a lot.

Anna Schafer said...

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

English Spoken Classes said...

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

Anonymous said...

Thanks. It works for me.

Anonymous said...

Thanks!!!!