[Nix-dev] No such file or directory

Tomasz Kontusz tomasz.kontusz at gmail.com
Thu Sep 10 07:26:37 CEST 2015


It looks a bit like a filesystem corruption - make sure to run fsck on it (or scrub it, if it's btrfs)

Dnia 10 września 2015 01:31:20 CEST, Arseniy Seroka <ars.seroka at gmail.com> napisał(a):
>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
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>nix-dev mailing list
>nix-dev at lists.science.uu.nl
>http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Wysłane za pomocą K-9 Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150910/966cadae/attachment.html 


More information about the nix-dev mailing list