New issue
Advanced search Search tips

Issue 838032 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

app-crypt/gnupg-1.4.15 unable to execute program `/usr/libexec/gnupg/gpgkeys_curl'

Reported by tvr...@gmail.com, Apr 30 2018

Issue description

Chrome Version: 65.0.3325.209 (Official Build) (32-bit)
Chrome OS Version: 10323.67.0 (Official Build) stable-channel bob
Chrome OS Platform: Asus Chromebook Flip C101PA

Steps To Reproduce:

# dev_install
# emerge app-crypt/gnupg
# mkdir /tmp/home
# HOME=/tmp/home gpg --keyserver https://pool.sks-keyservers.net --search 0x2BDBE6A6

Expected Result:

Successfully lookup the key.

Actual Result:

gpg: searching for "0x2BDBE6A6" from hkp server pool.sks-keyservers.net
gpg: unable to execute program `/usr/libexec/gnupg/gpgkeys_curl': No such file or directory
gpg: no handler for keyserver scheme `hkp'
gpg: keyserver search failed: keyserver error

How frequently does this problem reproduce? Always.

What is the impact to the user, and is there a workaround? You have to fetch keys you need on another host and download them directly with curl or similar to the Chromebook.

Please provide any additional information below.

It's possible that this is just a prefixing issue, since there is a gpgkeys_curl under /usr/local:

# ls -l /usr/local/libexec/gnupg/
total 184
-rwxr-xr-x. 1 root root 63140 Apr  3 11:47 gpgkeys_curl
-rwxr-xr-x. 1 root root 38556 Apr  3 11:47 gpgkeys_finger
-rwxr-xr-x. 1 root root 67236 Apr  3 11:47 gpgkeys_hkp
-rwxr-xr-x. 1 root root  9828 Apr  3 11:47 make-dns-cert

The source ebuild is gnupg-1.4.15:

# ls -d /usr/local/var/db/pkg/app-crypt/gnupg-*      
/usr/local/var/db/pkg/app-crypt/gnupg-1.4.15

 

Comment 1 by tvr...@gmail.com, Apr 30 2018

> It's possible that this is just a prefixing issue...

Yeah, this seems like the only issue.  If I create a mount namespace and bind the /usr/local versions into /usr/libexec, the lookup works:

# emerge busybox
# HOME=/tmp/home busybox unshare -m sh -c 'mount --bind /usr/local/libexec /usr/libexec && gpg --keyserver hkp://pool.sks-keyservers.net --search 0x2BDBE6A6'
gpg: searching for "0x2BDBE6A6" from hkp server pool.sks-keyservers.net
(1)     Arch Linux ARM Build System <builder@archlinuxarm.org>
          4096 bit RSA key 2BDBE6A6, created: 2014-01-18
Keys 1-1 of 1 for "0x2BDBE6A6".  Enter number(s), N)ext, or Q)uit > q

That's a decent workaround for now.  For a permanent fix, I don't know if there's a way to adjust the lookup path at install time, or if gpg needs to be compiled with a particular lookup path in mind.
Components: Infra>Client>ChromeOS>Build OS>Installer
Labels: dev_install
Status: Available (was: Unconfirmed)

Sign in to add a comment