Public bug reported: Here's a log of my attempt to install nix-bin on Ubuntu 22.04:
$ sudo apt install nix-bin Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: keyutils libsubtitleeditor0 libwpe-1.0-1 libwpebackend-fdo-1.0-1 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: nix-setup-systemd The following NEW packages will be installed: nix-bin nix-setup-systemd 0 upgraded, 2 newly installed, 0 to remove and 25 not upgraded. Need to get 3272 kB of archives. After this operation, 12,9 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://pt.archive.ubuntu.com/ubuntu jammy/universe amd64 nix-bin amd64 2.6.0+dfsg-3 [3267 kB] Get:2 http://pt.archive.ubuntu.com/ubuntu jammy/universe amd64 nix-setup-systemd all 2.6.0+dfsg-3 [5344 B] Fetched 3272 kB in 2s (2035 kB/s) Selecting previously unselected package nix-bin. (Reading database ... 296024 files and directories currently installed.) Preparing to unpack .../nix-bin_2.6.0+dfsg-3_amd64.deb ... Unpacking nix-bin (2.6.0+dfsg-3) ... Selecting previously unselected package nix-setup-systemd. Preparing to unpack .../nix-setup-systemd_2.6.0+dfsg-3_all.deb ... Unpacking nix-setup-systemd (2.6.0+dfsg-3) ... Setting up nix-bin (2.6.0+dfsg-3) ... Setting up nix-setup-systemd (2.6.0+dfsg-3) ... Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142. Processing triggers for man-db (2.10.2-1) ... $ Notice the error: "Could not execute systemctl: at /usr/bin/deb- systemd-invoke line 142." I think that might be the cause to the later failure to be able to use nix, for eg.: $ nix-shell error: getting status of /nix/var/nix/daemon-socket/socket: Permission denied ** Affects: nix (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2100677 Title: nix-bin does not install correctly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nix/+bug/2100677/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs