-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After removing 0.8.0 and installing 0.9.0, many nix profile
commands fail
#477
Comments
This adds a new `book/` directory containing an mdbook for `fuel.nix`. The new book will replace the README with a much friendlier "Quick Start", and a more searchablei and detailed guide covering how to install Nix, use fuel packages, and how to contribute to fuel.nix itself. TODO ---- - [x] Add a new "Quick Start" section with the new two-step installation approach. - [x] Merge existing README content into subchapters. - [x] Add a more detailed "Nix Setup" chapter for those interested in more details. - [x] Add a section on `nix profile install` for persistent installation to the "Packages" chapter. - [ ] Add a new "Contributing" section with details on how to add/update packages and milestones. - [ ] Update the README to simply point to the book and Quick Start. - [ ] Add a CI step to publish the book. - [ ] Open an issue to remove the **NOTE:** under the `nix profile install` section required due to DeterminateSystems/nix-installer#477.
This adds a new `book/` directory containing an mdbook for `fuel.nix`. The new book will replace the README with a much friendlier "Quick Start", and a more searchablei and detailed guide covering how to install Nix, use fuel packages, and how to contribute to fuel.nix itself. TODO ---- - [x] Add a new "Quick Start" section with the new two-step installation approach. - [x] Merge existing README content into subchapters. - [x] Add a more detailed "Nix Setup" chapter for those interested in more details. - [x] Add a section on `nix profile install` for persistent installation to the "Packages" chapter. - [ ] Add a new "Contributing" section with details on how to add/update packages and milestones. - [ ] Update the README to simply point to the book and Quick Start. - [ ] Add a CI step to publish the book. - [ ] Open an issue to remove the **NOTE:** under the `nix profile install` section required due to DeterminateSystems/nix-installer#477.
In theory Nix 2.15 should be making your Nix profile in |
I also ran into this problem yesterday, happy to help with any tests I can run on my end to help debug this. |
I'm going to do some more experimenting since we now have multiple reports! Thanks so much. Could you let me know if it was also on Ubuntu LTS? |
This was on Linux Mint 21.1, which is using the Ubuntu 22.04 LTS package base. |
Interesting, I noticed that I ran This time, I noticed that the installer didn't add any I tried running I checked I've been re-using this VM to |
Can confirm the same observation, uninstalling with v0.8.0, deleting |
Yup I can confirm this:
Now to decide how to deal with it... Short of scanning all users home directories for that file and removing it, I'm not sure how we'd repair it... |
nix profile
commands failnix profile
commands fail
This adds a new `book/` directory containing an mdbook for `fuel.nix`. The new book will replace the README with a much friendlier "Quick Start", and a more searchablei and detailed guide covering how to install Nix, use fuel packages, and how to contribute to fuel.nix itself. TODO ---- - [x] Add a new "Quick Start" section with the new two-step installation approach. - [x] Merge existing README content into subchapters. - [x] Add a more detailed "Nix Setup" chapter for those interested in more details. - [x] Add a section on `nix profile install` for persistent installation to the "Packages" chapter. - [ ] Add a new "Contributing" section with details on how to add/update packages and milestones. - [ ] Update the README to simply point to the book and Quick Start. - [ ] Add a CI step to publish the book. - [ ] Open an issue to remove the **NOTE:** under the `nix profile install` section required due to DeterminateSystems/nix-installer#477.
This adds a new `book/` directory containing an mdbook for `fuel.nix`. The new book will replace the README with a much friendlier "Quick Start", and a more searchablei and detailed guide covering how to install Nix, use fuel packages, and how to contribute to fuel.nix itself. TODO ---- - [x] Add a new "Quick Start" section with the new two-step installation approach. - [x] Merge existing README content into subchapters. - [x] Add a more detailed "Nix Setup" chapter for those interested in more details. - [x] Add a section on `nix profile install` for persistent installation to the "Packages" chapter. - [ ] Add a new "Contributing" section with details on how to add/update packages and milestones. - [ ] Update the README to simply point to the book and Quick Start. - [ ] Add a CI step to publish the book. - [ ] Open an issue to remove the **NOTE:** under the `nix profile install` section required due to DeterminateSystems/nix-installer#477.
This adds a new `book/` directory containing an mdbook for `fuel.nix`. The new book will replace the README with a much friendlier "Quick Start", and a more searchablei and detailed guide covering how to install Nix, use fuel packages, and how to contribute to fuel.nix itself. TODO ---- - [x] Add a new "Quick Start" section with the new two-step installation approach. - [x] Merge existing README content into subchapters. - [x] Add a more detailed "Nix Setup" chapter for those interested in more details. - [x] Add a section on `nix profile install` for persistent installation to the "Packages" chapter. - [ ] Add a new "Contributing" section with details on how to add/update packages and milestones. - [ ] Update the README to simply point to the book and Quick Start. - [ ] Add a CI step to publish the book. - [ ] Open an issue to remove the **NOTE:** under the `nix profile install` section required due to DeterminateSystems/nix-installer#477.
This adds a new `book/` directory containing an mdbook for `fuel.nix`. The new book will replace the README with a much friendlier "Quick Start", and a more searchable and detailed guide covering how to install Nix, use fuel packages, and how to contribute to fuel.nix itself. Closes #59. TODO ---- - [x] Add a new "Quick Start" section with the new two-step installation approach. - [x] Merge existing README content into subchapters. - [x] Add a more detailed "Nix Setup" chapter for those interested in more details. - [x] Add a section on `nix profile install` for persistent installation to the "Packages" chapter. - [x] Add a new "Contributing" section with details on how to add/update packages and milestones. - [x] Update the README to simply point to the book and Quick Start. - [x] Add a CI step to publish the book. - ~Open an issue to remove the **NOTE:** under the `nix profile install` section required due to DeterminateSystems/nix-installer#477.~ It seems this issue only occurs if a previous Nix installation existed but was not cleaned up properly. The `note` has been updated.
After chatting with @edolstra I think we might try to improve the error which |
I've also been running into this the last few months, the (very easy) workaround worked. Iirc a macos upgrade broke my nix install, so I reinstalled |
Hiya, I'm facing this issue but unsure how to fix. Any suggestions? Thanks!
|
I figured it out. I just needed to remove the old
|
Can confirm that this resolved the issue for me |
I'm testing the Nix installation flow (with
v0.9.0
) usingnix-installer
for a fresh Ubuntu LTS user in a VM. Here's the command used to install:curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/tag/v0.9.0 | sh -s -- install
After installation succeeds and a new terminal is opened, commands like
nix shell
andnix run
appear to work fine, however manynix profile
commands fail. E.g.Similarly,
nix profile upgrade
,nix profile rollback
,nix profile history
all give the same error.When inspecting the
/nix/var/nix/profiles/per-user/
directory, it appears that thenix-installer
only creates theroot
subdirectory, but no directory for the current user.Could it be the case that
nix-installer
does try to create this directory for the current user, but due to the required escalated privileges during installation, this user is alwaysroot
? Perhaps the fix is to add a subdirectory not only forroot
, but for$USER
as well?I tested this remedy by running the following:
where
mindtree
is the current user.Following this, the
nix profile
commands appeared to work without issue.The text was updated successfully, but these errors were encountered: