Red Hat Bugzilla – Bug 268201
Problems updating the rpm package
Last modified: 2007-11-30 17:12:14 EST
Description of problem:
There seems to be a versioning problem when updating a machine from FC6 to F7.
My machine was FC6 with the latest updates as of Aug 29, 2007 applied. Today
(Aug 30, 2007) I upgraded the system to F7 using the DVD. The upgrade went OK,
but after rebooting when I went to run 'pup' I got a "No module named rpm"
error. On digging around Google and others, I found that the error traced back
to 'yum' and the versions of 'rpm*' that were installed. During the upgrade to
F7, yum had been updated to the F7 version. However, the rpm packages were
still at FC6 versions:
# rpm -qa | grep ^rpm
When I tried to run 'rpm -U' to upgrade the rpm packages (plus the popt
dependancy) I got:
package popt-22.214.171.124-1.fc6 (which is newer than popt-1.10.2-46.fc7) is
package rpm-libs-126.96.36.199-1.fc6 (which is newer than
rpm-libs-4.4.2-46.fc7) is already installed
package rpm-188.8.131.52-1.fc6 (which is newer than rpm-4.4.2-46.fc7) is
package rpm-python-184.108.40.206-1.fc6 (which is newer than
rpm-python-4.4.2-46.fc7) is already installed
I believe these errors are why the FC6->F7 upgrade did not apply the rpm updates.
I'm not sure if the FC6 version really was newer than the F7 version on the DVD,
but since this condition prevents pup and yum from running, this could be a
I was able to resolve the problem by using the '--force' flag to rpm to install
the F7 versions of the rpm packages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install FC6
2. Use 'pup' to apply latest FC6 updates
3. Upgrade to F7 using DVD
4. Run 'yum'
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:
Loading "installonlyn" plugin
You need to give some command
Usage: yum [options] < grouplist, localinstall, groupinfo, localupdate,
resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell,
install, whatprovides, groupinstall, update, repolist, groupupdate, info,
search, check-update, list, remove, clean, grouperase >
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
Download the 220.127.116.11 rpm packages from F7 updates and install them to get it
The F7 DVD has been created a long time ago so it can (and does) have older
versions of various things than those on an up-to-date FC6 installation.
You have to do a network installation with updates of the new distribution
enabled to avoid this - can't be helped. Or well, could be helped by forcing a
distro policy never to update older version packages to newer than what's on
released DVD/CD images. Might work for RHEL, not so for Fedora.
I understand that the F7 DVD can have older versions than the latest FC6.
That's to be expected of any installation/update process. My main purpose for
opening the bug was to provide some documentation for the next person who runs
into this. However, the install (or an update) should not leave the system in a
broken state. As it was, I could not run 'pup' or 'yum' because of the version
problems with the rpm* packages. Maybe this should be a bug against the install
process or 'yum' instead of rpm.