Fedora Linux Support Community & Resources Center
Old 10th July 2012, 02:12 AM
todd987345 Offline
Registered User
Join Date: Jun 2010
Posts: 12
using yum through automatic proxy configuration url


I am using the internet through a goverment proxy. I am trying to update using "yum". This does not seem to work. I do not have yumex installed, and since I can't use yum, I can't install yumex.

Is there a way to get yum (and Klamav) through an automaticly updating proxy configuration url?

I am using fedora 16.
My version of yum is yum-3.4.3-7.fc16.noarch.
This url, directly below, from 2010 states that yum is not able to do this. Is this still true?
I have tried various protocals from the following urls.
I had modified my files as such:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc

# User specific environment and startup programs

#export http_proxy=http://wpad.bnl.gov/wpad.dat:3128/
#export ftp_proxy=http://wpad.bnl.gov/wpad.dat:3128/
#export no_proxy=.wpad.bnl.gov/wpad.dat:3128/
#export HTTP_PROXY=
#export FTP_PROXY=http://wpad.bnl.gov/wpad.dat:3128/
#export http_proxy=
#export ftp_proxy=
#export no_proxy=.s154.bnl.gov
#export HTTP_PROXY=
#export FTP_PROXY=
export http_proxy


export PATH


export http_proxy=http://proxy.sec.bnl.local:3128
export ftp_proxy=http://proxy.sec.bnl.local:3128
export no_proxy=.s154.bnl.gov
export HTTP_PROXY=http://proxy.sec.bnl.local:3128
export FTP_PROXY=http://proxy.sec.bnl.local:3128


# The proxy server - proxy server: port number

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

export http_proxy=http://proxy.sec.bnl.local:3128
export ftp_proxy=http://proxy.sec.bnl.local:3128
export no_proxy=.s154.bnl.gov
export HTTP_PROXY=http://proxy.sec.bnl.local:3128
export FTP_PROXY=http://proxy.sec.bnl.local:3128

#export http_proxy=
#export ftp_proxy=
#export no_proxy=.s154.bnl.gov
#export HTTP_PROXY=
#export FTP_PROXY=

#setenv http_proxy=
#setenv ftp_proxy=
#setenv no_proxy=.s154.bnl.gov
#setenv HTTP_PROXY=
#setenv FTP_PROXY=
setenv HTTP_PROXY=http://proxy.sec.bnl.local:3128
setenv http_proxy=http://proxy.sec.bnl.local:3128
setenv ftp_proxy=http://proxy.sec.bnl.local:3128
setenv no_proxy=.s154.bnl.gov
setenv HTTP_PROXY=http://proxy.sec.bnl.local:3128
setenv FTP_PROXY=http://proxy.sec.bnl.local:3128

I had tried various urls, and schemes of hashing/unhashing variables in files. I check the varialbes by "echo $<varialbe_name>" in the command prombt.

The errors I recieve are below:

$ sudo yum check-update
Loaded plugins: dellsysid, langpacks, presto, refresh-packagekit
http://dl.google.com/linux/talkplugi...ta/repomd.xml: [Errno 14] curl#5 - "Couldn't resolve proxy"
Trying other mirror.
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorl...a-16&arch=i386 error was
14: curl#5 - "Couldn't resolve proxy"
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorl...d-16&arch=i386 error was
14: curl#5 - "Couldn't resolve proxy"
http://download.skype.com/linux/repo...ta/repomd.xml: [Errno 14] curl#5 - "Couldn't resolve proxy"
Trying other mirror.
http://download.virtualbox.org/virtu...ta/repomd.xml: [Errno 14] curl#5 - "Couldn't resolve proxy"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

If I am unable to do this with the current version of yum (or Klamav), could you still point out how to do this with the newest vesrion of the programs?

---------- Post added at 08:12 PM ---------- Previous post was at 12:53 PM ----------


Sorry if I am replying to my message, but I have tried to solve the problem with no avail.

The recent progress includes me trying to install yumex via my browser because I read that you could easily configure yumex with a proxy. That went fine, but when I try to select repositories, yumex closes with errors.

When I run yumex -n and deselect all of the repositories except the Adobe repo. I still have some functionality to yumex. Yumex is able to tell me what packages I need to download to update flash. However, when I try to update flash, I get the following errors:

20:12:20 : WARNING: Failure getting http://linuxdownload.adobe.com/linux...ease.i386.rpm:
20:12:20 : WARNING: Trying other mirror.
20:12:20 : ERROR: Error in yum Transaction : [u'Errors were encountered while downloading packages.', 'flash-plugin- failure: flash-plugin- from adobe-linux-i386: [Errno 256] No more mirrors to try.']

Any help would be great

Last edited by todd987345; 28th July 2012 at 04:30 AM.
Reply With Quote

automatic, configuration, proxy, url, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy configuration in KDE teox78 Using Fedora 0 26th January 2010 09:24 AM
Problems with automatic update and proxy crisvir Servers & Networking 0 15th September 2009 11:45 AM
Proxy Configuration??? pinguim Installation, Upgrades and Live Media 1 22nd June 2009 06:43 PM
Automatic update (YUM) configuration file (Fedora 9+) Kanivorous Using Fedora 2 18th March 2009 08:44 PM

Current GMT-time: 09:24 (Saturday, 19-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat