So whenever I try to use sudo commands on my Ubuntu 20.04 on my laptop(I have a partition for Ubuntu) and I am asked to type password ,even though I type in correct password I get a notification saying "sorry that didn't work,please try again"
Asked
Active
Viewed 399 times
0
-
This means that you type a wrong password. – Pilot6 Jan 27 '23 at 19:12
-
Is there anyway to change it? – Moon Jan 27 '23 at 19:26
-
tried it didn't work. – Moon Jan 27 '23 at 19:31
-
initially I couldn't even login to my account but now I can but can't use sudo commands – Moon Jan 27 '23 at 19:33
1 Answers
0
You most likely have the wrong password. Assuming your installation is quite fresh, and you haven't modified it a lot, I would recommend wiping the partition and re-installing it. Alternativly, if you do not want to do that you can look at this answer: How do I reset a lost administrative password?
User1986
- 321
-
This answer is basically a duplicate of this comment to the main question which was posted before you posted this answer. – karel Feb 17 '23 at 00:36