If you typed your password wrong too many times you may have been locked out for a certain amount of time (normally 30 mins after 3 wrong attempts). In this situation sudo will not display a different error it will still say the password is wrong. You can clear the failed attempts using the command "faillock --reset". Hopefully that solves it if not check your caps lock, and keyboard layout.
this post was submitted on 25 Dec 2023
2 points (100.0% liked)
Ubuntu Linux
1444 readers
1 users here now
Linux for Human Beings.
Ubuntu is a popular Linux operating system for PC / mobile devices, etc.
Developed by Canonical & based on Debian (another older Linux OS) which is known for it's rock solid stability.
Ubuntu is trusted everywhere computing by professionals and common users alike.
founded 4 years ago
MODERATORS
Are you sure you are inputting the right password? For instance, are you sure your keyboard layout is correct? If the keyboard layout is different, you may think you type one thing but type another.
It is also possible that you have simply misspelled the password during setup. A reinstall is the only way to fix that I think.