Re: guix pull symlink file exists
Hi Bradley, Bradley Haggerty writes: > brad@kazuki:~/ > sudo -E guix pull > Migrating profile generations to '/var/guix/profiles/per-user/root'... > guix pull: error: symlink: File exists: > "/var/guix/profiles/per-user/root/current-guix" This sort of problem has occurred for others. See, for example, this post: https://lists.gnu.org/archive/html/help-guix/2018-12/msg00107.html Perhaps you accidentally ran a command as root which changed ownership of a symlink from "brad" to "root". It's possible to do that accidentally because the "sudo" program is configured to behave differently on different systems, so it may require slightly different options than the examples you see from others or in the manual. What are the outputs of these commands? sudo -E env | grep HOME and sudo -HE env | grep HOME Thank you, -- Chris signature.asc Description: PGP signature
guix pull symlink file exists
Occasionally I get an error like this. It happens for both the system profile and my user profile, the "/root" part just changes to "/brad" when it's to my user. My fix has been to delete the file and run pull again, which works, but clearly isn't a permanent fix if the error comes back later. I wonder if the migration message is a hint. Is it supposed to be migrating stuff every time? I will hold off on deleting the file for now so that I can try any suggestions for solving it properly. I just tried to do the same as my user and didn't get the error, so maybe deleting it from one affects the other. Not sure. brad@kazuki:~/ > sudo -E guix pull Migrating profile generations to '/var/guix/profiles/per-user/root'... guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/root/current-guix" my guix version: guix (GNU Guix) b634b5c253cb3351eb074c64be838f72aa83f54d