unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37939: guix-install.sh: Fails to detect signing key on Debian10.
@ 2019-10-27  8:59 Kai Mertens
  2019-10-27 12:15 ` Bengt Richter
  2020-05-22  0:18 ` bug#37939: guix-install.sh: Fails to detect signing key zimoun
  0 siblings, 2 replies; 6+ messages in thread
From: Kai Mertens @ 2019-10-27  8:59 UTC (permalink / raw)
  To: 37939

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

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.

Do I use debian the wrong way?

best regards
Kai

-- 
Kai Mertens <kmx@posteo.net>
OpenPGP Key-ID: 0x40B15AB4B05B5BF1 on keys.gnupg.net
Key fingerprint = 7C83 0A80 01FF 679C 6E8E  AFD3 40B1 5AB4 B05B 5BF1
What is that? Please check: https://emailselfdefense.fsf.org/en/


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37939: guix-install.sh: Fails to detect signing key on Debian10.
  2019-10-27  8:59 bug#37939: guix-install.sh: Fails to detect signing key on Debian10 Kai Mertens
@ 2019-10-27 12:15 ` Bengt Richter
  2019-11-16  1:29   ` Kai Mertens
  2020-05-22  0:18 ` bug#37939: guix-install.sh: Fails to detect signing key zimoun
  1 sibling, 1 reply; 6+ messages in thread
From: Bengt Richter @ 2019-10-27 12:15 UTC (permalink / raw)
  To: Kai Mertens; +Cc: 37939

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37939: guix-install.sh: Fails to detect signing key on Debian10.
  2019-10-27 12:15 ` Bengt Richter
@ 2019-11-16  1:29   ` Kai Mertens
  2019-11-18 10:24     ` zimoun
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Mertens @ 2019-11-16  1:29 UTC (permalink / raw)
  To: Bengt Richter; +Cc: 37939

[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]

On Sun, 27 Oct 2019 05:15:17 -0700
Bengt Richter <bokr@bokr.com> wrote:

> Hi again Kai,
> 
> On +2019-10-27 09:59:39 +0100, Kai Mertens wrote:
> > Dear GNU Guix developers,
> > 
> > [...]
> >  
> 
> man sudo ;-)

Oops.

> 
> 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)

Well, I tried "sudo --preserve-env ./guix-install.sh" on debian10, that
seems to work fine and the key in the sudoer’s keyring is detected. On
trisquel, I am used to use plain sudo instead.

Anyway – it is of course not a bug of the guix script. Maybe a usage
hint within the guix documentation in section 2.1 would be nice?

Thanks for your help,
best regards
Kai

-- 
Kai Mertens <kmx@posteo.net>
OpenPGP Key-ID: 0x40B15AB4B05B5BF1 on keys.gnupg.net
Key fingerprint = 7C83 0A80 01FF 679C 6E8E  AFD3 40B1 5AB4 B05B 5BF1
What is that? Please check: https://emailselfdefense.fsf.org/en/


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37939: guix-install.sh: Fails to detect signing key on Debian10.
  2019-11-16  1:29   ` Kai Mertens
@ 2019-11-18 10:24     ` zimoun
  2020-02-21 14:24       ` zimoun
  0 siblings, 1 reply; 6+ messages in thread
From: zimoun @ 2019-11-18 10:24 UTC (permalink / raw)
  To: Kai Mertens; +Cc: 37939

Dear,

On Sat, 16 Nov 2019 at 03:34, Kai Mertens <kmx@posteo.net> wrote:

> Anyway – it is of course not a bug of the guix script. Maybe a usage
> hint within the guix documentation in section 2.1 would be nice?

Could you elaborate on a first attempt? I am not sure to understand
which hint you suggest.

The manual says: "It should be run as the root user." So to install on
my Debian, I simply log as root. :-)
If you speak about adding a hint when using the command sudo, then is
it really reliable on all the foreign distributions? Because the
command sudo is not always configured the same way, as you
experimented with Debian vs Trisquel.


All the best,
simon

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37939: guix-install.sh: Fails to detect signing key on Debian10.
  2019-11-18 10:24     ` zimoun
@ 2020-02-21 14:24       ` zimoun
  0 siblings, 0 replies; 6+ messages in thread
From: zimoun @ 2020-02-21 14:24 UTC (permalink / raw)
  To: Kai Mertens; +Cc: 37939

Dear

> On Sat, 16 Nov 2019 at 03:34, Kai Mertens <kmx@posteo.net> wrote:

> > Anyway – it is of course not a bug of the guix script. Maybe a usage
> > hint within the guix documentation in section 2.1 would be nice?

I think it is not a bug and I do not see what could be improved. I
would like to close this bug. Is it ok for you? Or do you have a
comment to add?

Thank you in advance.

All the best,
simon

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37939: guix-install.sh: Fails to detect signing key
  2019-10-27  8:59 bug#37939: guix-install.sh: Fails to detect signing key on Debian10 Kai Mertens
  2019-10-27 12:15 ` Bengt Richter
@ 2020-05-22  0:18 ` zimoun
  1 sibling, 0 replies; 6+ messages in thread
From: zimoun @ 2020-05-22  0:18 UTC (permalink / raw)
  To: 37939-done

Dear,

Because it is not a bug and after 12 weeks without any activity, I am closing.

Best regards,
simon




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-22  0:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-27  8:59 bug#37939: guix-install.sh: Fails to detect signing key on Debian10 Kai Mertens
2019-10-27 12:15 ` Bengt Richter
2019-11-16  1:29   ` Kai Mertens
2019-11-18 10:24     ` zimoun
2020-02-21 14:24       ` zimoun
2020-05-22  0:18 ` bug#37939: guix-install.sh: Fails to detect signing key zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).