[ltp] Error on running rpm with FC2

James McKenzie linux-thinkpad@linux-thinkpad.org
Sat, 09 Oct 2004 11:55:15 -0700


Well, I did everything described here and I still get the error.  BTW, I 
am root.  That is what I first thought, that I was running as another 
user, but running whoami shows I'm definately root.

James McKenzie


honey@gneek.com wrote:

> James,
>
>> I did check for either a .pid or .lock file that would be associated 
>> with rpm.  No mystery files exist.  I'm wondering if my upgrade in 
>> which I deleted the /, /root, and /usr directories.  I left the /tmp 
>> directory alone as well as the /var directory.  I can write to all of 
>> the directories.
>>
>>>>>> error:  cannot create transaction lock.
>>>>>
>
> Occasionally rpm in Fedora seems to show signs of the old RH9 rpm
> lock problems.  The classic solution is to kill -9 any rpm processes
> left around, then rm /var/lib/rpm/__db*.  Be very careful in that
> directory!  If you lose anything else, you're gone.  You may want to
> back it up first.
>
> Secondly, I don't understand your method of upgrade you describe - you
> didn't go through the standard method from CD, or "linux askmethod"
> from a hard drive, FTP etc.?  How did you do it?  At the very least,
> check permissions on /tmp itself etc.  /tmp should be: drwxrwxrwt -
> the sticky bit on the end is important.
>
> Finally you will get the error you describe if you try and install a
> package while not being root, but I won't insult your intelligence by
> mentioning it :)
>