长时间运行的进程关闭了我的电脑

长时间运行的进程关闭了我的电脑

我在用Ubuntu 22.10在我的戴尔笔记本电脑 [英特尔 i3,amd64]。起初这个操作系统运行良好,但现在启动时间太长。当我sudo dmesg在终端中运行时,它显示以下输出:

[   97.429059] audit: type=1326 audit(1667911572.579:55): auid=1000 uid=1000 gid=1000 ses=3 subj=snap.snap-store.ubuntu-software pid=1878 comm="snap-store" exe="/snap/snap-store/599/usr/bin/snap-store" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fb5932ce73d code=0x50000
[  106.414871] audit: type=1107 audit(1667911581.563:56): pid=706 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.10" pid=1878 label="snap.snap-store.ubuntu-software" peer_pid=717 peer_label="unconfined"
                exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
[  106.415469] audit: type=1107 audit(1667911581.563:57): pid=706 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.10" pid=1878 label="snap.snap-store.ubuntu-software" peer_pid=717 peer_label="unconfined"
                exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
[  106.419575] audit: type=1107 audit(1667911581.567:58): pid=706 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.10" pid=1878 label="snap.snap-store.ubuntu-software" peer_pid=717 peer_label="unconfined"
                exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
[  106.420093] audit: type=1107 audit(1667911581.567:59): pid=706 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.10" pid=1878 label="snap.snap-store.ubuntu-software" peer_pid=717 peer_label="unconfined"
                exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'

这表明长时间运行的进程snap-store需要花费太多时间来执行. 似乎有任何与 snap-store 的政策相冲突

我该怎么做才能解决这个问题。如果有人知道,请帮忙。

以下是systemd-analyze blame命令:

systemd-analyze blame 

                                                
38.589s plymouth-quit-wait.service
14.386s apport-autoreport.service
13.729s systemd-journal-flush.service
13.271s logrotate.service
12.142s udisks2.service
11.914s snapd.service
 9.932s fwupd.service
 9.538s NetworkManager-wait-online.service
 8.956s dev-sda3.device
 7.193s NetworkManager.service
 5.595s accounts-daemon.service
 5.136s dev-loop8.device
 4.957s power-profiles-daemon.service
 4.599s ModemManager.service
 4.027s cups.service
 3.937s polkit.service
 3.774s avahi-daemon.service
 3.267s packagekit.service
 3.224s thermald.service
 3.224s dev-loop1.device
 3.170s snapd.seeded.service
 2.972s grub-common.service
 2.696s bluetooth.service
lines 1-23...skipping...
38.589s plymouth-quit-wait.service
14.386s apport-autoreport.service
13.729s systemd-journal-flush.service
13.271s logrotate.service
12.142s udisks2.service
11.914s snapd.service
 9.932s fwupd.service
 9.538s NetworkManager-wait-online.service
 8.956s dev-sda3.device
 7.193s NetworkManager.service
 5.595s accounts-daemon.service
 5.136s dev-loop8.device
 4.957s power-profiles-daemon.service
 4.599s ModemManager.service
 4.027s cups.service
 3.937s polkit.service
 3.774s avahi-daemon.service
 3.267s packagekit.service
 3.224s thermald.service
 3.224s dev-loop1.device
 3.170s snapd.seeded.service
 2.972s grub-common.service
 2.696s bluetooth.service
 2.674s apport.service
 2.667s dbus.service
 2.586s snapd.apparmor.service
 2.508s gpu-manager.service
 2.491s wpa_supplicant.service
 2.440s dev-loop5.device
 2.395s dev-loop0.device
 2.264s switcheroo-control.service
 2.254s systemd-logind.service
 2.208s gdm.service
 2.072s dev-loop6.device
 2.071s colord.service
 2.032s dev-loop2.device
 1.736s dev-loop7.device
 1.621s dev-loop4.device
 1.618s systemd-modules-load.service
 1.545s systemd-udevd.service
