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