Bug 1912 - RPM wont install or uninstall samba
Summary: RPM wont install or uninstall samba
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 5.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-03-31 14:05 UTC by Oliver Jones
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-03-31 16:19:51 UTC


Attachments (Terms of Use)

Description Oliver Jones 1999-03-31 14:05:52 UTC
Check this out:
[root] beaker:~/updates# rpm -Uvh samba-1.9.18p10-5.i386.rpm
package samba-1.9.18p10-5 is already installed
error: samba-1.9.18p10-5.i386.rpm cannot be installed
[root] beaker:~/updates# rpm -Uvh samba-1.9.18p10-5.i386.rpm
--force
samba
##################################################
error: samba-1.9.18p10-5.i386.rpm cannot be installed

[root] beaker:~# rpm -q samba
samba-1.9.18p7-2
samba-1.9.18p10-5

[root] beaker:~# rpm -V samba-1.9.18p10-5
[root] beaker:~#

So the package is installed ok? Hmmm lets start again and
delete samba.

[root] beaker:/home/tjmc# rpm -e samba --allmatches -vv
D: counting packages to uninstall
D: opening database in //var/lib/rpm/
D: found 2 packages to uninstall
D: uninstalling record number 3153944
D: uninstalling record number 3815512
[root] beaker:/home/tjmc# rpm -e samba --allmatches -vv
D: counting packages to uninstall
D: opening database in //var/lib/rpm/
D: found 2 packages to uninstall
D: uninstalling record number 3153944
D: uninstalling record number 3815512
[root] beaker:/home/tjmc# rpm -q samba
samba-1.9.18p10-5
samba-1.9.18p7-2

ARARARARGH!

[root] beaker:~# rpm --rebuilddb
[root] beaker:~#

[root] beaker:/home/tjmc# rpm -e samba --allmatches -vv
D: counting packages to uninstall
D: opening database in //var/lib/rpm/
D: found 2 packages to uninstall
D: uninstalling record number 3153944
D: uninstalling record number 3815512
[root] beaker:/home/tjmc# rpm -e samba --allmatches -vv
D: counting packages to uninstall
D: opening database in //var/lib/rpm/
D: found 2 packages to uninstall
D: uninstalling record number 3153944
D: uninstalling record number 3815512
[root] beaker:/home/tjmc#

ARARARGGH!!!

Help.  Please.  Help.

RH 5.1, RPM 2.5.3-5.1

I'm going to attempt to solve my problem by migrating to
5.2... But I'd still like to know why this happened.

Comment 1 David Lawrence 1999-03-31 16:19:59 UTC
Sounds like you may have a corrupted rpm database. Try rebuilding it
using the rpm --rebuilddb command and then removeing and reinstalling
the packages in question.


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