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

Clemens Tolboom ctolboom at home.nl
Wed Feb 15 10:42:54 CET 2006


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.

=============
?? means i don't remember
see attachment for full history
-------------
nix at earth:~$ nix-env -i nix
?? Ok
?? exit and enter
nix at earth:~$ nix-env --query
something about converting? berkeley db 
firefox
nix
nix at earth:~$ nix-env --uninstall nix
?? ok ??
nix at earth:~$ nix-env --query
?? unknown command .nix-profile/bin/nix-env ??
nix at earth:~$ exit

enter environment again
nix at earth:~$ nix-env --query
removing old Berkeley DB database environment...
error: DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
==============
I quess i upgraded the nix store bij installing nix

My new session upgraded the database

My removal of nix did ? what ?

Questions:
- Must a nix user be protected for such errs?
- What would be the troubleshooting solution to such a problem?

Regards,

Clemens

-------------- next part --------------
    1  ls
    2  ls -a
    3  find .
    4  less .mc/ini 
    5  ls
    6  rm -r .mc
    7  ls
    8  find .
    9  less .xmms/config 
   10  rm -r .xmms/
   11  find .
   12  less .qt/qjackctlrc 
   13  rm -r .qt/
   14  find .
   15  ls .gkrellm2/user-config 
   16  less .gkrellm2/user-config 
   17  rm -r .gkrellm2/
   18  find .
   19  vi .bashrc 
   20  ls -l
   21  find
   22  ls .nix-profile 
   23  ls -l .nix-profile 
   24  less /nix/etc/profile.d/nix.sh 
   25  path
   26  echo $PATH
   27  vi .bashrc 
   28  rm -r .nix-profile 
   29  echo $PATH
   30  nix-channel --add http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable
   31  nix-channel --update
   32  nix-env -qa
   33  nix-env -i hello firefox
   34  which hello
   35  which firefox
   36  firefox 
   37  which svn
   38  firefox 
   39  bg
   40  nix-prefetch-url http://belnet.dl.sourceforge.net/sourceforge/littlewizard/littlewizard-1.1.1.tar.gz
   41  ls
   42  vi default.nix
   43  vi default.nix
   44  find /nix -name "*-hello*"
   45  ls nix at earth:~$ nix-prefetch-url http://belnet.dl.sourceforge.net/sourceforge/littl                                                                            ewizard/littlewizard-1.1.1.tar.gz
   46    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
   47                                   Dload  Upload   Total   Spent    Left  Speed
   48  100  587k  100  587k    0     0  96549      0  0:00:06  0:00:06 --:--:--   97k
   49  hash is 8d8ddeae00061e04dcaa1c87fb573f42
   50  path is /nix/store/p348mjxa9hy3dka3w2a27bn0jkfvak2c-littlewizard-1.1.1.tar.gz
   51  8d8ddeae00061e04dcaa1c87fb573f42
   52  ls /nix/store/kcjzdg2jrb3agafr7bisjiiw5ldsxp5i-hello-2.1.1
   53  find /nix -name *.nix
   54  find /nix -name hello.nix
   55  find /nix -name hello
   56  ls /nix/store/kcjzdg2jrb3agafr7bisjiiw5ldsxp5i-hello-2.1.1
   57  ls /nix/store/wxr2gxcfcm4rnrh7l5xfvrgdqqhpb72b-channels/0/pkgs/applications/misc/hello
   58  ls /nix/store/wxr2gxcfcm4rnrh7l5xfvrgdqqhpb72b-channels/0/pkgs/applications/misc/hello/ex-1/
   59  cat /nix/store/wxr2gxcfcm4rnrh7l5xfvrgdqqhpb72b-channels/0/pkgs/applications/misc/hello/ex-1/ >> default.nix 
   60  vi default.nix 
   61  ls
   62  cat /nix/store/wxr2gxcfcm4rnrh7l5xfvrgdqqhpb72b-channels/0/pkgs/applications/misc/hello/ex-1/default.nix >> default.nix 
   63  vi default.nix 
   64  nix-env --version
   65  nix-env -qas
   66  nix-env -i nix
   67  ls
   68  ls -altr
   69  ls -l .nix-profile
   70  ls -l .nix-profile/
   71  ls -l .nix-profile/bin/
   72  ls -l .nix-profile/etc
   73  ls -l .nix-profile/etc/
   74  ls -l .nix-profile/etc/nix/
   75  ls .nix-profile/manifest 
   76  ls -l .nix-profile/manifest 
   77  less  .nix-profile/manifest 
   78  ls
   79  firefox 
   80  find .
   81  find .
   82  find .
   83  nix-env -e hello
   84  nix-env -qas
   85  nix-env subversion
   86  nix-env --install subversion
   87  nix-env --uninstall subversion
   88  nix-env -qas
   89  ls -l /nix/var/nix/profiles/
   90  niv-env --list
   91  niv-env --list-generations
   92  nix-env --list-generations
   93  nix-env --query
   94  nix-env --query
   95  nix-env --uninstall nix
   96  nix-env --query
   97  ls -la
   98  ls -la
   99  nix-env --query
  100  ls .nix-profile/bin
  101  pwd
  102  st
  103  set
  104  nix-env --uninstall nix
  105  nix-env --query
  106  history -100
  107  history 100
  108  history 100
  109  history 1000 > nix.log


More information about the nix-dev mailing list