cannot install public key

Wolfgang wolfgang at rpi.net.au
Wed Sep 8 14:43:12 UTC 2004


On Wed, 2004-09-08 at 23:48, Andre Kirchner wrote:
> Hi,
> 
> when I try to run up2date, it returns a message saying
> that I should install the public-key with the commands
> 
> rpm --import /usr/share/rhn/RPM-GPG-KEY
> rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
> 
> But when I execute them, the following error messages
> are shown
> 
> [root at Deutschland root]# rpm --import
> /usr/share/rhn/RPM-GPG-KEY-fedora
> error: cannot get exclusive lock on
> /var/lib/rpm/Packages
> error: cannot open Packages index using db3 -
> Operation not permitted (1)
> error: cannot open Packages database in /var/lib/rpm
> error: /usr/share/rhn/RPM-GPG-KEY-fedora: import
> failed.
> [root at Deutschland root]# rpm --import
> /usr/share/rhn/RPM-GPG-KEY
> error: cannot get exclusive lock on
> /var/lib/rpm/Packages
> error: cannot open Packages index using db3 -
> Operation not permitted (1)
> error: cannot open Packages database in /var/lib/rpm
> error: /usr/share/rhn/RPM-GPG-KEY: import failed.
> 
> How do I fix it?
> 
> Thanks,
> 
> Andre

Make sure that nothing else is running RPM. Like Up2date maybe open.
Close them all down, then run the rpm --import again.

Wolf






More information about the fedora-list mailing list