unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Oleander via <help-guix@gnu.org>
To: zelphirkaltstahl@posteo.de
Cc: help-guix@gnu.org
Subject: Re: Entering the sudo password before guix pull when updating the, system
Date: Tue, 20 Aug 2024 17:44:34 +0000	[thread overview]
Message-ID: <7k20Wu9zhzyrYxpD1vpv4-65Pp2yk56E_0xPWo7epTCUnilAYEO2NQ3DFKGK75g72E-0-OaJfWKyc_85EjeOAT5C-YEJj-sBVrH6OZrBCo0=@protonmail.com> (raw)
In-Reply-To: <93110b5a-9b89-4afd-a713-8c3f5c118557@posteo.de>

Hi Zelphir!

with `sudo -i` I get the same hint.

-------- Original Message --------
On Aug 20, 2024, 13:30, Zelphir Kaltstahl wrote:

>> How can I enter the sudo password before `guix pull` runs when updating with `guix pull && sudo guix system reconfigure config.scm`?
>
>> `sudo sh -c "su -c 'guix pull' $USER && guix system reconfigure config.scm"` returns:
>
>> "hint: After setting PATH, run hash guix to make sure your shell refers to /home/user/.config/guix/current/bin/guix"
>
>> Thank you!
>
> Hi!
>
> In the past I learned, that when updating the guix system, I have to use:
>
> ~~~~
> sudo -i
> ~~~~
>
> And then run the guix commands. Otherwise guix still has/sees environment variables from my user shell/profile/environment and that can mess up Guix. So I want to share that bit of info with you. Hope it helps, even if not directly related to your question.
>
> Best wishes,
> Zelphir
>
> --
> repositories:
> https://notabug.org/ZelphirKaltstahl
> ,
> https://codeberg.org/ZelphirKaltstahl

  reply	other threads:[~2024-08-20 17:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7266.1724149549.21382.help-guix@gnu.org>
2024-08-20 11:30 ` Entering the sudo password before guix pull when updating the, system Zelphir Kaltstahl
2024-08-20 17:44   ` Oleander via [this message]
2024-08-20 20:13     ` Marek Paśnikowski
2024-08-19 18:03 Entering the sudo password before guix pull when updating the system Oleander via
2024-08-19 18:16 ` Oleander via
2024-08-19 22:57 ` Ian Eure
2024-08-20 10:38   ` Marek Paśnikowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='7k20Wu9zhzyrYxpD1vpv4-65Pp2yk56E_0xPWo7epTCUnilAYEO2NQ3DFKGK75g72E-0-OaJfWKyc_85EjeOAT5C-YEJj-sBVrH6OZrBCo0=@protonmail.com' \
    --to=help-guix@gnu.org \
    --cc=7059548@protonmail.com \
    --cc=zelphirkaltstahl@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).