Home > HowTo, Linux > Yum hangs at "Setting up Package Sacks"

Yum hangs at "Setting up Package Sacks"

October 28th, 2009 Leave a comment Go to comments

Problem:
There is a bug on Fedora 11 when yum update hangs when trying to connect via proxy when it tries to access https sites
It stucks at:
“Setting up Package Sacks”

Solution:
Proxy should be preset to work there are 2 ways one is to
set it in /etc/yum.conf
proxy=http://my_proxy.com:port/
Or set it as a system variable doing:
# export http_proxy=http://User:Password@ProxyServer:Port

Then we should edit the repository files:
/etc/yum.repos.d/fedora-rawhide.repo
/etc/yum.repos.d/fedora-updates.repo
/etc/yum.repos.d/fedora.repo

Change all https to http

Also we may use:
Avoid error of yum missing dependency:
# yum –skip-broken -y -v update
or just:
# yum -y -v update

In my opinion its shame there is not a more clear error message or timeout explaining the simple error, I am used to debian apt-get and so far Fedora yum is losing.

  1. Ken N
    December 1st, 2010 at 05:00 | #1

    I assumed YUM would have used the system’s proxy settings. -guess not.
    I updated /etc/yum.conf like you said and it worked. Thanks!

  2. May 17th, 2012 at 01:32 | #2

    connect reset

  1. No trackbacks yet.

VAMOVE *

*