sudo: inaccessible or not found
时间: 2023-09-21 07:09:19 浏览: 290
The "sudo: inaccessible or not found" error message usually appears when the "sudo" command is not installed or cannot be found in the system path.
To resolve this issue, you can try installing the sudo package using your system's package manager. For example, on Ubuntu or Debian, you can use the following command:
```
sudo apt-get install sudo
```
If the sudo package is already installed, you may need to add its location to the system path. You can do this by editing the /etc/environment file and adding the following line:
```
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin/sudo
```
Save the changes and then restart your terminal session to apply them.
阅读全文