如果我使用操作系统为此提供的相应按钮以及以我的用户身份执行关闭/重新启动命令时,我会遇到非常慢的系统关闭/重新启动速度。最多需要 3 分钟。
如果我在命令行上执行该命令,那么在任何可见的事情发生之前都会有很长的延迟。当再次运行相同的命令时,它显示已经有关闭正在进行中。大约 30-60 秒后,屏幕变黑,然后又需要 30-60 秒才能处理关闭/重新启动。
奇怪的是,如果我通过 sudo 发出关闭/重新启动命令,一切都会正常
我花了过去 3 天的时间 - 执行了 100 多次系统重新启动 - 对此进行了调试并尝试了许多不同的事情,但似乎没有任何效果。
看来我在日志中找到了有关第二次延迟的相应信息:
systemd-shutdown[1]:同步文件系统和块设备 - 超时,向 PID 11498 发出 SIGKILL。
虽然我仍然不确定造成这种情况的原因,但我想首先关注第一个延迟,因为第二个延迟并不总是发生,但第一个延迟却总是发生。不幸的是,我找不到任何可以导致我第一次延误的原因。系统日志如下所示:
Aug 16 19:47:02 dbus-daemon[3449]: [session uid=1000 pid=3449] Activating service name='org.kde.Shutdown' requested by ':1.85' (uid=1000 pid=10955 comm="/usr/lib/x86_64-linux-gnu/libexec/ksmserver-logout")
Aug 16 19:47:02 dbus-daemon[3449]: [session uid=1000 pid=3449] Successfully activated service 'org.kde.Shutdown'
Aug 16 19:47:02 dbus-daemon[3449]: [session uid=1000 pid=3449] Activating service name='org.kde.kdeconnect' requested by ':1.22' (uid=1000 pid=4734 comm="/usr/bin/plasmashell ")
Aug 16 19:47:03 dbus-daemon[3449]: [session uid=1000 pid=3449] Successfully activated service 'org.kde.kdeconnect'
Aug 16 19:47:03 org.kde.kdeconnect[10984]: kdeconnect.core: Could not query capabilities from notifications server
Aug 16 19:47:12 org.kde.kdeconnect[10984]: ICE default IO error handler doing an exit(), pid = 10984, errno = 2
Aug 16 19:47:12 systemd[1]: unattended-upgrades.service: Succeeded.
Aug 16 19:47:43 sddm[1586]: Authentication error: "Process crashed"
Aug 16 19:47:43 at-spi-bus-launcher[5462]: X connection to :0 broken (explicit kill or server shutdown).
Aug 16 19:47:43 sddm[1586]: Auth: sddm-helper crashed (exit code 15)
Aug 16 19:47:43 sddm[1586]: Authentication error: "Process crashed"
Aug 16 19:47:43 sddm[1586]: Auth: sddm-helper exited with 15
Aug 16 19:47:43 sddm[1586]: Socket server stopping...
Aug 16 19:47:43 sddm[1586]: Socket server stopped.
Aug 16 19:47:43 sddm[1586]: Display server stopping...
Aug 16 19:47:43 xdg-desktop-por[5395]: xdg-desktop-portal-gtk: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :0.
Aug 16 19:47:43 systemd[1]: Stopping Session 5 of user michael.
Aug 16 19:47:43 systemd[1]: Removed slice system-getty.slice.
Aug 16 19:47:43 systemd[1]: Removed slice system-modprobe.slice.
Aug 16 19:47:43 systemd[1]: Stopped target Block Device Preparation for /dev/mapper/cryptdata.
Aug 16 19:47:43 systemd[1]: Stopped target Bluetooth.
Aug 16 19:47:43 systemd[1]: Stopped target Graphical Interface.
Aug 16 19:47:43 systemd[1]: Stopped target Multi-User System.
Aug 16 19:47:43 systemd[1]: Stopped target Login Prompts.
Aug 16 19:47:43 systemd[1]: Stopped target Containers.
Aug 16 19:47:43 systemd[1]: Stopped target Sound Card.
Aug 16 19:47:43 systemd[1]: Stopped target Timers.
Aug 16 19:47:43 systemd[1]: apt-daily-upgrade.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Daily apt upgrade and clean activities.
Aug 16 19:47:43 systemd[1]: apt-daily.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Daily apt download activities.
Aug 16 19:47:43 systemd[1]: e2scrub_all.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Periodic ext4 Online Metadata Check for All Filesystems.
Aug 16 19:47:43 systemd[1]: fstrim.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Discard unused blocks once a week.
Aug 16 19:47:43 systemd[1]: fwupd-refresh.timer: Succeeded.
Aug 16 19:47:43 org.freedesktop.impl.portal.desktop.kde[5508]: The X11 connection broke (error 1). Did the X11 server die?
Aug 16 19:47:43 org.kde.KScreen[5073]: The X11 connection broke (error 1). Did the X11 server die?
Aug 16 19:47:43 kglobalaccel5[4427]: The X11 connection broke (error 1). Did the X11 server die?
Aug 16 19:47:43 systemd[1]: Stopped Refresh fwupd metadata regularly.
Aug 16 19:47:43 systemd[1]: logrotate.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Daily rotation of log files.
Aug 16 19:47:43 systemd[1]: man-db.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Daily man-db regeneration.
Aug 16 19:47:43 systemd[1]: motd-news.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Message of the Day.
Aug 16 19:47:43 systemd[1]: phpsessionclean.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Clean PHP session files every 30 mins.
Aug 16 19:47:43 systemd[1]: systemd-tmpfiles-clean.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Aug 16 19:47:43 systemd[1]: ua-messaging.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Ubuntu Advantage update messaging.
Aug 16 19:47:43 systemd[1]: update-notifier-download.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Download data for packages that failed at package install time.
Aug 16 19:47:43 systemd[1]: update-notifier-motd.timer: Succeeded.
Aug 16 19:47:43 systemd[1]: Stopped Check to see whether there is a new version of Ubuntu available.
Aug 16 19:47:43 systemd[1]: lvm2-lvmpolld.socket: Succeeded.
Aug 16 19:47:43 kactivitymanagerd[4951]: The X11 connection broke (error 1). Did the X11 server die?
Aug 16 19:47:43 systemd[1]: Closed LVM2 poll daemon socket.
Aug 16 19:47:43 systemd[1]: systemd-rfkill.socket: Succeeded.
Aug 16 19:47:43 systemd[3397]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Aug 16 19:47:43 systemd[3397]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Aug 16 19:47:43 systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Aug 16 19:47:43 ModemManager[1319]: <info> caught signal, shutting down...
Aug 16 19:47:43 systemd[1]: Stopping Modem Manager...
Aug 16 19:47:43 systemd[1]: Stopping Accounts Service...
Aug 16 19:47:43 systemd[1]: Stopping ACPI event daemon...
Aug 16 19:47:43 NetworkManager[1130]: <info> [1629136063.0371] modem-manager: ModemManager no longer available
Aug 16 19:47:43 ModemManager[1319]: <info> ModemManager is shut down
Aug 16 19:47:43 systemd[1]: Stopping Save/Restore Sound Card State...
操作系统是 Pop!_OS 21.04。
我非常感谢您为解决此问题提供的任何帮助。