From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WHbDGBvX9mXSXAAAe85BDQ:P1 (envelope-from ) for ; Sun, 17 Mar 2024 12:42:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WHbDGBvX9mXSXAAAe85BDQ (envelope-from ) for ; Sun, 17 Mar 2024 12:42:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=caminu.fr header.s=20220223 header.b=RR7gg5Du; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710675739; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VoLCKsuthrPJGnfu99MJdq9CqPYizAF1gi5nO4XWqo8=; b=KW5EXdH0w1GbddNnDEysFuhWY7hyL9KmftszC2ClxQfFMhhADOVfil1MYuaXUEb8U+MGHu K3aAIqe76daiLaDuXeveHfaRFDd/FvgFcvVrbM2qHyrysGQiSEzHklVdS9F0TRAl+zpkeC pYrBanTFGhIFePu6sZmbqPmOzWVmo6r7QuRc7FSTNS/ZQYIFlomI06OHlQ9PToPepPNIBI aIzN3uQNukniDw2gFGSkp61B+OvnVhO2rxFDQRjevZXvH+gA1is4J3HWzrNqsCie+PRUfe 6+u1Kqhsx37y+GKNpTG67JslqgQg5rQbB/8QpCTNGKbyWL6FdpoRpODloW9t3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=caminu.fr header.s=20220223 header.b=RR7gg5Du; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710675739; a=rsa-sha256; cv=none; b=DnV2gZq09KNz01cJVRU42UG+pmySnz0FkzJL9BPNscW3HRrdQtkfo2IL2I6DyRmxxsieTi DDQ2PCRPgSkHnsgS2JaCza4DTCIjMM93grVm2R+yCgxSJf9SltAehxgMjZeBzFzscOnYGh +7xeXh7RWRhlTpRrYI4UAKySGGQ/VHu/+7bqXWmVk3hgZDZ/rAj90m87IO1JdG5MTEWm+C dbLZ39Yt3opLyhKma/8JZbURRERTLlldhEz1rA0q62YT1lOB/OvkOPAOBDBev9+ztD4S+W HqfeKWb1FnRAMw/nEFrKwAQ4QI26GljTNuarxdFgXqSDa1KdJtLdE2onPZNKlw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0FB7C53A74 for ; Sun, 17 Mar 2024 12:42:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlott-0000dt-EV; Sun, 17 Mar 2024 07:42:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rloth-0000cm-Vp for help-guix@gnu.org; Sun, 17 Mar 2024 07:41:50 -0400 Received: from smtp-42a9.mail.infomaniak.ch ([2001:1600:7:10::42a9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlotf-0003Rk-Sr for help-guix@gnu.org; Sun, 17 Mar 2024 07:41:49 -0400 Received: from smtp-4-0000.mail.infomaniak.ch (smtp-4-0000.mail.infomaniak.ch [10.7.10.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TyGKc2mnNzCl7 for ; Sun, 17 Mar 2024 12:41:40 +0100 (CET) Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4TyGKc0Blrz25M for ; Sun, 17 Mar 2024 12:41:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=caminu.fr; s=20220223; t=1710675700; bh=NqWCxuI6QbTu7yjdrzYx2/4PwVF6+EednZFfMyxIP4c=; h=Date:To:From:Subject:From; b=RR7gg5DuR5uOqhXijtn+jw/JLh19iG/fZsDTeqiqigcLNLqJWDtxyIFKr0okG36Lt hl6rKi9enYvtTzJDLM8E64Eyrs25yM5EgQWO+q6Lkrozjrbnng12u6+yuUmR5CRqlI V4taV6M6DnWmeaye1fs5epUE+AOm9jWHxwPUTq0A= Message-ID: <2341ca5e-9655-45b3-a736-9fd75ea8cc8e@caminu.fr> Date: Sun, 17 Mar 2024 12:40:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: help-guix@gnu.org Content-Language: en-US From: Thomas Bennett Subject: consider setting the necessary environment variables X-Infomaniak-Routing: alpha Received-SPF: pass client-ip=2001:1600:7:10::42a9; envelope-from=tom@caminu.fr; helo=smtp-42a9.mail.infomaniak.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.29 X-Spam-Score: -5.29 X-Migadu-Queue-Id: 0FB7C53A74 X-Migadu-Scanner: mx13.migadu.com X-TUID: RWCAJd6p1xdF Hello Guix community, I have an issue where my root user seems to be unable to have its environment set. As advised, I put the following lines at the end of my shell rc file (as root, using bash) # tail /root/.bashrc [...] GUIX_PROFILE="/root/.config/guix/current" . "$GUIX_PROFILE/etc/profile" And it is correctly registered since: # echo $GUIX_PROFILE /root/.config/guix/current However, the problem is I can install packages but I'm not able to use them. For instance with bat binary: root@brain ~# guix package -i bat The following package will be upgraded: bat (dependencies or package changed) The following derivation will be built:     /gnu/store/mwznz6gqq4lrxl5pmql8mxixcmhmnnfy-profile.drv building CA certificate bundle... listing Emacs sub-directories... building fonts directory... generating GdkPixbuf loaders cache... generating GLib schema cache... creating GTK+ icon theme cache... building cache files for GTK+ input methods... |building directory of Info manuals... building XDG desktop file cache... building XDG MIME database... building profile with 4 packages... hint: Consider setting the necessary environment variables by running:     GUIX_PROFILE="/root/.guix-prof     . "$GUIX_PROFILE/etc/profile" Alternately, see `guix package --search-paths -p "/root/.guix-profile"'. # guix package --search-paths -p "/root/.guix-profile" export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin" export EMACSLOADPATH="/root/.guix-profile/share/emacs/site-lisp" export INFOPATH="/root/.guix-profile/share/info" root@brain /home/tomi# bat bash: bat: command not found When doing a full system upgrade with guix pull and guix package -u, everything seems to operate fine and at the end, the message hint: Consider setting the necessary environment variables by running:     GUIX_PROFILE="/root/.guix-profile"     . "$GUIX_PROFILE/etc/profile" Alternately, see `guix package --search-paths -p "/root/.guix-profile"'. appears. I tried to manually source "$GUIX_PROFILE/etc/profile" but it's no better. Thank you for your help, Thomas