Re: rpm gives warning: can't get exclusive lock on /var/lib/rpm/Packages

"sunhux G" <[email protected]> Tue, 13 May 2008 19:02:15 +0800
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Thanks,

just one more somewhat unrelated question :

can the same key which I copied from
    -----BEGIN PGP PUBLIC KEY BLOCK-----
         . . . . .
    -----END PGP PUBLIC KEY BLOCK-----
be used on multiple Linux servers.


Thanks
U


On 5/13/08, devzero2000 <[email protected]> wrote:
>
> fnctl transaction lock on rpmdb lost around : it'is  advisory  not
> mandatory however.
>
> In RHEL4 rpm 4.3.3 it was FHS compliant : try rm -f
> /var/lock/rpm/transaction
>
> (Aside) it is possible to set a rpm macros for disabling this behaviour.
>
> Best Regards
>
> 2008/5/13 sunhux G <[email protected]>:
>
> >
> > Hi,
> >
> > As I got a message on our Redhat Enterprise 4.5, :
> > Your GPG keyring does not contain public key ...
> >
> >
> > I copy & paste from https://www.redhat.com/security/team/key.html
> > those cryptic characters starting from the lines (inclusive)
> >     -----BEGIN PGP PUBLIC KEY BLOCK-----
> >          . . . . .
> >     -----END PGP PUBLIC KEY BLOCK-----
> >
> >
> > As I saved this file in Windows to a thumb drive & use "cp " to
> > copy it, there's a lot of ^M characters in this file which I then do
> > "dos2unix /media/usbdisk/saved_file.txt"
> > Then copy the converted saved_file.txt to /usr/share/doc/rpm-4.5
> >
> > & issue using root account :
> >   rpm --import /usr/share/doc/rpm-4.5/saved_file.txt"
> > but got the error :
> >   "warning: can't get exclusive lock on /var/lib/rpm/Packages"
> >
> > What's the cause of the above error?  I'm using root & the
> > protection of the saved_file.txt is 755.
> >
> > I read somewhere that /var/lib/rpm/Packages  could be locked,
> > so what can I do?  I thought of renaming Packages to something
> > else & make another copy of Packages :
> >
> >   mv /var/lib/rpm/Packages  /var/lib/rpm/Packages_2
> >   cp -p /var/lib/rpm/Packages_2  /var/lib/rpm/Packages
> >
> > Would this help?  Appreciate any suggestions.
> >
> >
> > Thanks
> > U
> >
> > _______________________________________________
> > Rpm-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/rpm-list
> >
>
>
> _______________________________________________
> Rpm-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/rpm-list
>

_______________________________________________
Rpm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list