须藤:apt-get:找不到命令

iSi*_*ign 5 shell sudo command apt-get

我真的很难在终端周围找到我的头,我不断收到找不到命令的命令,我做错了什么?

我正在尝试使用本教程在 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
Run Code Online (Sandbox Code Playgroud)

可以请一些帮助我或给我一个选项来尝试调试。

谢谢

Pra*_*ams 8

apt-get适用于基于 Linux 的 Ubuntu 机器;对于 MAC,请尝试 apt-get 等效项,例如Brew


Pie*_*ave 1

您使用的是 linux debian 风格的系统吗?

如果您使用的是 Mac 操作系统(iMac 让我这么认为),您将无法使用 aptitude,因为 Mac 操作系统上根本不存在它。

我可以建议你去http://www.macports.org/这是一种相同的系统(但基于 Unix 端口)