I can reproduce the bug. cups-browsed hangs on shutdown when CUPS is not running any more. One can simply do
sudo systemctl stop cups and after some seconds sudo systemctl stop cups-browsed with the shutdown of cups-browsed hanging. Problem is that during shutdown cups-browsed accesses CUPS to remove print queues and save option settings. Solution is to modify systemd *.service files to assure that on shutdown cups-browsed shuts down before CUPS. ** Changed in: cups (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to cups in Ubuntu. https://bugs.launchpad.net/bugs/1579905 Title: cups-browsed causes shutdown hang/delay in Ubuntu 16.04 Status in cups package in Ubuntu: Triaged Bug description: Using the debug process found here https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1464917 I have determined that the cause of my 16.04 install's shutdown hang is cups- browsed. It was the only process running when I did a systemctl list- jobs in the VT9 shell. If I do sudo service cups-browsed stop and then shutdown, I do not get a hang. I have confirmed this on a virtual machine and a real system. If I disable cups-browsed from ever starting, my problem is fixed. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1579905/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp