I have another update on this: I even restored to a snapshot even before cloning guix at all (I only had it installed). I ran guix --version, got: guix 0.15.0... (not pointing to any commit). guix pull -l no output, it was clean. Also which guix did not show the path that had the "current" in it (/usr/local/bin), but there I am still finding a symlink to guix -> /var/guix/profiles/per-user/root/guix-profile/bin/guix*
guix pull --fallback (waited all day long...) exported the new PATH variable Same error when running: guix pull -l Migrating profile generations to '/var/guix/profiles/per-user/laura'... guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/laura/current-guix-1-link" guix --version: guix (GNU Guix) 2e2b8635b99167554bc51a9d1067c808bcb63d37 On Fri, Oct 26, 2018 at 7:31 AM Laura Lazzati <laura.lazzati...@gmail.com> wrote: > > On Fri, Oct 26, 2018 at 7:00 AM Laura Lazzati > <laura.lazzati...@gmail.com> wrote: > > > > Hi! > > On Fri, Oct 26, 2018 at 2:59 AM Ricardo Wurmus <rek...@elephly.net> wrote: > > > > > > > > > Hi Laura, > > > > > > > BTW, I was trying to run guix pull, the one installed on top of my > > > > foreing distro - not the one in the guix environment - and I am > > > > getting this error, don't know why, I have already run guix pull > > > > before: > > > > :~/guix$ guix pull > > > > Migrating profile generations to '/var/guix/profiles/per-user/laura'... > > > > guix pull: error: symlink: File exists: > > > > "/var/guix/profiles/per-user/laura/current-guix-1-link" > > > > > > Could you please tell us what “guix --version” says? This might make it > > > easier for us to tell you how to get around this problem. > > > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. > > > > > > There was a recent change to the storage location of the profile used by > > > “guix pull”. It would previously be stored in the home directory and > > > has now been changed to be stored where other profiles are stored. > > Yes, I've been struggling a lot, all day long yesterday. > > > > Maybe all the steps shed some light > > I say one commit with: > > $git log | grep -C 10 pull: | less > > > > commit aa227b3be3d7728331a08dbd139c47c9b271dc23 > > Author: Ludovic Courtès <l...@gnu.org> > > Date: Fri Oct 12 16:43:18 2018 +0200 > > > > pull: Fix target of /var/guix/profiles/per-user/USER/current-guix. > > > > This is a followup to 8155a209071f981fbf359975f463be4bcf8fa23e. > > > > * guix/scripts/pull.scm (migrate-generations): Compute the right target > > for /var/guix/profiles/per-user/USER/current-guix. Previously we'd > > return "current-N-link" instead of "current-guix-N-link'. > > > > I removed the current path from PATH, and my guix pull -l was pointing > > at the commit from where my clone date was: > > $guix pull -l > > Generation 1 oct 25 2018 14:34:43 (current) > > guix 84f6a99 > > repository URL: https://git.savannah.gnu.org/git/guix.git > > branch: origin/master > > commit: 84f6a9907b91a1a2fdb5fe3fc4bab177b8734f95 > > > > and which guix showed > > /user/local/bin/guix > > > > but when guix pulling I was getting the same error, and strangely my > > git HEAD was ponting at that commit, even after doing git pull and > > having later commits shown with git log, not in chronogical order > > (commit 84f6a9907b91a1a2fdb5fe3fc4bab177b8734f95) > > > > It worked with sudo, as Thorsten Wilms mentioned (ran sudo guix pull) > > I have just checked that: > > $sudo guix pull -l > > guile: warning: failed to install locale > > hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' > > package and defining `GUIX_LOCPATH', along these lines: > > > > guix package -i glibc-utf8-locales > > export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" > > > > See the "Application Setup" section in the manual, for more info. > > > > > > Generation 1 Oct 17 2018 12:32:20 > > guix c4d6244 > > repository URL: https://git.savannah.gnu.org/git/guix.git > > branch: origin/master > > commit: c4d62443eb50a615d47b590a7fedcc7f7f0ec100 > > > > Generation 2 Oct 25 2018 17:39:44 > > guix 84f6a99 > > repository URL: https://git.savannah.gnu.org/git/guix.git > > branch: origin/master > > commit: 84f6a9907b91a1a2fdb5fe3fc4bab177b8734f95 > > > > Generation 3 Oct 26 2018 00:18:32 (current) > > guix 21c51eb > > repository URL: https://git.savannah.gnu.org/git/guix.git > > branch: origin/master > > commit: 21c51ebd66faa0b47f0be223d97c3a371346f54b > > but guix pull (without sudo), however, it shows the same error: > > $guix pull > > Migrating profile generations to '/var/guix/profiles/per-user/laura'... > > guix pull: error: symlink: File exists: > > "/var/guix/profiles/per-user/laura/current-guix-1-link" > > > > However, my current version: > > $guix --version > > guix (GNU Guix) 21c51ebd66faa0b47f0be223d97c3a371346f54b > > Copyright (C) 2018 the Guix authors > > License GPLv3+: GNU GPL version 3 or later > > <http://gnu.org/licenses/gpl.html> > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. > > > > and checked: > > $cd /usr/local/bin > > $ll | grep guix > > which happens to show > > guix -> /var/guix/profiles/per-user/root/guix-profile/bin/guix* > > (I see that it point to root, not my user, I guess that because of sudo) > > > > Any ideas? > Sorry, I have restored to the point in which I cloned the repo (and > had not worked yet on branch master): > which guix > /home/laura/.config/guix/current/bin/guix > > guix --version > guix (GNU Guix) c4d62443eb50a615d47b590a7fedcc7f7f0ec100 > Copyright (C) 2018 the Guix authors > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > git pulled > > But the same error with guix pull > > > > > > > > > > The error message seems to say that a migration to the new location had > > > already happened, so it shouldn’t attempt to do this again. > > > > > > -- > > > Ricardo > > > > > Regards! > > Laura