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 trialWei-Ting Chen
7,632 Pointscan't execute the " sudo apt-get update"
when I entered the "sudo apt-get update", there was the result: "Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin/' is not included in the PATH environment variable. sudo: command not found " And idea? Thanks a lot!
Wei-Ting Chen
7,632 PointsWell I just follow the order from this lecture(https://teamtreehouse.com/library/console-foundations/installing-software/building-software-from-source) My PC environment is win 7 64bit,I'm using the launch console which Treehouse provided.
Thanks a lot!
1 Answer
Jeremy Woodbridge
25,278 PointsYou are using the Command Prompt. Commands like sudo are not recognized in command prompt but they are recognized in Linux/Unix Kernel Terminals with OS's such as MAC OSX and Ubuntu, Mint, ect. When Following with the lessons use the virtual console provided. It imitates the Linux console so the commands can be recognized.
Jeremy Woodbridge
25,278 PointsIf you are already using the virtual console, try restarting the console or going back to the home directory with the "cd" command. Best of luck
Marcus Parsons
15,719 PointsHe is using the virtual console, not Windows 7's command prompt, as he said above. This is obviously not the error.
Timothy Hooker
15,323 PointsTimothy Hooker
15,323 PointsWhat are you trying to update and what environment are you in?