Giovanni Biscuolo <[email protected]> writes:

> gbiscuolo@guixsdtest:~$ guix pull
> Migrating profile generations to '/var/guix/profiles/per-user/gbiscuolo'...
> guix pull: error: symlink: File exists: 
> "/var/guix/profiles/per-user/gbiscuolo/current-guix-1-link"
>
> please how can I fix this?

The failure message seems to indicate Guix failed while executing the
migrate-generations procedure (defined in guix/scripts/pull.scm).

Do symlinks like the following still exist on your system?

  ~/.config/guix/current-1-link
  ~/.config/guix/current-2-link
  ~/.config/guix/current-3-link
  ...

If so, you may be able to simply delete the following symlinks and then
run "guix pull" again:

/var/guix/profiles/per-user/gbiscuolo/current-guix-1-link
/var/guix/profiles/per-user/gbiscuolo/current-guix-2-link
/var/guix/profiles/per-user/gbiscuolo/current-guix-3-link
...
/var/guix/profiles/per-user/gbiscuolo/current

Of course, before deleting anything, please be sure to record each of
the symlinks, their permissions, and their targets so that you can undo
the deletion if necessary.  Please be careful when deleting.

If all goes well, when you run "guix pull", Guix should automatically
migrate your profile generations successfully into the
/var/guix/profiles/per-user/gbiscuolo directory.  After that, you won't
have to worry about it again (for the gbiscuolo user, at least).

> [1] maybe I mede some error using "sudo guix..." instead of the recommended 
> "sudo -E guix..."

That could be.  Hopefully my suggestion will help!

-- 
Chris

Attachment: signature.asc
Description: PGP signature

Reply via email to