I haven't used sudo on a command in a while, and recently when I tried to do this the password was wrong. This is read off of a post it note on my desk and has always worked for me before. I followed instructions online to reset the password. From the command prompt:
>wsl -u root>passwd <username>passwd: user 'username' does not existIf I try getent passwd in the command prompt I don't see the username listed. However if I try getent passwd in the WSL ubuntu window the user is the last one listed. Obviously I can't use passwd in the WSL window because then it asks for the previous password. I have seen people need to reset their password OR not have a user exist, but I haven't seen someone deal with both yet. Any suggestions? Any reason why a password would stop working?