DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.
https://determinate.systems
GNU Lesser General Public License v2.1
2.21k stars 57 forks source link

The volume "Nix Store" on disk3s7 couldn't be unmounted because it is in use by process 0 (kernel) #1267

Open NXTaar opened 4 days ago

NXTaar commented 4 days ago

Error

Error: 
   0: Error reverting
   0: Action `create_or_merge_nix_config` errored
      Remove file `/etc/nix/nix.conf`

      Action `create_apfs_volume` errored
      Failed to execute command with status 1 `"/usr/sbin/diskutil" "apfs" "deleteVolume" "Nix Store"`, stdout: Started APFS operation
      Deleting APFS Volume from its APFS Container
      Unmounting disk3s7
      The volume "Nix Store" on disk3s7 couldn't be unmounted because it is in use by process 0 (kernel)

      stderr: Error: -69888: Couldn't unmount disk

Metadata

key value
version 0.20.2
os macos
arch aarch64
cole-h commented 3 days ago

If you reboot and rerun the uninstaller, I think it will be able to complete the uninstall. This happens sometimes, unfortunately, and right now there's nothing we can do except say "reboot and try again".

(If you do try again, it will probably error on all the other things it already cleaned up, but it should be able to clean up the volume at that point)