Error: key.tmp: key 1 import failed

Good evening Forum.
I am a Rocky Linux 9 user.
I upgraded to Rocky Linux 9 from Rocky Linux 8.
I am trying to Install Pritunl Client on Rocky Linux 9 but can’t import the GPG KEY.
I have added the required repos i.e Pritunl, Mongodb-org, EPEL, and CRB.
This command : gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A has no problem.
BUT : gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > key.tmp; sudo rpm --import key.tmp; rm -f key.tmp is where the problem is. At this stage I am getting an error : error: key.tmp: key 1 import failed.
kindly advice if this key is valid.

The command sudo rpm --import https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc can also be used to import the key.

1 Like