Search code examples
windowsterminalcygwinsudo

sudo command not found on Cygwin


I am currently trying to install and update a few packages on a Windows OS. The only matter is that I am using Cygwin in order to type the commands through a terminal (as I'm aware, I can type in Linux type commands such as cd, ls etc. on Cygwin - I may be wrong). However, when I try to install a package like:

sudo apt-get install paparazzi-dev 

I get the reply:

-sh: sudo: command not found.

Does anyone have an idea as to how I can fix this problem?


Solution

  • Cygwin is not a full Linux distribution. Therefore you don't have sudo or the Debian/Ubuntu package manager apt-get. There is a number of packages available from the Cygwin repository: http://cygwin.com/packages/ You have to chose these packages during setup.