[Bug 1623159] [NEW] Keys cannot be refreshed via "gpg2 --refresh-keys"

Colan Schwartz 1623159 at bugs.launchpad.net
Tue Sep 13 18:43:42 UTC 2016


Public bug reported:

gpg2 --refresh-keys yields the following:

gpg: keyserver refresh failed: No keyserver available

However, I have everything set up in dirmngr.conf:

keyserver hkp://jirk5u4osbsr34t5.onion
keyserver hkps://hkps.pool.sks-keyservers.net
hkp-cacert /home/colan/.gnupg/sks-keyservers.netCA.pem

...and dirmngr can find it:

colan at snake[Tue 13 14:30]% dirmngr                                                   
dirmngr[26401.0]: permanently loaded certificates: 0
dirmngr[26401.0]:     runtime cached certificates: 0
# Home: ~/.gnupg
# Config: /home/colan/.gnupg/dirmngr.conf
OK Dirmngr 2.1.11 at your service
keyserver
S KEYSERVER hkps://hkps.pool.sks-keyservers.net
OK

Looks like gpg2 isn't grabbing the correct information from the response
as here's what's happening with debugging turned on:

colan at snake[Tue 13 14:30]% gpg2 --refresh-keys --debug-all                           
[...]
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_6 -> GETINFO version
gpg: DBG: chan_6 <- D 2.1.11
gpg: DBG: chan_6 <- OK
gpg: DBG: chan_6 -> KEYSERVER
gpg: DBG: chan_6 <- OK
gpg: keyserver refresh failed: No keyserver available
gpg: DBG: chan_6 -> BYE

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: gnupg2 2.1.11-6ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Sep 13 14:31:34 2016
EcryptfsInUse: Yes
SourcePackage: gnupg2
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnupg2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gnupg2 in Ubuntu.
https://bugs.launchpad.net/bugs/1623159

Title:
  Keys cannot be refreshed via "gpg2 --refresh-keys"

Status in gnupg2 package in Ubuntu:
  New

Bug description:
  gpg2 --refresh-keys yields the following:

  gpg: keyserver refresh failed: No keyserver available

  However, I have everything set up in dirmngr.conf:

  keyserver hkp://jirk5u4osbsr34t5.onion
  keyserver hkps://hkps.pool.sks-keyservers.net
  hkp-cacert /home/colan/.gnupg/sks-keyservers.netCA.pem

  ...and dirmngr can find it:

  colan at snake[Tue 13 14:30]% dirmngr                                                   
  dirmngr[26401.0]: permanently loaded certificates: 0
  dirmngr[26401.0]:     runtime cached certificates: 0
  # Home: ~/.gnupg
  # Config: /home/colan/.gnupg/dirmngr.conf
  OK Dirmngr 2.1.11 at your service
  keyserver
  S KEYSERVER hkps://hkps.pool.sks-keyservers.net
  OK

  Looks like gpg2 isn't grabbing the correct information from the
  response as here's what's happening with debugging turned on:

  colan at snake[Tue 13 14:30]% gpg2 --refresh-keys --debug-all                           
  [...]
  gpg: DBG: connection to the dirmngr established
  gpg: DBG: chan_6 -> GETINFO version
  gpg: DBG: chan_6 <- D 2.1.11
  gpg: DBG: chan_6 <- OK
  gpg: DBG: chan_6 -> KEYSERVER
  gpg: DBG: chan_6 <- OK
  gpg: keyserver refresh failed: No keyserver available
  gpg: DBG: chan_6 -> BYE

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: gnupg2 2.1.11-6ubuntu2
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Sep 13 14:31:34 2016
  EcryptfsInUse: Yes
  SourcePackage: gnupg2
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/1623159/+subscriptions



More information about the foundations-bugs mailing list