Red Hat Bugzilla – Bug 296141
yum upgrade: There was a problem importing one of the Python modules
Last modified: 2014-01-21 17:59:29 EST
Did the upgrade from FC6 to F7.
Then did a:
# yum upgrade
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.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)]
If you cannot solve this problem yourself, please go to
the yum faq at:
Now I can't use yum!!!!
please run: rpm -qa | grep rpm
did anything odd or bad happen during your upgrade?
If fully up-to-date F6 is updated to F7 without having F7 updates repository
enabled, rpm wont get updated...
[root@localhost rick]# rpm -qa | grep rpm
Normal result for FC6 to F7 upgrade.
Panu, oh, this is b/c the f7 base rpm wasn't newer than fc6 updates. Thanks
Download these files:
rpm -Uvh those_files
then see if yum works again.
# rpm -Uvh rpm*rpm
# yum -y update
Setting up Update Process
fedora 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 3.8 MB 00:05
updates 100% |=========================| 2.3 kB 00:00
primary.sqlite.bz2 100% |=========================| 256 kB 00:10
This is a BUG. Not a NOTABUG. Will we see it in F7 -> F8 ????