The error message 'sudo: apt-get: command not found' typically occurs on non-Debian based Linux distributions or macOS, where the apt-get package manager is not available.

If you are using a Debian-based distribution (e.g., Ubuntu), it is possible that the apt-get package manager is not installed or has been removed. In this case, you can try to install it using the following command:

sudo apt install apt

If you are using a non-Debian based distribution, such as Fedora or CentOS, you will need to use a different package manager. For example, on Fedora, you can use the dnf package manager:

sudo dnf install package-name

On macOS, you can use the Homebrew package manager:

brew install package-name

Replace 'package-name' with the name of the package you want to install.

Fix 'sudo: apt-get: command not found' Error on Linux and macOS

原文地址: https://www.cveoy.top/t/topic/qnCR 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录