Bug 188978

Summary: Pirut doen't know what is or isn't installed any more
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: high Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-15 00:44:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Laurie 2006-04-14 06:07:26 UTC
Description of problem:
pirut has lost the plot and is confused as to what is and isn't installed.
For example, according to pirut browse mode, neither KDE or GNOME is installed,
whereas both in fact are.

Version-Release number of selected component (if applicable):
pirut-1.0.1-1

How reproducible:
Always.

Steps to Reproduce:
1. Launch "Add/Remove Software"
2.
3.
  
Actual results:
In Browse mode, almost no checkboxes are checked in any group, even though
virtually everything has been installed.

Expected results:
Should show what is installed like it used to do.

Additional info:
If I launch pirut from a command line this is what I get:

rpmdb: read: 0xb5b8672c, 4096: Input/output error
error: db4 error(5) from dbcursor->c_get: Input/output error

Is there any way to get pirut to re-learn what is on the system?

Comment 1 Paul Nasrat 2006-04-14 14:25:50 UTC
can you rm -f /var/lib/rpm/__db* and retry.  If it still fails, please tar up
/var/lib/rpm and put on a website so I can look at.  Can you also check dmesg
for disk failure messages EIO can indicate h/w failure.

Comment 2 Ian Laurie 2006-04-15 00:44:54 UTC
1. rm -f /var/lib/rpm/__db* makes no difference.
2. No problems in dmesg..... BUT....... I get errors taring the directory, and
also when trying to copy the directory.

in /var/log/messages:

Apr 15 10:33:03 zaurak kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Apr 15 10:33:03 zaurak kernel: hda: dma_intr: error=0x40 { UncorrectableError },
LBAsect=37714724, sector=37714722
Apr 15 10:33:03 zaurak kernel: ide: failed opcode was: unknown
Apr 15 10:33:03 zaurak kernel: end_request: I/O error, dev hda, sector 37714722
Apr 15 10:33:08 zaurak kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Apr 15 10:33:08 zaurak kernel: hda: dma_intr: error=0x40 { UncorrectableError },
LBAsect=37714724, sector=37714722
Apr 15 10:33:08 zaurak kernel: ide: failed opcode was: unknown
Apr 15 10:33:08 zaurak kernel: end_request: I/O error, dev hda, sector 37714722
Apr 15 10:44:02 zaurak kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Apr 15 10:44:02 zaurak kernel: hda: dma_intr: error=0x40 { UncorrectableError },
LBAsect=37714724, sector=37714722
Apr 15 10:44:02 zaurak kernel: ide: failed opcode was: unknown
Apr 15 10:44:02 zaurak kernel: end_request: I/O error, dev hda, sector 37714722
Apr 15 10:47:10 zaurak kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Apr 15 10:47:10 zaurak kernel: hda: dma_intr: error=0x40 { UncorrectableError },
LBAsect=37714724, sector=37714722
Apr 15 10:47:10 zaurak kernel: ide: failed opcode was: unknown
Apr 15 10:47:10 zaurak kernel: end_request: I/O error, dev hda, sector 37714722

Looks like I have to replace the H/D and reinstall everything :(

Sorry for the bogus bug report.