unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Gabriel Wicki <gabriel@erlikon.ch>
To: help-guix@gnu.org
Subject: `guix pull` fails after fresh install
Date: Sun, 18 Jul 2021 23:13:48 +0200	[thread overview]
Message-ID: <20210718211348.xbrcvjzzou77m3g4@knurd> (raw)

Hello Guix Community!


I ran into an issue after freshly installing Guix System.  When logged in
as a normal user, `guix pull` printed the following output:

Migrating profile generations to '/var/guix/profiles/per-user/user'...
guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/user/current-guix"


`guix pull` was invoked before by root, but guix has not been called by the
unprivileged user before.


$ ls -l /var/guix/profiles/per-user/user/
total 0
lrwxrwxrwx 1 user users 19 Jul 18 22:13 current-guix -> current-guix-0-link
lrwxrwxrwx 1 user users 19 Jul 18 22:43 guix-profile -> guix-profile-2-link
lrwxrwxrwx 1 user users 51 Jul 18 22:23 guix-profile-1-link -> /gnu/store/skvmv3zpzd06pj0jq57m0xjvx0hdjnkr-profile
lrwxrwxrwx 1 user users 51 Jul 18 22:43 guix-profile-2-link -> /gnu/store/mzn60p0kd8kiwdj9qqan73664yn6b0s0-profile
-rw-r--r-- 1 user users  0 Jul 18 22:40 guix-profile.lock


I tried:

 * guix gc
 * guix gc -R
 * guix gc --referrers
 * guix gc --verify
 * guix gc --verify=repair

but to no avail.


Should I just delete current-guix?  Link it to my current profile?  Or the
system's profile?


Thanks in advance for your advice,

Gabriel


             reply	other threads:[~2021-07-18 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-18 21:13 Gabriel Wicki [this message]
2021-08-19 22:56 ` `guix pull` fails after fresh install Gabriel Wicki
2021-08-19 23:00   ` Gabriel Wicki

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=20210718211348.xbrcvjzzou77m3g4@knurd \
    --to=gabriel@erlikon.ch \
    --cc=help-guix@gnu.org \
    /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).