Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMatthew King
2,477 PointsI am not able to install git as shown in the video. When I type "sudo apt-get install git". I get a long error message.
I am not able to install git as shown in the video. When I type "sudo apt-get install git". I get a long error message saying:
Command 'sudo is available in 'user/bin/sudo' The command could not be located because 'usr/bin/ is not included in the PATH environment variable.
2 Answers
David Ker
14,439 PointsWhat operating system are you using? Or are you using the workspaces?
If you're on a Mac, the apt-get
command doesn't work. apt-get
is for Linux machines, such as Ubuntu.
Jon Baum
13,863 PointsAssuming you are using Linux, the problem is occurring because the PATH environment variable lacks the /usr/bin directory. The following command should be able to clear that up:
prompt> PATH=/usr/bin:$PATH
Admittedly, this will mean that /usr/bin is the first directory that is searched for executables, however it is unlikely to be an issue unless you download clashing versions of programs that are installed in different directories (a different topic for a different day). Cheers