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

Help with issues regarding installation of Debian

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

Postby lkraemer » 2017-12-05 00:30

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.
lkraemer
 
Posts: 175
Joined: 2011-02-09 05:02

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

Postby sunrat » 2017-12-05 00:41

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!
User avatar
sunrat
 
Posts: 2057
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

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

Postby lkraemer » 2017-12-05 00:45

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: 175
Joined: 2011-02-09 05:02

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

Postby lkraemer » 2017-12-05 01:02

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
lkraemer
 
Posts: 175
Joined: 2011-02-09 05:02


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable