This question already has an answer here:
Trying to reset password. At
root@ubuntu:~#, I enter
passwd username and press enter. I then get
Enter new UNIX password:.
At this point I can not use the keyboard to enter anything. If I press Enter I get
Retype new UNIX password. Again the only key that works is the Enter key.
How do I reset my forgotten password?