Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

YUM fails - public.gpg.key error

Posted on 2005-02-25
1
Medium Priority
?
27,407 Views
Last Modified: 2013-12-15
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
    rpm --import public.gpg.key
For more information contact your distribution or package provider.
[root@dallasraymobile dallasray]# rpm --import public.gpg.key
error: public.gpg.key: import read failed.
[root@dallasraymobile dallasray]#
0
Comment
Question by:smetterd
1 Comment
 
LVL 8

Accepted Solution

by:
marxy earned 2000 total points
ID: 13401510
For example, if you use Fedora Core 3
run as root this

rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY*

to import GPG public keys.
If you use another distribution find correspont keys.

If you use FC3 but have no /usr/share/doc/fedora-release-3/ files
install RPM for that

rpm -Uhv fedora-release-3-8

And then, make rpm import
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question