From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 Description of problem: I was advised by RH Support to file this defect report... As root... Running 'up2date --configure' yields: Traceback (most recent call last): File "/usr/sbin/up2date", line 11, in ? import rpm ImportError: No module named rpm Running 'up2date --register' yields: Traceback (most recent call last): File "/usr/sbin/up2date", line 11, in ? import rpm ImportError: No module named rpm Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: See description. Actual Results: See description. Expected Results: No error should be reported Additional info:
What is rpm -q rpm-python returning? Also, what version of Red Hat Linux are you using?
See RH Support ticket # 225471. Since I have no RHN, I need a way to get these fixes without RHN.
stevewi@sw722142:~ $ rpm -q rpm-python rpm-python-4.0.4-7x.18
RH 8.0 Personal
Whats the ouput of: rpm -V rpm-python and: rpm -V up2date also: rpm -q rpm rpm -V rpm Haven't seen this error before, and since it looks pretty serious right off the bat, I'm thinking there is something wrong with your install (possibly rpm or rpm-python didn't get installed somehow...). So going down that path first...
stevewi@sw722142:~ $ rpm -V rpm-python Unsatisfied dependencies for rpm-python-4.0.4-7x.18: rpm = 4.0.4, popt = 1.6.4 stevewi@sw722142:~ $ rpm -V up2date SM?....T c /etc/sysconfig/rhn/up2date ..?..... c /etc/sysconfig/rhn/up2date-keyring.gpg SM5....T /usr/share/rhn/up2date_client/config.pyc stevewi@sw722142:~ $ rpm -q rpm rpm-4.1-1.06 stevewi@sw722142:~ $ rpm -V rpm ....L... /usr/lib/rpm/athlon-linux ....L... /usr/lib/rpm/i386-linux S.5..... /usr/lib/rpm/i386-linux/macros ....L... /usr/lib/rpm/i486-linux ....L... /usr/lib/rpm/i586-linux ....L... /usr/lib/rpm/i686-linux ....L... /usr/lib/rpm/noarch-linux
hmm: stevewi@sw722142:~ $ rpm -q rpm-python rpm-python-4.0.4-7x.18 Thats the wrong version of rpm-python. Thats a version for the 7.x series. I missed that before. Not sure how that version got on there, but you need rpm-python-4.1-1.06.i386.rpm You can get it from: ftp.redhat.com/pub/redhat/linux/8.0/en/i386/RedHat/RPMS/rpm-python-4.1-1.06.i386.rpm Was this system an upgrade from a 7.x box? Something odd happened at some point, and you got an older version of rpm-python installed.
This was an upgrade from RH 7.3. I installed the package you mention and all seems to be right with up2date. Thanks a lot. BTW, I like the Bluecurve stuff a lot...
Fixed, closing.