[Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

rohit yadav rohityadav at utexas.edu
Mon Feb 20 05:18:50 CET 2017


On Sun, Feb 19, 2017 at 10:08 PM, James Cook <james.cook at utoronto.ca> wrote:

> On 19 February 2017 at 23:51, rohit yadav <rohityadav at utexas.edu> wrote:
> > Hi,
> >
> > I am trying to upgrade a nixos machine on GCE created from the old
> tempalted
> > 14.12. I am unable to do so. I receive following error:
> >
> > [root at localhost:~]# nixos-rebuild switch
> > building Nix...
> > error: syntax error, unexpected $undefined, expecting '"', at
> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
> lib/sources.nix":52:49
> > (use ‘--show-trace’ to show detailed location information)
> > error: syntax error, unexpected $undefined, expecting '"', at
> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
> lib/sources.nix":52:49
> > (use ‘--show-trace’ to show detailed location information)
> > error: evaluation aborted with the following error message: ‘This
> version of
> > Nixpkgs requires Nix >= 1.10, please upgrade! See
> > https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_
> evaluate_Nixpkgs’
> > error: getting status of ‘/root/@nix_x86_64_linux@’: No such file or
> > directory
> > warning: don't know how to get latest Nix
> > building the system configuration...
> > error: syntax error, unexpected $undefined, expecting '"', at
> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
> lib/sources.nix":52:49
> > (use ‘--show-trace’ to show detailed location information)
> >
> > Note: I have already upgrade nix to 1.11 even then it continues to
> complain
> > about it.
> >
> > Thanks,
> > Rohit
>
> Strange... just to confirm, what does "nix-env --version" show when
> you run it as root?
>
​As I mentioned earlier, the version is 1.11.6.
[root at localhost:~]# nix-env --version
nix-env (Nix) 1.11.6

Thanks,
Rohit
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170219/8b27ecf6/attachment.html>


More information about the nix-dev mailing list