I'm in the process of installing YUM on CentOS 5.5 and following instructionsin this page:

My system is x86_64.

I'm executing the following command:

rpm -Uvh http://mirror.centos.org/centos-5/5.5/os/x86_64/CentOS/rpm-python-

But then I get the following error:

error: Failed dependencies:
popt = is needed by rpm-python-
rpm = is needed by rpm-python-
rpm-libs = is needed by rpm-python-

Any ideas how I can fix this issue?

Doing 'yum clean' gives methis error

There was a problem importing one of the Python modules required to run yum.
The error leading to this problem was: No module named rpm
Please install a package which provides this module,
or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python,
which is: 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

Update 2
Running rpm -q rpm rpm-libs popt, it gives me this:


4 Answers 4


Can you confirm that those dependencies listed are installed (with those versions)? By providing output of:

rpm -q rpm rpm-libs popt

I believe you're getting the dependency errors because the versions are not matching up (you have older versions of those RPM's installed). Try using that same rpm command to update those three RPM's and try again.


can try yum clean all and then try to install above rpm

  • 1
    That didn't work. See above error message.
    – Steven
    Sep 27, 2010 at 12:13

Why do you have a CentOS-5.5 machine without yum already installed?

If you follow the instructions here:


...then you should be able to get a working yum.

  • ISP delivers CEntOS without YUM. So there's not much I can do about that.
    – Steven
    Sep 27, 2010 at 14:39

The sad truth is that, like me, you purchase a broken server. http://wiki.centos.org/TipsAndTricks/BrokenVserver

You will have to either choose to pay extra to get the provider to "unbreak" it for you, or do like I did and eat the setup fees and just find another VPS hosting provider. Linode comes highly recommended.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.