Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sudo: apt-get: command not found

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

like image 560
iSimpleDesign Avatar asked Mar 08 '11 10:03

iSimpleDesign


2 Answers

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

like image 67
Prashanth Sams Avatar answered Sep 25 '22 06:09

Prashanth Sams


are you using a linux debian flavored system ?

if you are on Mac OS (iMac make me think so), you will not be able to use aptitude as it simply doesnt exist on Mac os.

may I advice you to go to http://www.macports.org/ which is kind of the same system (but based on Unix port)

like image 39
Pierre Lacave Avatar answered Sep 25 '22 06:09

Pierre Lacave