* guix pull symlink file exists
@ 2019-01-05 11:49 Bradley Haggerty
2019-01-06 21:11 ` Chris Marusich
0 siblings, 1 reply; 2+ messages in thread
From: Bradley Haggerty @ 2019-01-05 11:49 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1020 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: guix pull symlink file exists
2019-01-05 11:49 guix pull symlink file exists Bradley Haggerty
@ 2019-01-06 21:11 ` Chris Marusich
0 siblings, 0 replies; 2+ messages in thread
From: Chris Marusich @ 2019-01-06 21:11 UTC (permalink / raw)
To: Bradley Haggerty; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Hi Bradley,
Bradley Haggerty <bradigger@gmail.com> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-06 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-05 11:49 guix pull symlink file exists Bradley Haggerty
2019-01-06 21:11 ` Chris Marusich
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.