How do I install guix on 21.04

How do I install guix on 21.04? After "apt-get install guix" I cannot run guix pull

guix pull: error: failed to connect to `/var/guix/daemon-socket/socket': No such file or directory

It seems that directory is not created. The binary installation page on the guix site describes some steps that don't seem to have been performed with the apt install while others have.

I can't find any documentation in the installation that describes additional installation instructions.

edit: the output of service status guix-daemon

 guix-daemon.service: Failed to locate executable /var/guix/profiles/per-user/root/current-guix/bin/guix-daemon: No such file or directory

edit: Solved: There was an old guix-daemon systemd file in /etc/ from a previous manual binary installation. Deleted it and systemctl daemon-reload; systemctl restart guix-daemon fixed it.

4

1 Answer

If you encounter a similar issue, this should be the solution below (as solved by OP themself):

It is probably caused by an old guix-daemon systemd file in /etc/ from a previous manual binary installation.

  • Delete this file (the old guix-daemon systemd file).

  • Run the following commands on your terminal to reload daemon and restart guix-daemon:

    $ systemctl daemon-reload
    $ systemctl restart guix-daemon

Everything should be OK now.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like