须藤:apt-get:找不到命令 [英] sudo: apt-get: command not found

查看:65
本文介绍了须藤:apt-get:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很难理解终端,我不断收到找不到命令的命令,我做错了什么?

我正在尝试使用本教程在 mac 上安装 ruby​​.http://www.ruby-lang.org/en/downloads/>

但我不断收到错误 sudo: apt-get: command not found

Ben-Easts-iMac:~ Ben$ sudo用法:sudo [-n] -h |-K |-k |-L |-V |-v用法:sudo -l[l] [-AnS] [-g 组名|#gid] [-U 用户名] [-u 用户名|#uid][-g 组名|#gid] [命令]用法:sudo [-AbEHnPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u用户名|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] []用法:sudo -e [-AnS] [-C fd] [-g groupname|#gid] [-p prompt] [-u用户名|#uid] 文件...Ben-Easts-iMac:~ Ben$ sudo apt-get install ruby​​1.9.1-full密码:须藤:apt-get:找不到命令Ben-Easts-iMac:~ Ben$ sudo apt-get install ruby​​-full须藤:apt-get:找不到命令Ben-Easts-iMac:~ Ben$ sudo apt-get install ruby​​-full须藤:apt-get:找不到命令Ben-Easts-iMac:~ Ben$ sudo find/-name "apt-get" -print查找:/dev/fd/3:不是目录查找:/dev/fd/4:不是目录sudo which apt-get

有人可以帮助我或给我一个选项来尝试调试.

谢谢

解决方案

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

I am really struggling to get my head around terminal i keep getting commands not found what am i doing wrong?

I am trying to install ruby on the mac using this tutorial. http://www.ruby-lang.org/en/downloads/

but i keep getting the error 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

Can some please help me or give me an option to try to debug.

thanks

解决方案

apt-get is suitable for Linux based Ubuntu machines; for MAC, try apt-get equivalent such as Brew

这篇关于须藤:apt-get:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