[Nix-dev] command-not-found can't open db
shea at shealevy.com
shea at shealevy.com
Wed May 15 14:38:44 CEST 2013
Hi Malcolm,
Currently command-not-found (and other NixOS bits, like the default
setting for NIX_PATH or nixos-rebuild --upgrade) assume that you have
the nixos channel in root's profile, as only root should have permission
to register manifests or add binary caches. So for the command-not-found
feature to work, you'll need to add the nixos-unstable channel as root.
Cheers,
Shea
On 2013-05-15 03:21, Malcolm Matalka wrote:
> I did a manual upgrade to the latest version of NixOS and Nix a month
> or
> so ago, and just realized that command-not-found doesn't work for me.
> So I ran it manually (command-not-found whois) and I get the
> following
> error. I'm not sure if my manual upgrade didn't set it up properly:
>
> $ command-not-found whois
> DBI
>
> connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...)
> failed: unable to open database file at
> /run/current-system/sw/bin/command-not-found line 12.
> cannot open database
> `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite'
> at
> /run/current-system/sw/bin/command-not-found line 12.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list