sudo: apt-get: command not found
57,835
Solution 1
apt-get
is suitable for Linux based Ubuntu machines; for MAC, try apt-get equivalent such as Brew
Solution 2
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)
Author by
iSimpleDesign
Updated on July 05, 2022Comments
-
iSimpleDesign about 2 years
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