Re: Yum and Up2date broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brian McDonald wrote:
I just updated from Fedora core 1 to Fedora Core 2 using Yum.

Yum is now broken:

error =

[root@localhost root]# yum
Traceback (most recent call last):
 File "/usr/bin/yum", line 6, in ?
   import yummain
 File "/usr/share/yum-cli/yummain.py", line 23, in ?
   import yum
 File "/usr/lib/python2.3/site-packages/yum/__init__.py", line 20, in ?
   import rpm
ImportError: No module named rpm

Up2date is broken =

[root@localhost root]# up2date
Traceback (most recent call last):
 File "/usr/sbin/up2date", line 11, in ?
   import rpm
ImportError: No module named rpm

What do I have to do to fix this?


Do you have the rpm-python package installed?

Paul.

Here is the results from the rpm -qi

Name        : rpm-python                   Relocations: (not relocateable)
Version     : 4.2.1                             Vendor: Red Hat, Inc.
Release     : 0.30                          Build Date: Thu 17 Jul 2003
10:47:16 PM EDT
Install Date: Thu 04 Mar 2004 12:48:45 PM EST      Build Host:
daffy.perf.redhat.com
Group       : Development/Libraries         Source RPM:
rpm-4.2.1-0.30.src.rpm
Size        : 211145                           License: GPL
Signature   : DSA/SHA1, Tue 28 Oct 2003 06:45:04 PM EST, Key ID
b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary     : Python bindings for apps which will manipulate RPM packages.

That's the FC1 version of rpm-python. Try updating all the packages listed by:

rpm -qa | grep ^rpm

to the ones in the FC2 repository you're using.

BTW, hints of upgrading from FC1 to FC2 using yum can be found at http://linux.duke.edu/~skvidal/misc/fc1-fc2-yum-hints.txt

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux