When trying to switch to root using sudo su :
Error- sudo is not installed
When trying to switch with su
command:
Error- this program is not installed
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
Results of /usr/bin/sudo
:
/usr/bin/sudo bash: /usr/bin/sudo: No such file or directory
cat /etc/os-release
– Yaron Jan 22 '19 at 15:32/usr/bin/sudo
and report what it says? – Charles Green Jan 22 '19 at 15:38sudo
package - in which case see Can sudo be reinstalled after being removed? – steeldriver Jan 22 '19 at 15:40/bin/su
? Ifsu
is missing, I'd say the install is probably hosed in other respects as well... If su is available, it's basically a duplicate of this, and you can install sudo after setting root password. – vidarlo Jan 22 '19 at 16:55pkexec apt-get install sudo
– Boba Fit Jan 22 '19 at 22:43