Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can i install and run programs from inside chroot directory?

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: Can i install and run programs from inside chroot direct

#31 Post by pcalvert »

emil_21 wrote: I execute the command but still get 'command not found' when i try to execute nix-env.
Did you try logging out after you installed it?

If that doesn't help, what is the output of these commands?:

Code: Select all

ls -al ~/.nix-profile
ls -al /nix
Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

emil_21
Posts: 98
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

#32 Post by emil_21 »

This is the output:

Code: Select all

lrwxrwxrwx 1 user user 42 фев 13 10:39 /home/user/.nix-profile -> /nix/var/nix/profiles/per-user/user/profile

Code: Select all

drwxr-xr-x  4 user  root 4096 фев 13 10:39 .
drwxr-xr-x 19 root root 4096 фев 13 10:39 ..
drwxr-xr-x 35 user  user  4096 фев 13 10:39 store
drwxr-xr-x  4 user  user  4096 фев 13 10:39 var

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: Can i install and run programs from inside chroot direct

#33 Post by pcalvert »

I'm not sure what the problem is, but it's possible that Nix doesn't properly install itself on Debian. Or maybe the installation instructions are incomplete.

I found a possible clue, though:
At this stage, nix is properly installed on your system, but some extra configuration is required, especially to activate the “profiles” feature.
I found that here: Working with profiles : create several user environments


Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

Post Reply