Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] - sudo not working - Debian 9.2.1 I386 - XFCE

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
lkraemer
Posts: 209
Joined: 2011-02-09 05:02
Been thanked: 4 times

[SOLVED] - sudo not working - Debian 9.2.1 I386 - XFCE

#1 Post by lkraemer »

I'm a long time user of Debian, and I'm installing Debian 9.2.1 I386 (32 Bit) with XFCE Desktop. My 500 GB Drive has:
/ 30GB
/home/larry 465GB
/swap 5.1GB
The install goes fine until I start trying to update & upgrade the install using sudo. I've edited the /etc/sudoers file with nano to remove the #

Code: Select all

#%sudo    ALL=(ALL:ALL) ALL
I've also tried removing the # from

Code: Select all

#includedir /etc/suoders.d

but that didn't help either.

groups larry shows:
larry : larry dialout cdrom floppy sudo audio dip video plugdev netdev scanner bluetooth lp lpadmin vboxusers
I can use su - to get to root. I know what the root and user passwords are.

What is going on with the sudo command? And how do I get it functional.

Thanks.

Larry
Last edited by lkraemer on 2017-12-05 01:04, edited 3 times in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: sudo not working - Debian 9.2.1 I386 - XFCE - ISO

#2 Post by sunrat »

Do you get an error message? What command are you trying to run?
You can just use su to run root commands anyway.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

lkraemer
Posts: 209
Joined: 2011-02-09 05:02
Been thanked: 4 times

Re: sudo not working - Debian 9.2.1 I386 - XFCE - ISO

#3 Post by lkraemer »

I issue the command:

Code: Select all

sudo apt-get update
and the error message I get is:
bash: sudo: command not found
I use sudo on version 8.2 and it all works fine there. But, something seems to be missing on 9.2.1.

Larry

lkraemer
Posts: 209
Joined: 2011-02-09 05:02
Been thanked: 4 times

Re: sudo not working - Debian 9.2.1 I386 - XFCE - ISO

#4 Post by lkraemer »

OK, I finally found what the problem was. I needed to install the sudo package to get it functional.
I was comparing with my 8.x install and it finally dawned on me that the package wasn't installed.

I did:

Code: Select all

$su -
#apt-get update
#apt-get install sudo
#apt-get autoremove
and now sudo functions properly.

Thanks.

Larry

Post Reply