Public bug reported: I guess it's a pcmanfm bug.
While shutting down I see this message: systemd-shutdown[1]: Waiting for process: gvfs-udisks2-vo, gvfs-thash, pcmanfm, gvfs-afc-volume, pulseaudio, systemd, dbus-daemon I found this link to related patch https://src.fedoraproject.org/rpms/pcmanfm/blob/4b1c3e3004e996ea3192f1725d3b8a916c7c3ab5/f/pcmanfm-0201 -main-set-the-GIOChannel-encoding-to-binary.patch The place where I found it https://bbs.archlinux.org/viewtopic.php?id=254266 As a workaround I set DefaultTimeoutStopSec=3s DefaultTimeoutAbortSec=3s in /etc/systemd/system.conf, but of course it's not the right way. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: pcmanfm 1.3.1-1 ProcVersionSignature: Ubuntu 5.4.0-37.41-generic 5.4.41 Uname: Linux 5.4.0-37-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.2 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: LXDE Date: Thu Jun 11 22:38:41 2020 EcryptfsInUse: Yes SourcePackage: pcmanfm Udisks_dump: Error: [Errno 2] No such file or directory: 'udisks' UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: pcmanfm (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883173 Title: shutdown or reboot takes too long (link to the patch) (20.04) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pcmanfm/+bug/1883173/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs