I tried to install sudo with apt install sudo
but it won't work. I got these errors:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
I am always required to give root access whenever i want to open some files in the terminal but i can't do that without sudo
type -a sudo
? – Kulfy Jun 23 '20 at 17:14sudo
installled all the time? How would you get root access and privileges without it? – Ollie Jun 23 '20 at 17:17apt install
run without sudo.Insteed, try
– B. du Garay Jun 23 '20 at 17:20sudo apt install cowsay
. Sudo gives the root rights temporarely so you can install cowsay. Without sudo, you can't install any packagesudo
is always packaged with Ubuntu, and according to my experience, also in current versions of Debian, but there are Linux distros, where it is not packaged with the default installations. - But you might remove it by mistake, and that would cause problems in Ubuntu. I guess you can boot in recovery mode (and run as root), and then install `sudo'. – sudodus Jun 23 '20 at 17:23root
account is the default one. And yessudo
isn't installed there. – Kulfy Jun 24 '20 at 05:04