Ask Your Question
1

How do I install a key so that my dnf install will work?

asked 2016-08-01 16:06:14 -0500

wavis gravatar image

I get the following error when attempting to install a package from a 3rd party repo.

warning: /var/cache/dnf/___/packages/___.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 8_1: NOKEY
Error: Public key for ___.x86_64.rpm is not installed

How do I install the key 8_1?

edit retag flag offensive close merge delete

Comments

1

If you are using a their party repository it must indicate the signature file where is it or you can do:

sudo dnf install package_name --nogpgcheck

That will skip the gpgkey check when installing that package

aeperezt gravatar imageaeperezt ( 2016-08-01 16:50:21 -0500 )edit

@aeperezt so is there no way to find and install the key ID listed? Would that not do any good?

wavis gravatar imagewavis ( 2016-08-01 17:44:20 -0500 )edit

Dont use --nogpgcheck! Ask the provider of the rpm package/repo for the key. Why are you not disclosing what package you are installing, from which repo? That would help!

florian gravatar imageflorian ( 2016-08-02 09:27:24 -0500 )edit

That is a sketchy-looking package name, I might add.. be careful about installing software from third-party repositories on the Interwebs. You're trusting your system's integrity to that third party, especially if you aren't well-versed in RPM-based software management.

bitwiseoperator gravatar imagebitwiseoperator ( 2016-08-02 10:36:31 -0500 )edit

@wavis: you replaced the actual package name with "______", right? That's not the name of the package, is it?

florian gravatar imageflorian ( 2016-08-02 11:03:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-08-01 18:03:56 -0500

aeperezt gravatar image

if the repo has a gpg key address can be download you could installed download and then install it:

 rpm --import location_of_your_gpg_file

That will install it.

edit flag offensive delete link more

Comments

The location can be a URI/URL sudo rpm --import https://dl.google.com/linux/linux_signing_key.pub

MettaCrawler gravatar imageMettaCrawler ( 2018-04-15 04:58:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-08-01 16:06:14 -0500

Seen: 4,345 times

Last updated: Aug 01 '16