Hi,<br>
I am having a bit of problem with making yum work.<br>
I am behind a proxy server which requires authentication. After reading some posts and man yum.conf, my yum.cnf looks like<br>
(Note: password has been changed)<br>
yum.conf<br>
[main]<br>
cachedir=/var/cache/yum<br>
debuglevel=2<br>
logfile=/var/log/yum.log<br>
pkgpolicy=newest<br>
distroverpkg=redhat-release<br>
tolerant=1<br>
exactarch=1<br>
retries=20<br>
obsoletes=1<br>
gpgcheck=0<br>
# The proxy server - proxy server:port number<br>
proxy=<a href="http://vsnlproxy.iitk.ac.in:3128/">http://vsnlproxy.iitk.ac.in:3128/</a><br>
# The account details for yum connections<br>
proxy_username=spsingh<br>
proxy_password=my_passwd<br>
<br>
and <br>
/etc/wgetrc<br>
# You can set the default proxies for Wget to use for http and ftp.<br>
# They will override the value in the environment.<br>
http_proxy = <a href="http://vsnlproxy.iitk.ac.in:3128">http://vsnlproxy.iitk.ac.in:3128</a><br>
#ftp_proxy = "<a href="http://vsnlproxy.iitk.ac.in:3128">http://vsnlproxy.iitk.ac.in:3128</a>"<br>
proxy-user=spsingh <br>
proxy-passwd=my_passwd<br>
<br>
# If you do not want to use proxy at all, set this to off.<br>
use_proxy = on<br>
<br>
now yum update gives<br>
[root@spsingh sumeet]# yum update<br>
Setting up Update Process<br>
Setting up repositories<br>
<a href="http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml">http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml</a>:
[Errno 4] IOError: HTTP Error 407: Server: squid/2.5.STABLE9-20050429<br>
Mime-Version: 1.0<br>
Date: Sat, 10 Sep 2005 05:58:55 GMT<br>
Content-Type: text/html<br>
Content-Length: 1445<br>
Expires: Sat, 10 Sep 2005 05:58:55 GMT<br>
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0<br>
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"<br>
X-Cache: MISS from vsnlproxy<br>
Proxy-Connection: close<br>
Trying other mirror.<br>
Cannot open/read repomd.xml file for repository: livna<br>
failure: repodata/repomd.xml from livna: [Errno 256] No more mirrors to try.<br>
Error: failure: repodata/repomd.xml from livna: [Errno 256] No more mirrors to try.<br>
<br>
<br>
but wget <a href="http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml">http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml</a> gives<br>
<br>
[root@spsingh sumeet]# wget <a href="http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml">http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml</a><br>
--11:27:18--  <a href="http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml">http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml</a><br>
           => `repomd.xml.1'<br>
Resolving vsnlproxy.iitk.ac.in... <a href="http://172.31.1.227">172.31.1.227</a><br>
Connecting to vsnlproxy.iitk.ac.in[<a href="http://172.31.1.227">172.31.1.227</a>]:3128... connected.<br>
Proxy request sent, awaiting response... 200 OK<br>
Length: 1,140 [text/xml]<br>
<br>
100%[====================================>] 1,140         --.--K/s<br>
<br>
11:27:19 (10.87 MB/s) - `repomd.xml.1' saved [1,140/1,140]<br>
<br>
Now I tried to set http_proxy externally by doing <br>
export http_proxy="<a href="http://spsingh:my_passwd@vsnlproxy.iitk.ac.in:3128/">http://spsingh:my_passwd@vsnlproxy.iitk.ac.in:3128/</a>"<br>
but yum update does not change.<br>
So, i mada a change in both yum.conf and wgetrc and removed the part described above <br>
and wget gives the same  error 407 <br>
<br>
[root@spsingh sumeet]# wget <a href="http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml">http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml</a><br>
--11:31:10--  <a href="http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml">http://rpm.livna.org/fedora/4/i386/RPMS.extras/repodata/repomd.xml</a><br>
           => `repomd.xml.2'<br>
Resolving vsnlproxy.iitk.ac.in... <a href="http://172.31.1.227">172.31.1.227</a><br>
Connecting to vsnlproxy.iitk.ac.in[<a href="http://172.31.1.227">172.31.1.227</a>]:3128... connected.<br>
Proxy request sent, awaiting response... 407 Proxy Authentication Required<br>
11:31:10 ERROR 407: Proxy Authentication Required.<br>
<br>
whereas yum update remains unchanged.<br>
<br>
Please help. I have been on this since last few days, I believe proxy handling by yum is pretty bad!!<br>
<br>
Thanks<br>
Sumeet<br>