【发布时间】:2020-07-04 15:54:06
【问题描述】:
我真的很难理解终端我不断收到未找到的命令我做错了什么?
我正在尝试使用本教程在 Mac 上安装 ruby。 http://www.ruby-lang.org/en/downloads/
但我不断收到错误 sudo: apt-get: command not found
Ben-Easts-iMac:~ Ben$ sudo
usage: sudo [-n] -h | -K | -k | -L | -V | -v
usage: sudo -l[l] [-AnS] [-g groupname|#gid] [-U username] [-u username|#uid]
[-g groupname|#gid] [command]
usage: sudo [-AbEHnPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u
username|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AnS] [-C fd] [-g groupname|#gid] [-p prompt] [-u
username|#uid] file ...
Ben-Easts-iMac:~ Ben$ sudo apt-get install ruby1.9.1-full
Password:
sudo: apt-get: command not found
Ben-Easts-iMac:~ Ben$ sudo apt-get install ruby-full
sudo: apt-get: command not found
Ben-Easts-iMac:~ Ben$ sudo apt-get install ruby-full
sudo: apt-get: command not found
Ben-Easts-iMac:~ Ben$ sudo find / -name "apt-get" -print
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
sudo which apt-get
能否请一些人帮助我或给我一个尝试调试的选项。
谢谢
【问题讨论】:
-
我正在使用 imac,我查看了 macports,但它似乎只有 dmgs 用于作为传统平台的 Snow Leopard、Leopard 和 Tiger 的“dmg”磁盘映像,这些可以工作吗?
标签: shell command sudo apt-get