Cannot Run Sudo After Mac Sierra Upgrade
The problem was fixed by restarting the MacBook Pro.

However, when I first executed the restart, the system hung with a black screen. I then forced the power off (by keeping pressed the power button for several seconds), then turned it on.  Then it worked.