Hi Julien, Julien Lepiller skribis: > Le 26 juillet 2019 01:03:08 GMT+02:00, "Ludovic Courtès" a écrit : [...] >>;; In 0.15.0+ we'd create ~/.config/guix/current-[0-9]*-link symlinks. >>Move >> ;; them to %PROFILE-DIRECTORY. >> (unless (string=? %profile-directory >> (dirname (canonicalize-profile %user-profile-directory))) >> (migrate-generations %user-profile-directory %profile-directory)) [...] > Could there be some veird interaction between sudo and these %profile-directory and %user-profile-directory variables? Indeed. I added ‘pk’ calls to print ‘%profile-directory’ and (canonicalize-profile %user-profile-directory), and here’s what I see with ‘sudo’: --8<---------------cut here---------------start------------->8--- $ sudo -E ./pre-inst-env guix pull ;;; (pd "/var/guix/profiles/per-user/root") ;;; (upd "/home/ludo/.config/guix/current") Migrating profile generations to '/var/guix/profiles/per-user/root'... guix pull: error: symlink: Dosiero jam ekzistas: "/var/guix/profiles/per-user/root/current-guix" --8<---------------cut here---------------end--------------->8--- ‘%user-profile-directory’ is computed as a function of $HOME, which is unchanged when using ‘sudo’, whereas ‘%profile-directory’ is computed as a function of $USER. I think $HOME should always prevail over the home directory defined in /etc/passwd, so think we should not change the way ‘%user-profile-directory’ is computed. We could do this: