sudo: apt: command not found [closed]

My current command line results:

localhost / # whoami
root
localhost / # pwd
/
localhost / # sl
bash: sl: command not found
localhost / # sudo apt install sl
sudo: apt: command not found
localhost / #

I tried to run sl command, but I got this error message.

bash: sl: command not found. 

I tried to run sudo apt install sl but I got this error message:

sudo: apt: command not found.
5

1 Answer

Since you're root, you should not use sudo in your command. Sudo is a way of temporarily giving yourself root permissions, which you don't need in this scenario since you're already root. Just try apt install sl.

If that doesn't work, I would need more details to fix this.

1

You Might Also Like