GNU bug report logs - #37939
guix-install.sh: Fails to detect signing key on Debian10.

Previous Next

Package: guix;

Reported by: Kai Mertens <kmx <at> posteo.net>

Date: Sun, 27 Oct 2019 09:01:01 UTC

Severity: normal

Tags: notabug

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 37939 <at> debbugs.gnu.org (full text, mbox):

From: Bengt Richter <bokr <at> bokr.com>
To: Kai Mertens <kmx <at> posteo.net>
Cc: 37939 <at> debbugs.gnu.org
Subject: Re: bug#37939: guix-install.sh: Fails to detect signing key on
 Debian10.
Date: Sun, 27 Oct 2019 05:15:17 -0700
Hi again Kai,

On +2019-10-27 09:59:39 +0100, Kai Mertens wrote:
> Dear GNU Guix developers,
> 
> I just tried to install guix on top of a fresh debian10 system, which
> has been installed from debian-live-10.0.0-amd64-gnome.iso and updated.
> 
> The guix install script fails in function chk_gpg_keyring(), although
> the key is present.
> 
> If I remove the discard redirection >/dev/null 2>&1 from the gpg
> command, the following message occurs:
> 
>  gpg: keyblock resource '/root/.gnupg/pubring.kbx': No such file or directory
>  gpg: Fatal: /root/.gnupg: directory does not exist!
> 
> Of course these files do not exist, as I imported the key to the user
> account, not to the root account. Then I executed the script as user,
> using sudo.
> 
> This procedure works fine on trisquel7 or 8, but it fails on debian10.
> 
> I wonder why ‘sudo gpg’ does not make a difference between being called
> via sudo versus being called as root.
>

man sudo ;-)

specifically the -i option

I think if you are a "sudoer" plain sudo switches you to root,
but keeps the environment you were in, with PATH etc, but
sudo -i will set the environment as if you logged in as root.

try "sudo set" and compare with "sudo -i set" 
(or env in place of set)

HTH
--
Regards,
Bengt Richter




This bug report was last modified 4 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.