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"
-
This means that you type a wrong password.– Pilot6Jan 27, 2023 at 19:12
-
Is there anyway to change it?– MoonJan 27, 2023 at 19:26
-
tried it didn't work.– MoonJan 27, 2023 at 19:31
-
initially I couldn't even login to my account but now I can but can't use sudo commands– MoonJan 27, 2023 at 19:33
Add a comment
|
1 Answer
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?
-
This answer is basically a duplicate of this comment to the main question which was posted before you posted this answer.– karelFeb 17, 2023 at 0:36