DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 2 million installs.
GNU Lesser General Public License v2.1
2.09k stars 52 forks source link

uninstall failure on SteamDeck #806

Open mykiwi opened 9 months ago

mykiwi commented 9 months ago

Error

Error: 
   0: Reading receipt
   1: No such file or directory (os error 2)

Metadata

key value
version 0.15.1
os linux
arch x86_64

For more details, I'm on SteamDeck (version 3.5.8) and here is what I tried:

$ ./nix-installer uninstall
info: downloading installer https://install.determinate.systems/nix/tag/v0.15.1/nix-installer-x86_64-linux
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
Error: 
   0: Reading receipt
   1: No such file or directory (os error 2)

Location:
   src/cli/subcommand/uninstall.rs:113

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

(same error with sudo)

Hoverbear commented 8 months ago

Hmmm does /nix exist with contents?

If not (if it's just a folder), does /home/nix exist? If so you can likely do a bind mount:

mount --bind /home/nix /nix
mykiwi commented 8 months ago

Sorry, I can't help you reproduce the error since I have fix the nix setup by hand

Hoverbear commented 8 months ago

How did you fix it?

mykiwi commented 8 months ago

I followed this article https://christitus.com/steamdeck-as-a-desktop/