0

When trying to install anything, the authentication popup has an error message instead of the password box and trying to chown the usr folder back to root gives me the following error in the terminal:

helena@helena-PC:/$ sudo chown -R root:root /usr
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
helena@helena-PC:/$

Trying to follow the instructions is this link: How to solve this error `sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set` without reinstalling ubuntu?

Resulted in this:

helena@helena-PC:/$ ls -l /usr/bin/sudo
-rwxrwxrwx 1 helena root 149080 set 23 11:59 /usr/bin/sudo
helena@helena-PC:/$ pkexec bash
pkexec must be setuid root
helena@helena-PC:/$ sudo pkexec bash
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
helena@helena-PC:/$ chown -R root:root /usr/bin/sudo
chown: changing ownership of '/usr/bin/sudo': Operation not permitted
helena@helena-PC:/$ sudo chown -R root:root /usr/bin/sudo
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
helena@helena-PC:/$ 

What can I do about this stupid mistake?

Rinzwind
  • 299,756
ICP8
  • 1
  • 1
    Try pkexec bash without the sudo. – Jos Nov 10 '20 at 08:09
  • 1
    Changing permissions of system files in bulk in the wrong place can only be fully resolved by reinstalling the system. – vanadium Nov 10 '20 at 10:01
  • Yeah. Ended up reinstalling everything in the end. Sorry for taking so long to replay, I forgot I had posted this here.

    Edit: how can I close this since I don't require an answer to that particular problem anymore?

    – ICP8 Nov 29 '20 at 19:35

0 Answers0