After a clean install of Ubuntu 16.04 LTS, I am experiencing very slow shutdowns compared with 15.10. There seems to be one of two processes that hang upon shutdown. Startup is not affected at all. When pressing (esc) the following are shown. Either:
"Stopping thermal daemon services" hangs, or "A stop job is running for remote CUPS printers available locally", before a timer to 1 min 30 seconds is up, after which the machine finally shuts down.
Are there any other people experiencing this? This is most odd. What could be the reasons behind these two hangs?
I found that the daemon responsible for the CUPS remote printers is the cups-browsed service.
When shutting down, it has a time out of 1m 30s. Stopping this service causes the shutdown process to take only few seconds.
I disabled it using this command line on Ubuntu GNOME 16.04:
And my shutdown process ends in a few seconds.
I got the idea from this Ask Ubuntu answer
If you depend on network printers, you could simply make systemd a bit more aggressive in stopping the process. By default, it waits up to 1m30s before forcefully shutting things down, but you can just do
and enter
to set the timeout down to 10. Then a
should make it take effect (or restart your computer).
This works great for me at least.
EDIT: According to Xiaodong Qi's answer, cups-filters 1.11.4 has a fix for this, so upgrading past 17.04 Zesty (which has cups-filters 1.13.4) should be the simplest fix, though as commenters point out this workaround may still be needed :(
I have got the same Problem. It occurred after clean install Ubuntu 16.04. Finally I figured out, after lots of troubleshooting, that (after disable the Ubuntu boot splash screen) a certain stop-job was running that made the shutdown slow. (Thanks to Alex!) Then I got this error report:
Then I tried this:
To verify:
and it finally worked! Shutdown was now as good and fast as ever. (You can find this troubleshooting on: "The Annoying Cups Browsed" at the ec-cwang´s Blog!)
This might be important for those this solution is not helpful: How to find out your running stop jobs, just look up: "How do I disable the boot splash screen" on Ask Ubuntu. Then, if you start Ubuntu you get the typical Linux running command signs. If you shut Ubuntu down, mention the output. It shows you at the end what kind of stop job slows down your shutdown procedure.
I had a similar problem. After checking everything, I found out that if uncheck "enable wireless" (right button on wifi icon), and restart, it takes 5 seconds. If i leave wireless active shutdown takes about 1 minute.
I have a USB wifi adapter TP-LINK. Hope it helps you.
Almost identical problem after clean update from 15.10. I have finetuned different programs/properties including made an attemmpt installing my wifi cup printer. Most seems to work, but shutdown takes more then 3 minutes. Pressing f12 shows end endless textloop: OK Start showing plymouth reboot screen OK Stopped thermal daemon service. Can I somehow get a log of the shutdown proces? 2: SOLVED. After installing the printer correctly everything works.
I experienced a similar issue. Turned out to be caused by Private Internet Access client. I had enabled "Start application at login". After disabling this feature, shutdown is almost instant.
Up until now, this bug should be fixed upon the recent release of the
CUPS-filters
(v1.11.4+) package related to two issues ofCUPS
--this one and this one. It requires to installCUPS-filters
version 1.11.4-1 or above according to this discussion. However, it requiresCUPS
version 2.2.0+, and in fact the workingCUPS-filters
andCUPS-core
versions haven't been released in the Ubuntu 16.04 repository so far. If you are still having this issue, you might want to try downloading the corresponding CUPS-filters and its dependencies (includinglibcups2
,cups-ipp-utils
and others) from the Zesty's repository (for example, with this version) and install the downloadeddeb
packages using thedpkg
command like:I am only giving command lines as a template for you to install the dependencies and the
CUPS-filters
deb packages. Feel free to download the package from elsewhere with a different version (has to be ~>1.11.4 forCUPS-filters
). You may find you would need to install a lot of other dependencies and fix the incompatibility problems with the corresponding i386 and amd64 versions of those packages in your case. You should download packages with the same version number for all dependent packages. For instance, all cups related packages as linked should be chosen to have the same version number 2.2.2-1ubuntu1 or otherwise. Then those related binary packages should be downloaded from the Binary Packages section from the same page. If you find there are two package which cannot be configured simultaneously, don't worry and you should be able to configure them automatically usingsudo apt update && sudo apt upgrade
after you install all other packages.Alternatively, you can temporarily change your update source list to Zesty (Ubuntu 17.04) or most recent distribute and then install required CUPS packages using
sudo apt update && sudo apt install PACKAGE
where you should replace the keywordPACKAGE
for the name of packages you want to upgrade to the latest version. Don't forget to change the source list back after this partial upgrade. But this method may make you break other things if you are not doing it correctly.This is how I fixed this problem on my Ubuntu 16.04. YMMV.
PS:
If your printing jobs cannot be stopped, you can use
cancel -a
to cancel all printing jobs.If you still encounter this issue after the last fix on Ubuntu, please report this bug here directly to developers. They will look into this issue more closely.