Fix Ubuntu very long shutdown
2022-01-21
The problem is caused by snap daemon which takes long time to stop.
The workaround is to decrease timeout for stopping services.
sudo $EDITOR /etc/systemd/system.conf
Change line #DefaultTimeoutStopSec=90s
to DefaultTimeoutStopSec=10s
Save file and do daemon reload:
sudo systemctl daemon-reload