Fedora Linux Support Community & Resources Center
  #1  
Old 19th February 2010, 06:53 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
linuxsafari
yum and system proxy settings

using Fedora 12, KDE

how do i get yum, KPackageManager to use System Proxy Settings
for there network access ?

---------- Post added at 02:09 AM CST ---------- Previous post was at 01:05 AM CST ----------

by proxy i mean it's a program that uses my phone as the proxy
here is the command adb forward tcp:8080 tcp:8080

now i got it to work for firefox like this
localhost 8080
for all protocols

did the same in KDE proxy settings
localhost 8080
for all protocols

just need to know hot to configure yum and kPackageManage
to use it as well ?

---------- Post added at 11:53 AM CST ---------- Previous post was at 02:09 AM CST ----------

ok i set up Gnome's Proxy Setting using (localhost, port 8080)
i put this in my yum.conf file (poxy=http://localhost:8080)
i set my env $http_proxy to (http:localhost:8080)

when i try (yum install mplayer i get
Loaded plugins: presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

what did i do wrong ??
Reply With Quote
  #2  
Old 19th February 2010, 07:26 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
Yum is a command line utility, so it uses the shell proxy environment values, not the GNOME proxies.

You can create a file in /etc/profile.d/ containing the following, for example:
Code:
export http_proxy=http://host.com:port/
export ftp_proxy=http://host.com:port/
export no_proxy=.domain.com
export HTTP_PROXY=http://host.com:port/
export FTP_PROXY=http://host.com:port/
Set it executable (chmod +x). Logoff and log back in, and any command line tools that use ftp or http protocol will honor the proxies.
Reply With Quote
  #3  
Old 19th February 2010, 07:44 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
heres my executable file aproxy.sh in /etc/profile.d

Code:
#!/bin/sh
export http_proxy=http://localhost:8080/
export ftp_proxy=http://localhost:8080/
export HTTP_PROXY=http://localhost:8080/
export FTP_PROXY=http://localhost:8080/
i stil get this error
yum install mplayer
Loaded plugins: presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

---------- Post added at 12:44 PM CST ---------- Previous post was at 12:40 PM CST ----------

the proxy setting for Firefox i can both surf the web and download stuff.
i don't know why it's not working for yum ?
Reply With Quote
  #4  
Old 19th February 2010, 07:44 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
In the terminal session where you are running yum, run:

echo $http_proxy

Is the response correct? If so, run yum with debug options:

yum -v -d 10 -y install mplayer &> yumdebug.log

Check yumdebug.log to see if the proxy is being used, and what error is occurring.
Reply With Quote
  #5  
Old 19th February 2010, 07:50 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
here is what i get when i run y-v -d 10 -y install mplayer &> yumdebug.log
Code:
Not loading "blacklist" plugin, as it is disabled
Loading "presto" plugin
Loading "refresh-packagekit" plugin
Not loading "whiteout" plugin, as it is disabled
Config time: 0.277
Yum Version: 3.2.25
Setting up Package Sacks
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
Reply With Quote
  #6  
Old 19th February 2010, 07:54 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
Leave off '-v'.
Reply With Quote
  #7  
Old 19th February 2010, 07:56 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
here is what i get when i run echo $http_proxy
http://localhost:8080/

---------- Post added at 12:56 PM CST ---------- Previous post was at 12:55 PM CST ----------

i get
Code:
Not loading "blacklist" plugin, as it is disabled
Loading "presto" plugin
Loading "refresh-packagekit" plugin
Not loading "whiteout" plugin, as it is disabled
Running "config" handler for "presto" plugin
Config time: 0.272
Yum Version: 3.2.25
COMMAND: yum -d 10 -y install mplayer 
Installroot: /
Ext Commands:

   mplayer
Setting up Package Sacks
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
Reply With Quote
  #8  
Old 19th February 2010, 08:02 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
Do you have a proxy statement in /etc/yum.conf/ ? If not, your proxy appears to be blocking yum in some way (e.g. a blacklist).
Reply With Quote
  #9  
Old 19th February 2010, 08:07 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
this is what i have in /etc/yum.conf
poxy=http://localhost:8080/
this is what i have in /etc/profile.d/aproxy.sh
#!/bin/sh
export http_proxy=http://localhost:8080/
export ftp_proxy=http://localhost:8080/
#export no_proxy=.domain.com
export HTTP_PROXY=http://localhost:8080/
export FTP_PROXY=http://localhost:8080/
Reply With Quote
  #10  
Old 19th February 2010, 08:10 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
Typo in /etc/yum.conf (poxy vs proxy)
Reply With Quote
  #11  
Old 19th February 2010, 09:54 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
well i fixed that typo logout and back in again and i'm running yum -d 10 -y install mplayer &> yumdebug.log
just waiting for it to return....

---------- Post added at 01:25 PM CST ---------- Previous post was at 01:17 PM CST ----------

and still waiting ....................

---------- Post added at 02:45 PM CST ---------- Previous post was at 01:25 PM CST ----------

got sum errors from the call

Code:
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mplayer.i686 0:1.0-0.113.20100116svn.fc13 set to be updated
--> Processing Dependency: mplayer-common = 1.0-0.113.20100116svn.fc13 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: faad2-libs >= 1:2.6.1 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libvdpau.so.1 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libliveMedia.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libcaca.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libBasicUsageEnvironment.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libenca.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libfribidi.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: liba52.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: liblirc_client.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libxvidcore.so.4 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libopencore-amrnb.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libschroedinger-1.0.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libfaad.so.2 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libUsageEnvironment.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libdca.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libopencore-amrwb.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libdvdnav.so.4 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Processing Dependency: libgroupsock.so.0 for package: mplayer-1.0-0.113.20100116svn.fc13.i686
--> Running transaction check
---> Package a52dec.i586 0:0.7.4-15.fc11 set to be updated
---> Package enca.i686 0:1.10-1.fc12 set to be updated
---> Package faad2-libs.i586 1:2.7-1.fc11 set to be updated
---> Package fribidi.i686 0:0.19.2-2.fc12 set to be updated
---> Package libcaca.i686 0:0.99-0.9.beta16.fc12 set to be updated
--> Processing Dependency: libglut.so.3 for package: libcaca-0.99-0.9.beta16.fc12.i686
---> Package libdca.i686 0:0.0.5-5.fc12 set to be updated
---> Package libdvdnav.i686 0:4.1.4-0.1.svn1184.fc12 set to be updated
---> Package libvdpau.i686 0:0.3-1.fc13 set to be updated
---> Package lirc-libs.i686 0:0.8.6-4.fc13 set to be updated
---> Package live555.i686 0:0-0.26.2010.01.22.fc13 set to be updated
---> Package mplayer-common.i686 0:1.0-0.113.20100116svn.fc13 set to be updated
---> Package opencore-amr.i686 0:0.1.2-1.fc12 set to be updated
---> Package schroedinger.i686 0:1.0.8-4.fc13 set to be updated
---> Package xvidcore.i686 0:1.2.1-3.fc12 set to be updated
--> Running transaction check
---> Package freeglut.i686 0:2.6.0-1.fc13 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================
 Package                 Arch          Version                                Repository                       Size
====================================================================================================================
Installing:
 mplayer                 i686          1.0-0.113.20100116svn.fc13             rpmfusion-free-rawhide          3.2 M
Installing for dependencies:
 a52dec                  i586          0.7.4-15.fc11                          rpmfusion-free                   50 k
 enca                    i686          1.10-1.fc12                            fedora                           94 k
 faad2-libs              i586          1:2.7-1.fc11                           rpmfusion-free                  169 k
 freeglut                i686          2.6.0-1.fc13                           rawhide                         166 k
 fribidi                 i686          0.19.2-2.fc12                          fedora                           48 k
 libcaca                 i686          0.99-0.9.beta16.fc12                   fedora                          172 k
 libdca                  i686          0.0.5-5.fc12                           rpmfusion-free                  100 k
 libdvdnav               i686          4.1.4-0.1.svn1184.fc12                 fedora                           51 k
 libvdpau                i686          0.3-1.fc13                             rawhide                          21 k
 lirc-libs               i686          0.8.6-4.fc13                           rawhide                          23 k
 live555                 i686          0-0.26.2010.01.22.fc13                 rpmfusion-free-rawhide          266 k
 mplayer-common          i686          1.0-0.113.20100116svn.fc13             rpmfusion-free-rawhide          1.1 M
 opencore-amr            i686          0.1.2-1.fc12                           rpmfusion-free                  166 k
 schroedinger            i686          1.0.8-4.fc13                           rawhide                         208 k
 xvidcore                i686          1.2.1-3.fc12                           rpmfusion-free                  216 k

Transaction Summary
====================================================================================================================
Install      16 Package(s)
Upgrade       0 Package(s)

Total size: 6.1 M
Total download size: 166 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
http://download.fedoraproject.org/pub/fedora/linux/development/i386/os/repodata/bd81a7e4292ee1fe751b422e501ed4c2978bb54ba483645894ce1b8f85214a92-prestodelta.xml.gz: [Errno 14] PYCURL ERROR 52 - ""
Trying other mirror.
http://mirrors.kernel.org/fedora/development/rawhide/i386/os/repodata/bd81a7e4292ee1fe751b422e501ed4c2978bb54ba483645894ce1b8f85214a92-prestodelta.xml.gz: [Errno 14] HTTP Error 404 : http://mirrors.kernel.org/fedora/development/rawhide/i386/os/repodata/bd81a7e4292ee1fe751b422e501ed4c2978bb54ba483645894ce1b8f85214a92-prestodelta.xml.gz 
Trying other mirror.
http://linux.mirrors.es.net/fedora/development/rawhide/i386/os/repodata/bd81a7e4292ee1fe751b422e501ed4c2978bb54ba483645894ce1b8f85214a92-prestodelta.xml.gz: [Errno 14] PYCURL ERROR 52 - ""
Trying other mirror.
http://ftp.us.unixeria.com/fedora/linux/development/rawhide/i386/os/repodata/bd81a7e4292ee1fe751b422e501ed4c2978bb54ba483645894ce1b8f85214a92-prestodelta.xml.gz: [Errno 14] HTTP Error 404 : http://ftp.us.unixeria.com/fedora/linux/development/rawhide/i386/os/repodata/bd81a7e4292ee1fe751b422e501ed4c2978bb54ba483645894ce1b8f85214a92-prestodelta.xml.


---------- Post added at 02:45 PM CST ---------- Previous post was at 02:45 PM CST ----------

there's alot more where those came from

---------- Post added at 02:54 PM CST ---------- Previous post was at 02:45 PM CST ----------

here is whats in my /etc/yum.repos.d/
Code:
adobe-linux-i386.repo               rpmfusion-free-updates.repo.rpmnew
fedora-rawhide.repo                 rpmfusion-free-updates-testing.repo
fedora.repo                         rpmfusion-nonfree-rawhide.repo
fedora-updates.repo                 rpmfusion-nonfree-rawhide.repo.rpmnew
fedora-updates-testing.repo         rpmfusion-nonfree.repo
rpmfusion-free-rawhide.repo         rpmfusion-nonfree-updates.repo
rpmfusion-free-rawhide.repo.rpmnew  rpmfusion-nonfree-updates.repo.rpmnew
rpmfusion-free.repo                 rpmfusion-nonfree-updates-testing.repo
rpmfusion-free-updates.repo
Reply With Quote
  #12  
Old 19th February 2010, 09:59 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
Your connection appears to be working. From the little data you posted, your local mirrors appear busy or out of sync. Wait a while and try again. When you get a chance, you may also want to install:

yum -y install yum-plugin-fastestmirror

It will select the fastest up to date mirrors for you.
Reply With Quote
  #13  
Old 19th February 2010, 10:11 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
this how i have my fedora.repo file
Code:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
is that the way its supposed to look like ??

---------- Post added at 03:11 PM CST ---------- Previous post was at 03:09 PM CST ----------

see i un commented out the baseurl lines in all of my repo files.
was i supposed to do that ??
Reply With Quote
  #14  
Old 19th February 2010, 10:16 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
linuxsafari
No, comment out the baseurl if there's a mirrorlist.
Reply With Quote
  #15  
Old 19th February 2010, 11:07 PM
grimx Offline
Registered User
 
Join Date: Apr 2008
Posts: 87
unknownunknown
so uncomment them

---------- Post added at 04:04 PM CST ---------- Previous post was at 03:39 PM CST ----------

Well it looks like it works, I just downloade Adobe Flash Player for Firefox
from GNOME's Add/Remove Program and installed it.

so i guess it's solved.
THANX macemoneta

---------- Post added at 04:07 PM CST ---------- Previous post was at 04:04 PM CST ----------

by the way i did what you said, sorry for the typo on the comment thing.
thanx again
Reply With Quote
Reply

Tags
proxy, settings, 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
How to configure proxy settings for the whole system in F12 mwanafunzi1 Servers & Networking 4 29th November 2009 08:45 AM
proxy settings ieuuk Using Fedora 4 3rd April 2006 09:59 AM
What is this Proxy settings do first007boy Using Fedora 2 12th August 2005 09:43 PM
Proxy settings mugs Servers & Networking 2 29th March 2005 05:57 PM


Current GMT-time: 02:46 (Saturday, 01-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
Gombong Travel Photos - Great Malvern Travel Photos - Seddouk