sudo命令在Cygwin上找不到 [英] sudo command not found on Cygwin
问题描述
我目前正尝试在Windows操作系统上安装和更新几个软件包。唯一的问题是,我使用Cygwin为了通过终端输入命令(我知道,我可以键入Linux类型的命令,如cd,ls等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
我得到回复:
-sh: sudo: command not found.
有没有人知道我该如何解决这个问题?
Does anyone have an idea as to how I can fix this problem?
推荐答案
Cygwin不是一个完整的Linux发行版。因此,你没有sudo或Debian / Ubuntu包管理器apt-get。 Cygwin存储库提供了一些软件包: http://cygwin.com/packages/
您必须在安装过程中选择了这些软件包。
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.
这篇关于sudo命令在Cygwin上找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!