From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: guix pull: error: symlink: File exists (was: Re: [outreachy] Further steps) Date: Thu, 25 Oct 2018 21:08:09 +0200 Message-ID: References: <20181024071635.29543fcf@alma-ubu> <877ei67mfq.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000080116a0579125365" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFkze-0001vP-E6 for guix-devel@gnu.org; Thu, 25 Oct 2018 15:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFkzc-0002EY-Gn for guix-devel@gnu.org; Thu, 25 Oct 2018 15:08:30 -0400 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:36743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFkzY-0002Am-N0 for guix-devel@gnu.org; Thu, 25 Oct 2018 15:08:25 -0400 Received: by mail-ot1-x32a.google.com with SMTP id x4so10213693otg.3 for ; Thu, 25 Oct 2018 12:08:21 -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: Thorsten Wilms , Laura Lazzati Cc: Guix-devel --00000000000080116a0579125365 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thorsten Wilms ezt =C3=ADrta (id=C5=91pont: 2018. okt. 25= ., Cs 20:06): > On 25/10/2018 16.55, Laura Lazzati wrote: > >>> 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" > >> It seems that something is mixed up between the old and new guix pull, > >> I hope someone can provide some more insight. Ludo? > > Yes please, I need to fix this before going on. > > Here is what happened, so that I provide the full information > > After having my patch approved, I ran git pull (on master branch, of > > course, I then created branches) > > I wanted to check that everything was fine, so I ran: > > :~/guix$ guix package -s "^r" | recsel -p name description| grep '\S' > > | sort >newR.txt > > And got the output: > > Command 'recsel' not found, but can be installed with: > > sudo apt install recutils > > (which is strange, I have played with recsel before sending my > > patches, when learning guix package command) > > so i ran guix package -I, where recutils was effectively installed > > However, I tried: > > $guix package -i recutils > > guix package: warning: Your Guix installation is 13 days old. > > guix package: warning: Consider running 'guix pull' followed by > > 'guix package -u' to get up-to-date packages and security updates. > > The package was installed after those warnings, and I was asked to > > export env variables: > > export PATH=3D"/home/laura/.guix-profile/bin${PATH:+:}$PATH" > > export > INFOPATH=3D"/home/laura/.guix-profile/share/info${INFOPATH:+:}$INFOPATH" > > Did so, but when running again: > > :~/guix$ guix package -s "^r" | recsel -p name description| grep '\S' > > | sort >newR.txt > > Got the output: > > recsel: error: cannot read file description > > And also got that error when running guix pull. > > Hi, this error happened here, too, also on a foreign distro, without any > extra steps. > > --- > Migrating profile generations to '/var/guix/profiles/per-user/thorwil'... > guix pull: error: symlink: File exists: > "/var/guix/profiles/per-user/thorwil/current-guix-1-link" > --- > > At the same time, a `sudo guix pull` works fine. > Thanks for this finding. > > -- > Thorsten Wilms > > thorwil's design for free software: > http://thorwil.wordpress.com/ > > --00000000000080116a0579125365 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


= Thorsten Wilms <t_w_@freenet.de&g= t; ezt =C3=ADrta (id=C5=91pont: 2018. okt. 25., Cs 20:06):
On 25/10/2018 16.55, Laura Lazzati wrote:
>>> BTW, I was trying to run guix pull, the one installed on top o= f my
>>> foreing distro - not the one in the guix environment - and I a= m
>>> getting this error, don't know why, I have already run gui= x pull
>>> before:
>>> :~/guix$ guix pull
>>> Migrating profile generations to '/var/guix/profiles/per-u= ser/laura'...
>>> guix pull: error: symlink: File exists:
>>> "/var/guix/profiles/per-user/laura/current-guix-1-link&qu= ot;
>> It seems that something is mixed up between the old and new guix p= ull,
>> I hope someone can provide some more insight. Ludo?
> Yes please, I need to fix this before going on.
> Here is what happened, so that I provide the full information
> After having my patch approved, I ran git pull (on master branch, of > course, I then created branches)
> I wanted to check that everything was fine, so I ran:
> :~/guix$ guix package -s "^r" | recsel -p name description| = grep '\S'
> | sort >newR.txt
> And got the output:
> Command 'recsel' not found, but can be installed with:
> sudo apt install recutils
> (which is strange, I have played with recsel before sending my
> patches, when learning guix package command)
> so i ran guix package -I, where recutils was effectively installed
> However, I tried:
> $guix package -i recutils
> guix package: warning: Your Guix installation is 13 days old.
> guix package: warning: Consider running 'guix pull' followed b= y
> 'guix package -u' to get up-to-date packages and security upda= tes.
> The package was installed after those warnings, and I was asked to
> export env variables:
> export PATH=3D"/home/laura/.guix-profile/bin${PATH:+:}$PATH"=
> export INFOPATH=3D"/home/laura/.guix-profile/share/info${INFOPATH= :+:}$INFOPATH"
> Did so, but when running again:
> :~/guix$ guix package -s "^r" | recsel -p name description| = grep '\S'
> | sort >newR.txt
> Got the output:
> recsel: error: cannot read file description
> And also got that error when running guix pull.

Hi, this error happened here, too, also on a foreign distro, without any extra steps.

---
Migrating profile generations to '/var/guix/profiles/per-user/thorwil&#= 39;...
guix pull: error: symlink: File exists:
"/var/guix/profiles/per-user/thorwil/current-guix-1-link"
---

At the same time, a `sudo guix pull` works fine.

Thanks for this finding.



--
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/

--00000000000080116a0579125365--