Ubuntu 16.04 won't power off: poweroff.target is disabled

Ubuntu 16.04 won't power off. When I go to the icon at the top right of the screen and click shutdown, it does not shutdown. I ran shutdown -h now and this is what I got:

tanner@tanner-x151x:~$ shutdown -h now
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to start poweroff target: Interactive authentication required.
See system logs and 'systemctl status poweroff.target' for details. 
Failed to open /dev/initctl: Permission denied 
Failed to talk to init daemon. 
tanner@tanner-x151x:~$ sudo shutdown -h now 
[sudo] password for tanner: 
Failed to start poweroff target: Transaction is destructive. 
5ee system logs and 'systemctl status poweroff.target' for details.
tanner@tanner-x151x:~$ sudo halt now
Too many arguments. 
tanner@tanner-x151x:~$ systemctl status poweroff.target
  poweroff.target - Power-off
   Loaded: loaded (/lib/systemd/system/poweroff.target; disabled; vendor preset:
   Active: inactive (dead) 
   Docs: man:systemd.special(7)

I have no idea why this is happening or how to fix this. Any help would be appreciated.


It's a bit brutal, but you can try:

sudo poweroff -f

Answer credit belongs here: https://askubuntu.com/a/788559/580637


The issue should be solved by entering this command to enable the systemd service of "poweroff.target":

systemctl enable poweroff.target