Skip to main content
Tweeted twitter.com/StackUnix/status/989675585210404864
deleted 237 characters in body; edited tags; edited title
Source Link

Parabola (Arch-like) GPG - "pacman-key --refresh-keys" fails with "gpg: keyserver refresh failed: Permission denied"

I run Parabola (a derivative of Arch Linux that blacklists non-free software and adds a lot of other software). In addition, my system uses runit as its init system and OpenRC as its service manager if that makes any difference.

I'm currently having issues with installing a package due to a missing key. My first plan was to updating my keyring however "pacman-key --refresh-keys" fails:

Parabola (Arch-like) - "pacman-key --refresh-keys" fails with "gpg: keyserver refresh failed: Permission denied"

I run Parabola (a derivative of Arch Linux that blacklists non-free software and adds a lot of other software). In addition, my system uses runit as its init system and OpenRC as its service manager if that makes any difference.

I'm currently having issues with installing a package due to a missing key. My first plan was to updating my keyring however "pacman-key --refresh-keys" fails:

GPG - "pacman-key --refresh-keys" fails with "gpg: keyserver refresh failed: Permission denied"

I'm currently having issues with installing a package due to a missing key. My first plan was to updating my keyring however "pacman-key --refresh-keys" fails:

Tried some extra commands I've tried.
Source Link

Just tried refreshing my keyring with gpg directly:

[user@hostname ~]$ sudo gpg2 --refresh-keys gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created 

Then tried to do it with pacman-key:

[user@hostname ~]$ sudo pacman-key --refresh-keys gpg: refreshing 135 keys from hkp://pool.sks-keyservers.net gpg: keyserver refresh failed: Permission denied ==> ERROR: A specified local key could not be updated from a keyserver. 

So that failed. Tried with gpg2 to see if the output was the same:

[user@hostname ~]$ sudo gpg2 --refresh-keys 

There wasn't any output so I doubt that the files it created are related to my current issue.

As a last ditch effort I tried without sudo and got no output:

[user@hostname ~]$ gpg2 --refresh-keys 

Still stuck with this. Even installed kgpg to manually generate a config file for gpg. However, I'm still getting this damn permissions error.

Just tried refreshing my keyring with gpg directly:

[user@hostname ~]$ sudo gpg2 --refresh-keys gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created 

Then tried to do it with pacman-key:

[user@hostname ~]$ sudo pacman-key --refresh-keys gpg: refreshing 135 keys from hkp://pool.sks-keyservers.net gpg: keyserver refresh failed: Permission denied ==> ERROR: A specified local key could not be updated from a keyserver. 

So that failed. Tried with gpg2 to see if the output was the same:

[user@hostname ~]$ sudo gpg2 --refresh-keys 

There wasn't any output so I doubt that the files it created are related to my current issue.

As a last ditch effort I tried without sudo and got no output:

[user@hostname ~]$ gpg2 --refresh-keys 

Still stuck with this. Even installed kgpg to manually generate a config file for gpg. However, I'm still getting this damn permissions error.

Add more relevant tags.
Link
Source Link
Loading