- Views: 107
- Report Article
- Articles
- Computers
- Operating Systems
How to Fix ‘sudo apt-get command not found’ on Mac
Posted: Aug 02, 2019
Some Debian use dpkg packaging system which offers programs and apps for the installation procedure. With this packing system, users do not have to build apps from any source codes. The tool which is compulsory for the interaction with the packing system is Apt. But certain times, the APT tool will not work well on your Mac and will show the ‘sudo apt-get command not found’ error. To fix this error, go through the methods mentioned below.
Here’s How to Fix ‘sudo apt-get command not found’ on Mac
- Install Homebrew on your Mac
- Keep pressing on the Command and Space keys together.
- Go to the Spotlight option.
- Enter Terminal in the search bar.
- Click on the Enter option.
- Firstly, you have to start installing the Xcode command-line tool by going through the below-mentioned command:
xcode-select –install
6. Once you have installed the Xcode tool, start typing and copying the below-mentioned command for installing Homebrew on your Mac:
Ruby -e "$(curl -fsSL)"
- Now, you will get the installation window, which indicates the Return key and also the password for verification.
- Now, you will find the installation successful text.
- After that, use the Homebrew, enter the below-mentioned command for installing the package which you wish to install on the system:
brew install name
10. You need to use the brew command for installing the package on the computer.
- Install MacPorts in Your Mac
- Go to the App Store.
- It is located on the Dock folder.
- Enter the Xcode in the text field.
- Press on the Get and install the Xcode option.
- You need to wait for a few minutes for installing the Xcode.
- Accept the terms and conditions of installing the Xcode.
- It will open the app from the App Store or Dock.
- Press on the Agree option.
- Enter the below-mentioned command in Terminal to accept the terms and conditions.
- Keep pressing on the Cmd and Space key are given on the system keyboard.
- Enter the Terminal in the search bar.
- Enter the below-mentioned command for installing the Xcode command-line tool:
xcode-select –install
- Start downloading the MacPorts.
- Once you have completed the downloading process, go to the downloaded file.
- Start installing the program by completing the installation procedure.
- Enter the password in case it is compulsory.
- After completing the installation procedure, start the Terminal again and enter the below-mentioned command:
sudo port selfupdate
18. Start installing the package by going through the command mentioned below:
sudo port install name
Source:- http://gonortonnorton.com/how-to-fix-sudo-apt-get-command-not-found-on-mac/
Mia Davis is a creative person who has been writing blogs and articles about cybersecurity. She writes about the latest updates regarding norton.com/setup and how it can improve the work experience of users. Her articles have been published in many popular e-magazines, blogs, and websites.
How to Take Screenshot of a Full Page on Google Chrome