This question already has an answer here:
I've set up my user account so that no password is required to login and I need to install some updates. However when prompted for the password, it says authentication failed if I leave the box blank. I don't have a password, how am I supposed to authenticate?
I tried the method in Reset lost administrative(root) password but it came out with an error:
Authentication token manipulation error password unchanged. What does this mean?