Troubleshooting installation
If you run into problems installing Flox, this page will help you diagnose what went wrong and find a solution.
Finding install logs
The first step in debugging a failed installation is to find the install logs. The location depends on your operating system.
macOS
The macOS system installer logs to /var/log/install.log.
To watch log output in real time while running the Flox installer,
open a separate terminal window and run:
Then start the Flox installation in another window. The log will show detailed output from each phase of the installation, including any errors in pre-install or post-install scripts.
Tip
The install log can be thousands of lines long.
Search for error, fail, or flox to find relevant entries.
Linux
On Linux the Flox installer writes a log file to /tmp with a timestamped
filename:
For example:
List matching files to find it:
Previous Nix installation
The most common cause of a failed Flox installation is
a previous Nix installation on the system.
In some cases the Flox installer may report success
but fail to actually install the flox binary.
Symptoms
- The installer completes without errors,
but
flox --versionreturns "command not found." - The post-install script exits early because it detects an existing Nix configuration.
Diagnosis
Check whether a previous Nix installation is present:
If either of these exist and were not created by Flox, a previous Nix installation is likely interfering.
Solution: remove the previous Nix installation
You will need to remove the previous Nix installation before installing Flox.
If Nix was installed with the Determinate Nix Installer, run:
Then re-run the Flox installer.
For Nix installations that were not made with the Determinate Nix Installer, follow the official Nix uninstall instructions for your platform.
Then re-run the Flox installer.
Info
The Flox installer performs some opinionated configuration of Nix. See the "Replacing an existing Nix installation" section on the Install page for details on what changes are made.
Orphaned Nix build users (macOS)
On macOS, a previous Nix installation may have created system users
named _nixbld1 through _nixbld32.
If these users were not fully removed during uninstallation,
the Flox installer's post-install script can fail because it expects to create
these users with specific UIDs.
This is particularly common with Nix installations that are two or more years old (prior to macOS 15). See NixOS/nix#10892 for background.
Symptoms
The install log (/var/log/install.log) contains an error like:
Solution
Remove the orphaned build users and then re-install Flox.
-
Delete the orphaned build users:
-
If the
/nixAPFS volume is still mounted, remove it: -
Re-install Flox following the instructions on the Install page.
Homebrew uninstall did not fully clean up (macOS)
If you previously installed Flox via Homebrew and the uninstallation did not
complete cleanly (for example, the /nix volume could not be unmounted),
you may need to force a full cleanup before re-installing.
Solution
After rebooting, re-install Flox following the instructions on the Install page.
Reporting issues
If your issue is not covered here, please report it on Flox Discourse with:
- Your operating system and version
- The installation method you used (Pkg, Homebrew, Debian, RPM, etc.)
- The full install log output (see Finding install logs above)
- Any error messages you encountered