Can i install and run programs from inside chroot directory?

New to Debian (Or Linux in general)? Ask your questions here!

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

Postby pcalvert » 2020-02-15 00:16

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
“Property is the fruit of labor; property is desirable; it is a positive good
in the world. That some should be rich shows that others may become
rich, and hence is just encouragement to industry and enterprise.”
— Abraham Lincoln
pcalvert
 
Posts: 1881
Joined: 2006-04-21 11:19
Location: Sol Sector

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

Postby emil_21 » 2020-02-15 17:27

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
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

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

Postby pcalvert » 2020-02-16 11:54

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
“Property is the fruit of labor; property is desirable; it is a positive good
in the world. That some should be rich shows that others may become
rich, and hence is just encouragement to industry and enterprise.”
— Abraham Lincoln
pcalvert
 
Posts: 1881
Joined: 2006-04-21 11:19
Location: Sol Sector

Previous

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable