[Nix-dev] FATAL: caused by sequence: nix-env --install nix ; nix-env --uninstall nix?

Eelco Dolstra eelco at cs.uu.nl
Wed Feb 15 11:13:49 CET 2006


Hi Clemens,

On Wed, 15 Feb 2006 10:42:54 +0100
Clemens Tolboom <ctolboom at home.nl> wrote:

> Hi there,
> 
> probably doing the wrong things i was forced to start all over again.
> 
> Doing the quick start thus having the nixpkgs-unstable i just tried to
> install nix on a nix-0.9.2-1.i386.rpm installation.

nix-0.10pre uses a slightly different database schema, as well as a new
version of Berkeley DB.  It automatically upgrades the database, but
after that it is not possible to go back.  The dangers of using
pre-releases ;-)  Fortunately, 0.10pre is quite stable so there's not
really a problem in using it.

To get back to nix-0.10pre (which you uninstalled), try to find in an old
generation of the profile and reinstall it, e.g.,

  $ /nix/var/nix/profiles/default-NUMBER-link/bin/nix-env -i nix

(Actually, nix-env --rollback should also work since it doesn't touch the
database, I think.)

Or just install a 0.10pre RPM from http://nix.cs.uu.nl/dist/nix.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list