From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Root guix dereferencing Date: Sat, 17 Nov 2018 12:17:58 +0100 Message-ID: <984d7a13-05d6-0f05-17ea-57d2858c016c@freenet.de> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNye5-0003AU-MT for help-guix@gnu.org; Sat, 17 Nov 2018 06:20:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNye1-0006ge-Nq for help-guix@gnu.org; Sat, 17 Nov 2018 06:20:13 -0500 Received: from mout3.freenet.de ([195.4.92.93]:53104) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNye1-0006fY-H0 for help-guix@gnu.org; Sat, 17 Nov 2018 06:20:09 -0500 Received: from [195.4.92.164] (helo=mjail1.freenet.de) by mout3.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1gNydv-00062W-Sn for help-guix@gnu.org; Sat, 17 Nov 2018 12:20:03 +0100 Received: from [::1] (port=44852 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gNydv-0007MA-N7 for help-guix@gnu.org; Sat, 17 Nov 2018 12:20:03 +0100 Received: from sub3.freenet.de ([195.4.92.122]:33076) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gNybu-00050O-VG for help-guix@gnu.org; Sat, 17 Nov 2018 12:17:58 +0100 Received: from p200300e4f3eeb3003c8163c7d1bcd4f3.dip0.t-ipconnect.de ([2003:e4:f3ee:b300:3c81:63c7:d1bc:d4f3]:53968) by sub3.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1gNybv-0006gj-1M for help-guix@gnu.org; Sat, 17 Nov 2018 12:17:59 +0100 Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix Hi! It took me embarrassingly long to understand that I have been updating guix for the root profile numerous times without `sudo guix ...` ever pointing to the latest version. This is on Ubuntu 18.04, so there's not a full root account. The state of things, bash output reduced to the relevant parts: ~: sudo ls -l /root/.guix-profile /root/.guix-profile -> /var/guix/profiles/per-user/root/guix-profile ~: ls -l /var/guix/profiles/per-user/root/guix-profile /var/guix/profiles/per-user/root/guix-profile -> guix-profile-3-link ~: ls -l /var/guix/profiles/per-user/root/guix-profile-3-link /var/guix/profiles/per-user/root/guix-profile-3-link -> /gnu/store/9gnbk30krxri2rnslpy9pjqrn0dgpzz9-profile ~: stat /gnu/store/9gnbk30krxri2rnslpy9pjqrn0dgpzz9-profile Change: 2018-09-13 19:23:18.128577196 +0200 2018-09-13 seems to be the date of installation. The last `sudo guix pull` happened yesterday. ~: sudo which guix /usr/local/bin/guix ~: ls -l /usr/local/bin/guix /usr/local/bin/guix -> /var/guix/profiles/per-user/root/guix-profile/bin/guix ~: ls -l /var/guix/profiles/per-user/root/guix-profile/bin/guix /var/guix/profiles/per-user/root/guix-profile/bin/guix -> /gnu/store/xdgjm8slg17gvwqnask6y4fzz7shkf1p-guix-0.15.0-2.8bbb79c/bin/guix ~: stat /gnu/store/xdgjm8slg17gvwqnask6y4fzz7shkf1p-guix-0.15.0-2.8bbb79c/bin/guix Change: 2018-09-13 19:23:15.888610656 +0200 ~: sudo env | grep GUIX ~: sudo env | grep PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin Puzzling to me: things are quite different after `sudo -i`: root@charly:~# which guix /root/.guix-profile/bin/guix root@charly:~# ls -l /root/.guix-profile/bin/guix /gnu/store/xdgjm8slg17gvwqnask6y4fzz7shkf1p-guix-0.15.0-2.8bbb79c/bin/guix root@charly:~# stat /gnu/store/xdgjm8slg17gvwqnask6y4fzz7shkf1p-guix-0.15.0-2.8bbb79c/bin/guix Change: 2018-09-13 19:23:15.888610656 +0200 root@charly:~# env|grep GUIX GUIX_LOCPATH=/root/.guix-profile/lib/locale root@charly:~# env|grep PATH GUIX_LOCPATH=/root/.guix-profile/lib/locale PATH=/root/.guix-profile/bin:/root/.guix-profile/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin How may I fix my installation? -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/