1

I have installed ubuntu and now I want to install flex. It asks for password but when I type my password, it asks me the password for root.

When I enter the password which I had specified during installation, it says, "Your authentication attempt was unsuccessful. Please try again."

Whether the password for root is locked or is it something else? The passwords I entered were correct.

I have also tried sudo su but it says, "Unable to change to sudoers gid :operation not permitted."

I have tried su also but when I enter the password it says, "Authentication failure".

Please help me out. I thought that maybe this is because the root user is locked by default. If so, how to recover from it? And if something else is the issue then what to do?

Bruno Pereira
  • 74,715

3 Answers3

3

The command you're looking for is sudo -s. You can also accomplish the same thing with sudo bash

su and sudo su doesn't work on Ubuntu for security reasons. It fails because the root user does not have a password, and those operations are you attempting to "log in" as user root

Freedom_Ben
  • 9,532
2

Press Ctrl+Alt+F1, then log in and run the following command:

sudo chown -R user:user /home/user/.*

Where user is your user name, for example qasim:qasim.

Find further help here:

dessert
  • 40,956
Qasim
  • 22,162
0

You can add a "#" before

/usr/bin/sudo Ux, 

in

/etc/apparmor.d/abstractions/launchpad-integration

and i also removed the "#" from

#include <tunables/global>
#include <abstractions/lightdm>
#include <abstractions/lightdm_chromium-browser>

in /etc/apparmor.d/lightdm-guest-session

but i don't know if all of this is necessary