From: vapnik spaknik via <help-guix@gnu.org>
To: help-guix@gnu.org, Pierre Neidhardt <mail@ambrevar.xyz>
Subject: Re: profile symlink structure
Date: Mon, 25 May 2020 17:14:40 +0000 (UTC) [thread overview]
Message-ID: <1738531847.4528400.1590426880237@mail.yahoo.com> (raw)
In-Reply-To: <87lflgphk4.fsf@ambrevar.xyz>
> On Monday, May 25, 2020, 09:03:44 AM GMT+1, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
> vapnik spaknik <vapniks@yahoo.com> writes:
>> In my case that directory only contains symlinks to /var/guix/profiles/per-user/*/current-guix* symlinks, one of which is missing (/var/guix/profiles/per-user/root/current-guix-1-link), and there is another link to ~/.config/guix/current-1-link which itself links directly to a profile in /gnu/store
>>
>> I suspect that the previously mentioned anomalies are the reason why "guix pull" fails for me with the following error when run as <USR>:
>>
>>> guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/<USR>/current-guix-1-link"
>>
>> and which may have been caused by interrupting a "guix pull".
>
> The symlinking operations should be atomic, thus this can not happen.
> I suspect that your error is due to calling `sudo guix pull`.
OK, so I checked the manual again, and found out that I'm supposed to run `sudo -i guix pull`, not `sudo guix pull` or `guix pull`. I've was trying both of the latter two commands which would explain the unnecessary /var/guix/profiles/per-user/ben/current-guix* symlinks (due to `guix pull`) and /root/.config/guix/* symlinks (due to `sudo guix pull`).
Running `sudo -i guix pull` it seems to work.
next prev parent reply other threads:[~2020-05-25 17:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <981904032.4122292.1590333823170.ref@mail.yahoo.com>
2020-05-24 15:23 ` profile symlink structure vapnik spaknik
2020-05-25 8:03 ` Pierre Neidhardt
2020-05-25 17:14 ` vapnik spaknik via [this message]
2020-05-26 7:22 ` Pierre Neidhardt
2020-05-25 22:04 ` vapnik spaknik via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1738531847.4528400.1590426880237@mail.yahoo.com \
--to=help-guix@gnu.org \
--cc=mail@ambrevar.xyz \
--cc=vapniks@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).