sudo: apt-get: command not found
时间: 2023-09-03 18:09:28 浏览: 159
This error message indicates that the "apt-get" command is not found in the system. This command is used to manage packages in Debian-based Linux distributions, such as Ubuntu.
There are several reasons why this error might occur. One possibility is that the system does not have the apt package manager installed. Another possibility is that the command is not in the user's PATH environment variable.
To fix this error, try installing the apt package manager by running the following command:
```
sudo apt install apt
```
If the command is still not found after installing apt, try adding the path to the command to the PATH environment variable by editing the .bashrc file:
```
echo 'export PATH="/usr/sbin:$PATH"' >> ~/.bashrc
```
Then, run the following command to update the .bashrc file:
```
source ~/.bashrc
```
After doing this, the apt-get command should be available in the system.
阅读全文