unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Root guix dereferencing
@ 2018-11-17 11:17 Thorsten Wilms
  2018-11-18 23:06 ` Leo Famulari
  0 siblings, 1 reply; 10+ messages in thread
From: Thorsten Wilms @ 2018-11-17 11:17 UTC (permalink / raw)
  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
<empty>

~: 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/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-11-19 18:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-17 11:17 Root guix dereferencing Thorsten Wilms
2018-11-18 23:06 ` Leo Famulari
2018-11-19  9:12   ` Thorsten Wilms
2018-11-19 10:20     ` Clément Lassieur
2018-11-19 11:47       ` Thorsten Wilms
2018-11-19 14:07         ` Clément Lassieur
2018-11-19 14:32           ` Thorsten Wilms
2018-11-19 15:06             ` Clément Lassieur
2018-11-19 17:08               ` Thorsten Wilms
2018-11-19 18:27                 ` Clément Lassieur

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).