Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've a VM running Centos 5.5 and I'm trying to get yum to update via a company proxy.

I can browse the web within the VM using the proxy setting , but I cannot get yum to use the proxy.

I'm getting the following error:

[Errno 14] HTTP Error 302: The HTTP server returned a redirect error
that would lead to an infinite loop.
The last 30x error message was:
Found
Error: Cannot find a valid baseurl for repo: base

I've setup the proxy=http://my-proxy:8080/ and proxy_username= and proxy_password= in my /etc/yum.conf to the same values I'm using in firefox on the VM - which is working.

/etc/yum.repos.d has not been changed.

The proxy presents a web page upon initial 1st use of the proxy, asking for username and password. I think this could be causing the issue, is there any way yum can deal with this ?

share|improve this question
add comment

1 Answer 1

The proxy presents a web page upon initial 1st use of the proxy, asking for username and password. I think this could be causing the issue, is there any way yum can deal with this ?

It's likely this is the problem, and there isn't much yum can do about it. It is possible that if you open the page in a browser, and complete the form ... yum will now work (yum clean expire-cache), but there is no good way for yum to deal with it directly.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.