Fedora Linux Support Community & Resources Center
  #1  
Old 25th June 2009, 08:56 PM
timliim Offline
Registered User
 
Join Date: Oct 2008
Location: Ol' US of A
Posts: 74
F11 yum proxy changes from http_proxy to https_proxy

At work I used to use "export http_proxy=http://xxx:8080" in F10 to
instruct yum to use said http proxy. This no longer works with F11;
yum would hang like this in F11, with http_proxy set:
[root@taiwan timliim]# yum update
Loaded plugins: refresh-packagekit
The reason being that in F10 yum uses http to get mirror list, but in
F11 it uses https. In F11 one can use
export https_proxy=http://xxx:8080
or edit /etc/yum.conf to add
proxy=http://xxx:8080
This knowledge is in other postings too, but their subject lines are
less than obvious to me, so I am reposting a summarized version here.

Cheers,
Tim Taiwanese Liim
Reply With Quote
  #2  
Old 25th June 2009, 09:19 PM
timliim Offline
Registered User
 
Join Date: Oct 2008
Location: Ol' US of A
Posts: 74
Then I have my own follow-up question:
- yum sends this to proxy server:
GET https://mirrors.fedoraproject.org/me...a-11&arch=i386 HTTP/1.1
and the proxy says
Your request could not be processed.
- in contrast, firefox sends this to proxy:
CONNECT mirrors.fedoraproject.org:443 HTTP/1.1
User-Agent: Mozilla/5.0 [...]
Proxy-Connection: keep-alive
Host: mirrors.fedoraproject.org
to which proxy replies
HTTP/1.1 200 Connection established
It seems that yum is using wrong protocol talking to https proxy.
Is this correct observation?

Thanks,
Tim Taiwanese Liim
Reply With Quote
  #3  
Old 25th June 2009, 09:52 PM
timliim Offline
Registered User
 
Join Date: Oct 2008
Location: Ol' US of A
Posts: 74
Related bug:
https://bugzilla.redhat.com/show_bug.cgi?id=484491
Workaround:
change all https in repo file to http:
sed -i -e 's/https:/http:/' /etc/yum.repos.d/*.repo
Reply With Quote
  #4  
Old 12th July 2009, 06:12 AM
wvn Offline
Registered User
 
Join Date: Jul 2008
Location: Mir space station
Age: 36
Posts: 738
Quote:
Originally Posted by timliim View Post
Related bug:
https://bugzilla.redhat.com/show_bug.cgi?id=484491
Workaround:
change all https in repo file to http:
sed -i -e 's/https:/http:/' /etc/yum.repos.d/*.repo
Thanks a lot for this tip. Was busting my head trying to figure it out.
Reply With Quote
  #5  
Old 14th July 2009, 03:21 AM
timliim Offline
Registered User
 
Join Date: Oct 2008
Location: Ol' US of A
Posts: 74
Thanks for positive feedback! Glad it works for you.
Tim Taiwanese Liim
Reply With Quote
Reply

Tags
proxy, 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
http_proxy in /etc/profile cannot be export pikayo Using Fedora 1 15th February 2007 01:23 PM
http_proxy contains @ bmvbab Using Fedora 0 19th January 2007 07:46 PM
http_proxy problems hmathew Using Fedora 1 20th June 2005 10:00 PM


Current GMT-time: 17:35 (Tuesday, 02-09-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