Skip to content

opening lock file '/nix/var/nix/profiles/per-user/root/home-manager.lock': No such file or directory #3734

@emils0

Description

@emils0

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

When installing home-manager on a non-NixOS Linux Distro, I am encountering an error during installation.

$ nix-shell '<home-manager>' -A install

Creating initial Home Manager generation...

/nix/store/sgbp7cxbaclil0jchnrswqhjdsp5bfv7-home-manager-generation
Starting Home Manager activation
error: opening lock file '/nix/var/nix/profiles/per-user/root/home-manager.lock': No such file or directory
Uh oh, the installation failed! Please create an issue at

    https://github.com/nix-community/home-manager/issues

if the error seems to be the fault of Home Manager.

This fails consistently, and I have attempted to install it on multiple distros inside of WSL, including Ubuntu, Debian, and Arch.

A friend of mine is also experiencing this exact issue, but he's running Fedora on bare-metal, so this does not seem to be exclusively happening on WSL.

I have also tried installing home-manager on both multi-user Nix installs, and single-user, but the result is the same.

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 5.10.16.3-microsoft-standard-WSL2, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.14.1`
 - nixpkgs: `/root/.nix-defexpr/channels/nixpkgs`

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions