GNU bug report logs -
#37939
guix-install.sh: Fails to detect signing key on Debian10.
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37939 in the body.
You can then email your comments to 37939 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#37939
; Package
guix
.
(Sun, 27 Oct 2019 09:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kai Mertens <kmx <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 27 Oct 2019 09:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <at> 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/
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37939
; Package
guix
.
(Sun, 27 Oct 2019 12:16:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 37939 <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37939
; Package
guix
.
(Sat, 16 Nov 2019 02:34:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 37939 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sun, 27 Oct 2019 05:15:17 -0700
Bengt Richter <bokr <at> 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 <at> 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/
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37939
; Package
guix
.
(Mon, 18 Nov 2019 10:25:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 37939 <at> debbugs.gnu.org (full text, mbox):
Dear,
On Sat, 16 Nov 2019 at 03:34, Kai Mertens <kmx <at> 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
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37939
; Package
guix
.
(Fri, 21 Feb 2020 14:25:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 37939 <at> debbugs.gnu.org (full text, mbox):
Dear
> On Sat, 16 Nov 2019 at 03:34, Kai Mertens <kmx <at> 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
Added tag(s) notabug.
Request was from
zimoun <zimon.toutoune <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 14 May 2020 14:35:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
zimoun <zimon.toutoune <at> gmail.com>
:
You have taken responsibility.
(Fri, 22 May 2020 00:19:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kai Mertens <kmx <at> posteo.net>
:
bug acknowledged by developer.
(Fri, 22 May 2020 00:19:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 37939-done <at> debbugs.gnu.org (full text, mbox):
Dear,
Because it is not a bug and after 12 weeks without any activity, I am closing.
Best regards,
simon
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 19 Jun 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 148 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.