-2

I am getting this message when I try to use sudo:

sudo: PERM_ROOT: setresuid(0, -1, 0): Operation not permitted
sudo: unable to open /var/lib/sudo/jp2nyy/pid2: Operation not supported
sudo: PERM_ROOT: setresuid(0, -1, 0): Operation not permitted
sudo: setuid(0): Operation not permitted
sudo: unable to set supplementary group IDs: Operation not permitted

This problem started after I installed jasper with:

sudo apt-get install jasper

I'm using Ubuntu Bash for Windows.

Edit

As per comments below chown/chmod may have been run on files in /usr or /var.

18
  • 3
    What were doing before this issue start? Dec 22, 2016 at 7:35
  • 2
    The only google hits I can find for this error message relate to ldap and/or pam configuration - have you made changes to either? Dec 22, 2016 at 13:53
  • 1
    This looks like you did chown/chmod on files in /usr or /var
    – muru
    Dec 23, 2016 at 5:26
  • 1
    @user3550783 if that's what you did, simplest way is reinstalling: askubuntu.com/questions/43621/…
    – muru
    Dec 23, 2016 at 6:16
  • 1
    Are you using Ubuntu or other Ubuntu derivative?
    – Anwar
    Dec 23, 2016 at 6:25

1 Answer 1

0

When I had errors (possibly similar to yours) using sudo in Ubuntu Bash on Windows, I found that using sudo -S seemed to work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .