[Gllug] RPM difficulties

Xander D Harkness xander at harkness.co.uk
Wed Oct 30 15:57:17 UTC 2002


Fasih Rehman wrote:

> Hello Xander,
>
> Xander D Harkness wrote:
>
>> Following the conversation on apt-get, it seems appropriate to chase 
>> it with some rpm misery.  
>> I am trying to remove a package using the command rpm -e gdm  
>> This is the tail of the output from strace.  At the bottom it loops 
>> with a permanent timeout.  
>> Does anyone know what the problem is and if it is fixable?  
>> Kind regards Xander  
>
>
> It looks like rpm is trying to update the RPM database, but is having 
> problems reading from the file, this maybe because of corruption or an 
> inconsistency. Can you remove or install other packages ? If you can 
> then I don't know what the problem is.
>
> If you can't then you definately have a corrupt database.
> Fortunately this sort of problem can be easily resolved.
>
> Use the '--rebuilddb' option with rpm if this does not work on it's 
> own then I would suggest you try using '--initdb' option then the 
> '--rebuilddb' option. If this does not fix it I don't know what else 
> to try.
>
> You could backup the rpm database files first if you want to be really 
> careful.
>
Not that it makes much difference.  the same thing happened on rpm 
--initdb ; rpm --rebuilddb

open("/var/lib/rpm/Packages", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=24371200, ...}) = 0
brk(0x8059000)                          = 0x8059000
select(0, NULL, NULL, NULL, {0, 1000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 2000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 4000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 8000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 16000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 32000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 64000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 128000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 256000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 512000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0} <unfinished ...>

Not a happy bunny.......

Xander

[root at simserver root]#

>
> Fasih Rehman
>
>


-- 
The meek shall inherit the earth; the rest of us will go to the stars.



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list