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

Hello,

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?
http://www.linuxquestions.org/questi...th-yum-922372/
I have tried various protocals from the following urls.
http://www.bnl.gov/cybersecurity/perl.asp
http://www.putorius.net/2012/06/how-...-settings.html
http://support.apple.com/kb/HT2385?viewlocale=en_US
http://stackoverflow.com/questions/7...ly-use-a-proxy
http://forums.fedoraforum.org/showthread.php?t=742
http://www.gossamer-threads.com/list...av/users/52425
http://www.centos.org/docs/5/html/yu...xy-server.html
I had modified my files as such:

.bash_profile
# .bash_profile

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

# User specific environment and startup programs

#proxy.sh
#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=http://130.199.154.2:3128/
#export FTP_PROXY=http://wpad.bnl.gov/wpad.dat:3128/
#export http_proxy=http://130.199.154.2:3128/
#export ftp_proxy=http://130.199.154.2:3128/
#export no_proxy=.s154.bnl.gov
#export HTTP_PROXY=http://130.199.154.2:3128/
#export FTP_PROXY=http://130.199.154.2:3128/
http_proxy=http://proxy.sec.bnl.local:3128/
ftp_proxy=http://proxy.sec.bnl.local:3128/
no_proxy=.s154.bnl.gov
HTTP_PROXY=http://proxy.sec.bnl.local:3128/
FTP_PROXY=http://proxy.sec.bnl.local:3128/
export http_proxy

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

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

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

yum.conf
[main]
#http_proxy=http://wpad.bnl.gov/wpad.dat:3128
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
#http_proxy=http://wpad.bnl.gov/wpad.dat:3128
#HTTP_PROXY=http://130.199.154.2:3128/
#http_proxy=http://130.199.154.2:3128/
#ftp_proxy=http://130.199.154.2:3128/
#no_proxy=.s154.bnl.gov
#HTTP_PROXY=http://130.199.154.2:3128/
#FTP_PROXY=http://130.199.154.2:3128/
#HTTP_PROXY=http://proxy.sec.bnl.local:3128
#http_proxy=http://proxy.sec.bnl.local:3128
#ftp_proxy=http://proxy.sec.bnl.local:3128
#no_proxy=.s154.bnl.gov
#HTTP_PROXY=http://proxy.sec.bnl.local:3128
#FTP_PROXY=http://proxy.sec.bnl.local:3128
proxy=http://wpad.bnl.gov/wpad.dat:3128
http_proxy=http://wpad.bnl.gov/wpad.dat: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

/etc/profile.d/proxy.sh
#proxy.sh
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=http://130.199.154.2:3128/
#export ftp_proxy=http://130.199.154.2:3128/
#export no_proxy=.s154.bnl.gov
#export HTTP_PROXY=http://130.199.154.2:3128/
#export FTP_PROXY=http://130.199.154.2:3128/

/etc/profile.d/proxy.csh
#proxy.csh
#setenv http_proxy=http://130.199.154.2:3128/
#setenv ftp_proxy=http://130.199.154.2:3128/
#setenv no_proxy=.s154.bnl.gov
#setenv HTTP_PROXY=http://130.199.154.2:3128/
#setenv FTP_PROXY=http://130.199.154.2:3128/
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 ----------

Hello,

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-11.2.202.233-release.i386: failure: flash-plugin-11.2.202.233-release.i386.rpm from adobe-linux-i386: [Errno 256] No more mirrors to try.']

Any help would be great

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

Tags
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 12:45 PM
Proxy Configuration??? pinguim Installation, Upgrades and Live Media 1 22nd June 2009 07:43 PM
Automatic update (YUM) configuration file (Fedora 9+) Kanivorous Using Fedora 2 18th March 2009 09:44 PM


Current GMT-time: 22:02 (Tuesday, 25-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Badger - Ondo - Panalanoy