Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 7633 - Installer Crash while reading packages
Installer Crash while reading packages
Product: Red Hat Linux
Classification: Retired
Component: installer (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Turner
Depends On:
  Show dependency treegraph
Reported: 1999-12-06 13:01 EST by Hugues Latour
Modified: 2015-01-07 18:39 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-02-04 12:53:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hugues Latour 1999-12-06 13:01:35 EST
the trace back has many stack calls.  The error reside in comps.py line 50
unsubscriptable object

name = h[rpm.RPMTAG_NAME]
Comment 1 Hugues Latour 1999-12-10 10:15:59 EST
First of all I have to say that I was trying to install from hardrive.

I try to debug the problem from the traceback.  Being a newie with python
I had to poke around.  I discovered that object 358 in the hdlist was
unsubscriptable the reason is!!!
object 358 was ls-IR (which should not have been there in the first place)

I found that there was an uncommented line in hardrives.py in the readHeaders
        	    if (n[len(n) - 4:] == '.rpm'):
I tried it with no avail!!!

I added this other line thinking it would definately work
   if (n[0-4] === 'ls-IR'): continue
Strike 2!!!

well I rename both ls-IR and ls-IR.gz and move them up one dir

that seem to have cure the sore.... Not pretty but lucky.
Comment 2 Hugues Latour 2000-01-10 09:38:59 EST

The problem reside in the following script:

It try to use all of the file in:

What happens is that the program thinks that all the files in that DIR are RPMS
but ls-dir and ls-dir.gz aren't.  Originally ih the harddrive.py script they
to filter on the .rpm but it is commented out.

1. My quick and dirty solution is to leave only rpm files in \linux\i386
  So I moved ls-IR and ls-IR.gz elsewhere.

2. Optimum solution would be to uncomment the if statement and recompiled the
   I am not a python user so I did not venture here at all.
Comment 3 Jay Turner 2000-02-04 12:53:59 EST
Closing out this bug as the problem is indeed that there are non-RPM files in
the /RPMS directory.  We have made the error handling better for the next
release, so you should not have problems like this again.

Note You need to log in before you can comment on or make changes to this bug.