38.589s plymouth-quit-wait.service
14.386s apport-autoreport.service
13.729s systemd-journal-flush.service
13.271s logrotate.service
12.142s udisks2.service
11.914s snapd.service
 9.932s fwupd.service
 9.538s NetworkManager-wait-online.service
 8.956s dev-sda3.device
 7.193s NetworkManager.service
 5.595s accounts-daemon.service
 5.136s dev-loop8.device
 4.957s power-profiles-daemon.service
 4.599s ModemManager.service
 4.027s cups.service
 3.937s polkit.service
 3.774s avahi-daemon.service
 3.267s packagekit.service
 3.224s thermald.service
 3.224s dev-loop1.device
 3.170s snapd.seeded.service
 2.972s grub-common.service
 2.696s bluetooth.service
 2.674s apport.service
 2.667s dbus.service
 2.586s snapd.apparmor.service
 2.508s gpu-manager.service
 2.491s wpa_supplicant.service
 2.440s dev-loop5.device
 2.395s dev-loop0.device
 2.264s switcheroo-control.service
 2.254s systemd-logind.service
 2.208s gdm.service
 2.072s dev-loop6.device
 2.071s colord.service
 2.032s dev-loop2.device
 1.736s dev-loop7.device
 1.621s dev-loop4.device
 1.618s systemd-modules-load.service
 1.545s systemd-udevd.service
 1.525s update-notifier-download.service
 1.436s systemd-sysusers.service
 1.426s rsyslog.service
 1.322s dev-loop3.device
 1.235s plymouth-start.service
 1.215s grub-initrd-fallback.service
 1.185s systemd-rfkill.service
 1.172s e2scrub_reap.service
 1.081s secureboot-db.service
 1.041s systemd-random-seed.service
 1.038s apparmor.service
  727ms systemd-udev-trigger.service
  717ms keyboard-setup.service
  714ms systemd-fsck@dev-disk-by\x2duuid-8EDB\x2d88BC.service
  712ms systemd-tmpfiles-setup-dev.service
  707ms systemd-tmpfiles-setup.service
  693ms systemd-resolved.service
  616ms systemd-backlight@backlight:intel_backlight.service
  556ms [email protected]
  529ms upower.service
  461ms systemd-oomd.service
  447ms kerneloops.service
  411ms snap-snapd\x2ddesktop\x2dintegration-14.mount
  371ms snap-core20-1623.mount
  369ms systemd-timesyncd.service
  359ms snap-core20-1634.mount
  329ms systemd-remount-fs.service
  319ms systemd-sysctl.service
  266ms snap-firefox-1969.mount
  245ms snap-snap\x2dstore-599.mount
  243ms setvtrgb.service
  222ms snap-bare-5.mount
  215ms snap-gnome\x2d3\x2d38\x2d2004-119.mount
  206ms snap-gtk\x2dcommon\x2dthemes-1535.mount
  205ms snap-snapd-17336.mount
  195ms dev-disk-by\x2duuid-d654630e\x2d9167\x2d4510\x2da658\x2dcd90e3f797f3.swap
  146ms systemd-journald.service
  143ms systemd-timedated.service
  116ms console-setup.service
  115ms plymouth-read-write.service
   95ms boot-efi.mount
   93ms proc-sys-fs-binfmt_misc.mount
   91ms openvpn.service
   88ms systemd-update-utmp.service
   87ms rtkit-daemon.service
   70ms modprobe@chromeos_pstore.service
   69ms dev-hugepages.mount
   68ms dev-mqueue.mount
   67ms sys-kernel-debug.mount
   66ms sys-kernel-tracing.mount
   60ms kmod-static-nodes.service
   57ms [email protected]
   56ms [email protected]
   53ms [email protected]
   45ms systemd-user-sessions.service
   34ms ufw.service
   27ms systemd-backlight@leds:dell::kbd_backlight.service
   19ms [email protected]
   17ms var-snap-firefox-common-host\x2dhunspell.mount
   13ms systemd-update-utmp-runlevel.service
   13ms alsa-restore.service
   11ms modprobe@efi_pstore.service
    9ms modprobe@pstore_blk.service
    6ms modprobe@pstore_zone.service
    6ms [email protected]
    4ms sys-kernel-config.mount
    4ms sys-fs-fuse-connections.mount
    2ms snapd.socket

答案1

使用gparted,我发现根分区有两个挂载点,如下所示:

Mounted on /, /var/snap/firefox/common/host-hunspell

问题发生在snap 商店,所以为了给它一个小的解决方案,我只是删除了snap 商店从计算机中也删除了火狐(因为火狐安装于折断) 并从另一个平台安装了 Firefox。

然后重启。现在问题解决了。

相关内容