After fresh installation of ubuntu on my server it comes pre-installed with snaps that besides being useless are also blocking the shutdown of the device.
sudo rm -rf /var/cache/snapd/
sudo apt autoremove --purge snapd gnome-software-plugin-snap
rm -fr ~/snap
sudo apt-mark hold snapd
Thx