nix upgrade-nix failed to update on a profile lock file issue. #1054
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1054
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
When using the
nix upgrade-nixfrom 1.93 to 1.94 as a user, it failed to apply the change to the profile. It failed on trying to remove the Lix 1.93 package from the profile, specifically it failed to open the profile lock in/nix/var/nix/profile/default, with a permissions error.I have lost the original logs, I did not save them and I have worked around the issue by running the upgrade as root:
I have not tried to reproduce this in a VM yet but was asked to make the issue when I brought it up in the Matrix chat. I'll see if I can get around to trying to reproduce.
Steps To Reproduce
nix upgrade-nixExpected behavior
It should have worked!
nix --versionoutputLost it after I worked around the issue :(, upgrading from 1.93 -> 1.94 though.
Additional context
Ubuntu 22.04
Lix was installed through the online installer.
There is a chance I installed NixCpp first, then uninstalled it to replace with lix. I don't know if this is true.