Friday, August 07, 2009

Yum hangs on Fedora 11 behind proxy

Yesterday I installed Fedora 11 on a new machine from a live CD. As usual I tried to update the system just after installation. This machine was behind a proxy server and http_proxy variable was configured to let yum get through proxy server. Yum hanged just after emitting two line on the console-

    [root@localhost ~]# yum update
    Loading "refresh-packagekit" plugin
    Setting up Package Sacks


Even after 1 hour it did not came out and I can't kill it using ctrl+c, killing the process from another terminal was the only option. Running yum in verbose mode also does not print any useful information-

    [root@localhost ~]# yum -v update
    Not loading "blacklist" plugin, as it is disabled
    Loading "refresh-packagekit" plugin
    Not loading "whiteout" plugin, as it is disabled
    Config time: 0.082
    Yum Version: 3.2.22
    Setting up Package Sacks


The wget http://www.yahoo.com/ was successfully downloading the web page that means internet connectivity and proxy was not an issue. Then I looked inside /etc/yum.repos.d/fedora.repo, to get some clues. All URLs mentioned in that file were using https, so I tried to do wget over https-

    [root@localhost ~]# wget https://www.yahoo.com/
    --2009-08-07 16:35:11--  https://www.yahoo.com/
    Resolving www.yahoo.com... 69.147.76.15
    Connecting to www.yahoo.com|69.147.76.15|:443...


and that too hanged after emitting above text. Now I see why yum is not able to update. Changing URLs from https to http in /etc/yum.repos.d/fedora.repo took yum slightly ahead from where it was hanging earlier-

    [root@localhost ~]# yum -v update
    Not loading "blacklist" plugin, as it is disabled
    Loading "refresh-packagekit" plugin
    Not loading "whiteout" plugin, as it is disabled
    Config time: 0.082
    Yum Version: 3.2.22
    Setting up Package Sacks

    fedora/metalink                                          |  10 kB     00:00
    fedora                                                   | 3.8 kB     00:00
    fedora/primary_db                                        | 8.4 MB     00:09


Now yum hanged after emitting above-mentioned text. Changing URLS from https to http in /etc/yum.repos.d/fedora-updates.repo made update successful.

This https issue seems to be specific to Fedora 11, as I never faced any difficulties on updating previous Fedora releases (6, 7, 8 and 9).

7 Comments:

Anonymous said...

I am also facing the same problem. Did you get a solution?

Anonymous said...

Thanx a lot ... i got it !!! ...

Anonymous said...

wow.. that's a real good finding. I could not have even thought that this can be an issue.... Thanks for the post

Anonymous said...

Many thanks for your solution!

Anonymous said...

Not just for update, change every https to http in repo files.

Optional: you can also set up proxy in /etc/yum.conf

Anonymous said...

thanx ... it worked for me ....
changed all https to http in the repo files in /etc/yum.repos.d/

Anonymous said...

However, there are nonetheless some primary strategies you can to|you probably can} keep in mind to make your roulette expertise even higher whereas increasing your chances of successful. Turn your actual cash roulette play into points with a loyalty program or a 메리트카지노 VIP casino program. The more points you earn, the more benefits and comps you'll be able to|you probably can} earn.