How to fix 'sudo apt-get command not found' on Mac?

preview_player
Показать описание
Video showing how to fix "sudo apt-get command not found" on Mac.

Рекомендации по теме
Комментарии
Автор

Often, this error occurs because the system directory has been deleted or modified. However, the most common reason for this error is an issue with $PATH.
To find the value of your PATH variable type the following command into the terminal:
echo $PATH

To set $PATH to the default Mac OS path use the following command:
export

This should be all that’s needed to fix the “sudo: command not found” error.

RwithSimon
Автор

I has the same issue too.. I follow the video but still has error "sudo command not found" when I run " sudo systemctl stop docker"

liengphuto
Автор

this is not apt-get this is port bro. You didn't fix anything.

geileschnecke
Автор

now the problem is.... port command not found :(

rijithraj
Автор

Hi, I have type "sudo port selfupdate" after installing macports but it says sudo command not found.
Is there anything that I can do?

azmylle