[Nix-dev] Upgrading NixOS with sudo results in some error
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Mon Jul 21 22:43:33 CEST 2014
On 07/21/2014 04:43 AM, Roger Qiu wrote:
> Hello,
>
> When I try running:
>
> ``
> sudo nixos-rebuild switch --upgrade
> ```
>
> I get this message:
>
> ```
> /run/current-system/sw/bin/nix-channel: unable to check
> `https://nixos.org/channels/nixos-14.04'
> ```
>
> What does that mean? And how can I fix it?
>
> It only happens when I use sudo with it. I cannot use the normal user
> because of permission problems, so I end up have to switch to root user
> and running it for it to succeed. But even as root, if I prefix the
> command with `sudo` it still fails with that problem.
>
> Thanks,
> Roger
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
While the other e-mails are workarounds, [1] is the actual issue in
question in case you're interested why the problem occurs.
[1]: https://github.com/NixOS/nixpkgs/pull/2688
--
Mateusz K.
More information about the nix-dev
mailing list