guix-pull-symlink-exists.org 691 B

Apparently one can cause an issue in Guix package manager, when one ran guix as root profile user without using either sudo -i ... or su - to run the guix command. In such a case it messes up the user profile, because the environment variable HOME and others are still set in the root shell environment. Then the following error will occur, when running guix pull as normal profile user:


Migrating profile generations to '/var/guix/profiles/per-user/USER'...
guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/USER/current-guix"

Always remember to use either sudo -i or su - when invoking guix commands for the root profile!