Run the following command in a Terminal
sudo visudo Scroll down to the line that looks like this
Defaults env_reset ->Defaults env_reset,pwfeedback
Ctrl+X , Y , entersource : https://askubuntu.com/questions/412292/enable-password-asterisks-when-run-command-sudo/412293