How to Fix the “sudo Password Not Working” Error on Linux
Sometimes, your Linux system may throw an incorrect password error even after typing in the correct sudo password. This can be both surprising and annoying when you’re trying to get stuff done.
Let’s look at a few quick fixes you can try when your correct sudo password does not work on Linux.

1. Log Out and Log Into a New Session
Restarting your Linux systemis one of the most popular and easy solutions to fixing any temporary system glitches. The sudo password not working error is, in the best case scenario, just a temporary glitch within Linux that should be magically fixed by simply doing a quick logout-login or a system reboot.
You can manually log out and log back into your Linux system either using thelogoutcommand or by using the corresponding buttons on the desktop environment you’re running.

In case that doesn’t work for you, simply perform a reboot by typingreboot. Still not fixed? Move on to the next solution!
2. Change the sudo Password From a Virtual Console Session
If the first, and easiest solution did not quite do the job for you, you can try resetting the sudo password for the user from aLinux virtual console session. Here are the steps to follow:
That’s all the steps required to fix the correct sudo password not working for your user. Your problem should now be fixed. In case the issue persists, try the last solution.

3. Restart the systemd-homed Service
systemd-homed is a core systemd service responsible for providing support to the home directories of users. Restarting it may fix the issue because it resets the authentication mechanism and potentially fixes any temporary system glitches.
Here are the steps to restart the systemd-homed service:

That’s all the steps required to start and restart the systemd-homed service. This should finally fix the sudo password not working issue for you.
Fixing the “sudo Password Not Working” Error
Although it’s an annoying issue, it’s quite easy to resolve. Either of the three provided solutions is bound to fix the sudo password not working problem.
If you still can’t seem to get it working or, often have to deal with sudo’s time-consuming and work-disrupting antics, it might be time to switch to a better alternative.

For those who don’t fancy sudo and find it bloated, there are several sudo alternatives you can try instead.
Anyone with more than a passing interest in motorsports must see these films.
Don’t let aging hardware force you into buying expensive upgrades.
Who asked for these upgrades?
Turn these settings on, and your iPhone will be so much better than before.
Your iPhone forgets what you copy, but this shortcut makes it remember everything.