[Nix-dev] No such file or directory

Arseniy Seroka ars.seroka at gmail.com
Thu Sep 10 01:31:20 CEST 2015


I don't know that happened but the solution is:
```
cd /nix/var/nix/profiles/per-user/root
rm -rf channels
cp -r channel-<last_number>-link channel # please note, that `ln` did't work
nixos-rebuild switch
```

2015-09-10 2:15 GMT+03:00 Arseniy Seroka <ars.seroka at gmail.com>:

> Hello!
> I've just tried to use any nixos (and nix) command and got:
> ```
> > nix-env -q
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/P���� �P�b�
> ’: No such file or directory
> > sudo nixos-rebuild switch
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/��$�� � �h�
> ’: No such file or directory
> building Nix...
> error: reading from file: Is a directory
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/0��s� �5mq
> ’: No such file or directory
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/ �Sn� ��c��
> ’: No such file or directory
> /tmp/nixos-rebuild.D4PZ5o/nix
> �� ’: No such file or directoryvar/nix/profiles/per-user/root/P���� �@
> building the system configuration...
> error: getting status of ‘/nix/var/nix/profiles/per-user/root/�Yw� �����
> ’: No such file or directory
> ```
> Did `sudo nix-store --verify --check-contents --repair` and everything is
> ok.
> My nixos.version is `16.03pre68239.bd84eba (Dingo).`
>
> What's that? And how to fix it?
> Yesterday I could make a rebuild successfully..
>
> --
> Sincerely,
> Arseniy Seroka
>



-- 
Sincerely,
Arseniy Seroka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150910/fe42be8e/attachment.html 


More information about the nix-dev mailing list