A quick web search turned up this. I ran both commands w/o any problems. "You should run systemctl status console-setup.service as per suggestion to have a look at the problem."
You may need to execute sudo dpkg-reconfigure keyboard-configuration" Reference - https://askubuntu.com/questions/800871/failed-console-keymap
