Avatar of ostraaten
ostraaten
 asked on

Sudo not working?

When I try 'sudo get-apt' update I get the error command not found. Why is this not working? I can do 'su root' and exe the command, is this basically the same thing? I am sort of used to sudo, so I rather have support for that.
Linux DistributionsLinuxVMware

Avatar of undefined
Last Comment
ostraaten

8/22/2022 - Mon
Aditya Milan

try
whereis sudo
to check if it exists somewhere in your system
if it is there, check its location. it must be in your path environment
Tintin

What is the *exact* error you get?

There's no such command as get-apt on Debian (unless you've written your own), so try

sudo apt-get update
ostraaten

ASKER
whereis sudo returns 'sudo:'

This means it could not be found?

Sorry, I did try apt-get not apt-get, that is a typo.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Tintin

apt-get won't be in your PATH.  Either add it to your PATH or specify the full path (/usr/sbin/apt-get from memory)
ostraaten

ASKER
I think there is a problem with this version of Debian I am using.

So sudo doesn't work. There is a lot of information on the internet saying that I need to use 'visudo' to add a user to the sudoers list. This is also not part of my distro.

whereis sudo rerturns nil
but whereis visudo also returns nill.

I think it is just an ordinary  Debian Etch netinstall version but I downloaded it as an VMWare image. The person who created it, must have removed those utilities?

Or is just not part of Debian Etch. Not really 'etchy' :(
ASKER CERTIFIED SOLUTION
MentorJay

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ostraaten

ASKER
The exact command was 'apt-get install sudo'. After this install I could run 'visudo' and add my user to sudoers list.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.