[Nix-dev] Cannot upgrade old NixOS

Aristid Breitkreuz aristidb at gmail.com
Sun Aug 4 16:36:40 CEST 2013


You could try upgrading to a somewhat older version of NixOS first...
Am 04.08.2013 16:34 schrieb "Daniel Hlynskyi" <abcz2.uprola at gmail.com>:

> > The feature isn't used too much yet, so I suggest to comment out the
> > offending lines in <nixpkgs>/pkgs/top-level/all-packages.nix (until you
> > switch to upgraded version).
>
> Thanks. That helped a bit. Now I have a problem:
>
> error: `This version on Nixpkgs requires Nix >= 1.2, please upgrade`
>
> Is it possible to recover from this point?
> I tried `nix-env -u nix` - error stays.
>
>
>
> 2013/8/4 Daniel Hlynskyi <abcz2.uprola at gmail.com>
>
>> I have trouble to do upgrade NixOS. What is the easiest way to solve this
>> problem? Do I need to reinstall NixOS from scratch?
>>
>> [root at localhosted:/var/log]# nixos-rebuild build --upgrade
>> fetching list of Nix archives at `
>> http://nixos.org/releases/nixos/nixos-13.07pre4909_b32ef4d-2238a23/MANIFEST.bz2'.
>> ..
>>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>>  Current
>>                                  Dload  Upload   Total   Spent    Left
>>  Speed
>> 100 2446k  100 2446k    0     0   804k      0  0:00:03  0:00:03 --:--:--
>>  829k
>> caching /nix/store/d8xb9p7i8yda09j0f2w06ar2c674kd7w-MANIFEST.bz2...
>> downloading Nix expressions from `
>> http://nixos.org/releases/nixos/nixos-13.07pre4909_b32ef4d-2238a23/nixexprs.tar.bz2'.
>> ..
>>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>>  Current
>>                                  Dload  Upload   Total   Spent    Left
>>  Speed
>> 100 4153k  100 4153k    0     0   939k      0  0:00:04  0:00:04 --:--:--
>> 1007k
>> unpacking channels...
>> created 1 symlinks in user environment
>> building Nix...
>> error: syntax error, unexpected $undefined, expecting '.' or '=', at
>> `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/top-level/all-packages.nix:207:6'
>> (use `--show-trace' to show detailed location information)
>> error: syntax error, unexpected $undefined, expecting '.' or '=', at
>> `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/top-level/all-packages.nix:207:6'
>> (use `--show-trace' to show detailed location information)
>> error: syntax error, unexpected $undefined, expecting '.' or '=', at
>> `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/top-level/all-packages.nix:207:6'
>> (use `--show-trace' to show detailed location information)
>>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130804/c1306e90/attachment.html 


More information about the nix-dev mailing list