From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laura Lazzati Subject: Re: [outreachy] Further steps Date: Fri, 26 Oct 2018 07:31:03 -0300 Message-ID: References: <20181024071635.29543fcf@alma-ubu> <877ei67mfq.fsf@elephly.net> <878t2l5jwj.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFzQ3-00021R-JF for guix-devel@gnu.org; Fri, 26 Oct 2018 06:32:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFzQ1-0001bj-Ka for guix-devel@gnu.org; Fri, 26 Oct 2018 06:32:43 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:40213) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFzQ1-0000ep-5J for guix-devel@gnu.org; Fri, 26 Oct 2018 06:32:41 -0400 Received: by mail-pf1-x42d.google.com with SMTP id g21-v6so325765pfi.7 for ; Fri, 26 Oct 2018 03:31:41 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: rekado@elephly.net Cc: Guix-devel , Ricardo Wurmus On Fri, Oct 26, 2018 at 7:00 AM Laura Lazzati wrote: > > Hi! > On Fri, Oct 26, 2018 at 2:59 AM Ricardo Wurmus 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 =E2=80=9Cguix --version=E2=80=9D says? T= his 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 b= y > > =E2=80=9Cguix pull=E2=80=9D. 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=C3=A8s > 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 targ= et > 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=3D"$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 > 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 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=E2=80=99t attempt to do this again. > > > > -- > > Ricardo > > > Regards! > Laura