I am using Ubuntu 22.04 LTS.
I had previously tried installing nix via a different method and saw no direct issues with nix other than possibly some paths not being properly included for my end-goal (which is use of the software nain4 found here: GitHub - jacg/nain4: An API that makes it easier to write Geant4 application code.). At least nix commands functioned.
I tried to uninstall because I did not initially follow the specific software package instructions for a nix installation (tried below) and wanted to start fresh.
I then followed the multi-user removal instructions found here:
sudo systemctl stop nix-daemon.service
sudo systemctl disable nix-daemon.socket nix-daemon.service
sudo systemctl daemon-reload
sudo rm -rf /etc/nix /etc/profile.d/nix.sh /etc/tmpfiles.d/nix-daemon.conf /nix ~root/.nix-channels ~root/.nix-defexpr ~root/.nix-profile
for i in $(seq 1 32); do
sudo userdel nixbld$i
sudo groupdel nixbld
then removing references to nix in:
Rebooted, then re-installed nix with the bash command (just following instructions here):
curl --proto ‘=https’ --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s – install
This successfully completed with no warnings, errors, or input from me.
However, usage of any nix command in a new terminal, such as:
Segmentation fault (core dumped)
I have no idea if I missed something in the initial nix removal that is now causing a conflict? Are there further nix dependencies outside of those listed in the removal instructions that I need to remove before the determinate installation stops looking for things that may not exist?
EDIT: at this point this error seems to be true for any nix binary installer, not just the determinate systems one