GNU bug report logs - #30728
guix-install.sh doesn't work if run with "sudo"

Previous Next

Package: guix;

Reported by: Clément Lassieur <clement <at> lassieur.org>

Date: Tue, 6 Mar 2018 09:55:02 UTC

Severity: normal

Done: Chris Marusich <cmmarusich <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#30728: closed (guix-install.sh doesn't work if run with "sudo")
Date: Thu, 29 Mar 2018 05:08:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 29 Mar 2018 07:07:29 +0200
with message-id <87lgebtqpa.fsf <at> gmail.com>
and subject line Re: bug#30728: guix-install.sh doesn't work if run with "sudo"
has caused the debbugs.gnu.org bug report #30728,
regarding guix-install.sh doesn't work if run with "sudo"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
30728: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Clément Lassieur <clement <at> lassieur.org>
To: bug-guix <at> gnu.org
Subject: guix-install.sh doesn't work if run with "sudo"
Date: Tue, 06 Mar 2018 10:54:04 +0100
Hi,

My system is Ubuntu 16.04.

I ran './guix-install.sh' and got the message: "This script must be run
as root.".  So I ran 'sudo ./guix-install.sh' and got an error message
saying that:

    GUIX_PROFILE="${HOME}/.guix-profile"
    source "${GUIX_PROFILE}/etc/profile"

the 'source' command doesn't work because ${GUIX_PROFILE} was never
created, ${HOME} being /home/clement, not /root.

To recover from this I had to manually delete /var/guix and /gnu, log as
root with 'su', and start again.

Clément


[Message part 3 (message/rfc822, inline)]
From: Chris Marusich <cmmarusich <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: Clément Lassieur <clement <at> lassieur.org>,
 30728-done <at> debbugs.gnu.org
Subject: Re: bug#30728: guix-install.sh doesn't work if run with "sudo"
Date: Thu, 29 Mar 2018 07:07:29 +0200
[Message part 4 (text/plain, inline)]
Hi everyone,

Ricardo Wurmus <rekado <at> elephly.net> writes:

> This looks good to me.  Thank you!

I've committed this as 3cd4447f5639f45b7d833f6fb2adce11ea15ba1d.  If
anybody has additional concerns about the installation script or the
installation instructions, please open a new bug report for it and we
can discuss the topic further there.

Thank you for reporting this issue, Clément!

-- 
Chris
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 55 days ago.

Previous Next


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