The shutdown process in Ubuntu 18.04 or Ubuntu 19.10 machine sometimes is really slow. It gets stuck at purple screen with Ubuntu logo and the dots for quite a few seconds.
Press F2 on keyboard when shutting down Ubuntu. It prompts that ‘A stop job is running for Snappy Daemon’ with a timer (1min 30s) at the end.
It is obviously an issue stopping the snappy daemon. I DON’T know how to fix the problem unless removing all snap applications and the daemon.
A workaround to this problem is to reduce this timeout, from 90s down to for example 10s.
1. Open terminal (Ctrl+Alt+T) and run command to edit the /etc/systemd/system.conf
file.
sudo gedit /etc/systemd/system.conf
When the file opens, change the line #DefaultTimeoutStopSec=90s to DefaultTimeoutStopSec=10s and save it.
2. Then either reboot or run command to reload the systemd daemon.
systemctl daemon-reload
Done.