LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-01-2002, 12:59 AM   #1
glennp
LQ Newbie
 
Registered: Oct 2002
Location: NY
Distribution: Redhat 8.0
Posts: 20

Rep: Reputation: 0
package manager not working


In 8.0, my redhat package manager scans for packages then just closes. I can't uninstall or install new packages from the CD's. When run in a terminal it gives me:
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/MainWindow.py", line 163, in ?
comps = im.readCompsViaMethod(hdlist, progress.update)
File "/usr/share/redhat-config-packages/method.py", line 488, in readCompsViaMethod
update_method = update_method)
File "/usr/share/redhat-config-packages/comps.py", line 387, in __init__
self.readCompsFile(file, self.packages)
File "/usr/share/redhat-config-packages/comps.py", line 471, in readCompsFile
self.setupStateDicts(packages)
File "/usr/share/redhat-config-packages/comps.py", line 420, in setupStateDicts
for prov in h[rpm.RPMTAG_PROVIDES]:
TypeError: iteration over non-sequence

Don't know how this happened because it was working earlier. I recently tried to install xine and Mplayer. Maybe that had something to do with it.
thanks for any help.
 
Old 11-01-2002, 06:13 PM   #2
Panther505
LQ Newbie
 
Registered: Oct 2002
Location: NC
Distribution: FC2/SuSE9.1/RHEL3WS/RH7.3
Posts: 6

Rep: Reputation: 0
Try this;


su -
cd /var/lib/rpm
rm -f _*


then you can do a-

rpm -rebuilddb

then you should be up and running again...


This is an issue that I have had on occasion with 8.0
 
Old 11-02-2002, 02:35 AM   #3
glennp
LQ Newbie
 
Registered: Oct 2002
Location: NY
Distribution: Redhat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
I tried what you said and it's still giving me the same error. @#$%^
Confused should be my name. Help.
Any other suggestions??
 
Old 11-04-2002, 12:06 AM   #4
glennp
LQ Newbie
 
Registered: Oct 2002
Location: NY
Distribution: Redhat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
I actually ran it again and the error that it came up with was with a warning this time:

(MainWindow.py:1332): Gtk-WARNING **: /usr/lib/gtk-2.0/2.0.0/engines/libredmond95.so: undefined symbol: gtk_rc_style_get_type
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/MainWindow.py", line 163, in ?
comps = im.readCompsViaMethod(hdlist, progress.update)
File "/usr/share/redhat-config-packages/method.py", line 488, in readCompsViaMethod
update_method = update_method)
File "/usr/share/redhat-config-packages/comps.py", line 387, in __init__
self.readCompsFile(file, self.packages)
File "/usr/share/redhat-config-packages/comps.py", line 471, in readCompsFile
self.setupStateDicts(packages)
File "/usr/share/redhat-config-packages/comps.py", line 420, in setupStateDicts
for prov in h[rpm.RPMTAG_PROVIDES]:
TypeError: iteration over non-sequence

Maybe this helps some. thanks to all....
 
Old 12-09-2002, 05:35 PM   #5
millionyearsold
LQ Newbie
 
Registered: Dec 2002
Posts: 1

Rep: Reputation: 0
I had the same problem, tried the same solution with the same result - i.e. I still had the problem. Quite a few people are experiencing this. Anyway I have a fix (or hack) that seems to work for me though I can't vouch for its validity - then again when you take a look at comps.py you will see there are plenty of hacks and fixme code already so it would seem that RH can't vouch for its validity either.

Add this line immeadiately before line 420 in comps.py (listed in your traceback):

if h[rpm.RPMTAG_PROVIDES] is not None:

Make sure that the indents are correct before and after this line i.e the two lines immeadiatly after should be indented to the right of this line so it should look like this:

if h[rpm.RPMTAG_PROVIDES] is not None:
>>>>for prov in h[rpm.RPMTAG_PROVIDES]:
>>>>>>>>self.instProvs[prov] = pkg

- where > is a space. The "if" line should have the same indent as the previous if statement in comps.py.

The problem is probably occuring because there are one or more entries in the rpm make up that redhat-config-packages cannot cope with. This might be because the rpm database is wrong or it might be because of a bug in redhat-config-packages - I am no expert on either. Neither am I an expert in python which is what I assume comps.py is written in. However, the fix/hack checks that the thing at index rpm.RPMTAG_PROVIDES in h has some content before trying to iterate over that content. Just to re-iterate: I don't know if this is a valid solution, use at your own risk and remember to make a copy of comps.py before you edit it.

Last edited by millionyearsold; 12-09-2002 at 05:40 PM.
 
Old 01-03-2003, 09:39 AM   #6
forkb0y
LQ Newbie
 
Registered: Dec 2002
Posts: 2

Rep: Reputation: 0
thanks millionyearsold, that worked for me as you stated. always nice to see a quote stating the following code is 'kind of wierd'. I'm sure corporate sysadmins love to share these tidbits with their keepers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex2e package unavailable in package manager or apt-get cesine Debian 2 07-11-2006 02:31 PM
Is there any other package manager?? rafias Fedora 7 11-17-2005 03:55 AM
Package Manager wgodois Fedora 7 03-16-2004 03:42 PM
Package Manager RH 8.0 Loki_VA Red Hat 4 08-31-2003 01:06 PM
Package Manager in RH 8 u4113072 Linux - Software 4 10-28-2002 07:33 PM


All times are GMT -5. The time now is 03:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration