[Yum] Still hopeless on getting proxy to work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I've been fiddling a lot trying to get the proxy to work. I found out that if I create a local repository using wget and remove the proxy information from yum.conf, the "download" still fails because it is trying to use the http_proxy environment variable. With this unset, it is able to update from a local repository.

So, I reasoned, maybe there's something that python or yum doesn't like about the standard http://username:password@host:port/ format, so I wrote a wrapper that unsets the environment variables to see if that makes things work. For the record, here is my wrapper (yumwrap):

#!/bin/sh
http_proxy=
HTTP_PROXY=
ftp_proxy=
FTP_PROXY=
yum $1 $2

However, this doesn't help:

$ sudo yumwrap update
Setting up Update Process
Setting up repositories
Cannot open/read repomd.xml file for repository: extras
failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.

But wget (using the environment variables) is perfectly able to retrieve this file:

$ sudo wget http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/repodata/repomd.xml
--16:07:05--  http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/repodata/repomd.xml
           => `repomd.xml'
Connecting to 172.16.110.12:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1,140 (1.1K) [text/xml]

100%[====================================>] 1,140         --.--K/s

16:07:17 (49.42 MB/s) - `repomd.xml' saved [1140/1140]

Here's my yum.conf:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
proxy=http://172.16.110.12:80/
proxy_username=DOMAIN\USERNAME
proxy_password=password
retries=1
timeout=10

And yum.repos.d/fedora-extras.repo :

[extras]
name=Fedora Extras $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

Any ideas on how to get this all to work?

Thanks in advance.

Mark

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux