我最近遇到了 Xubuntu 18.04 无法始终唤醒的问题。似乎只在早上出现。我提取了系统日志,看到一些故障,例如“无法启动 snap.canonical-livepatch”。可能是这个原因吗?有没有关于如何解决此唤醒问题的建议?我没有找到附加文件的方法,因此将系统日志的一部分粘贴到下面,但行格式丢失了。在 6:29 进行了硬重启以恢复。
Aug 2 00:13:43 Pavilion anacron[10964]: Job `cron.weekly' started
Aug 2 00:13:43 Pavilion anacron[11320]: Updated timestamp for job `cron.weekly' to 2021-08-02
Aug 2 00:13:46 Pavilion anacron[10964]: Job `cron.weekly' terminated
Aug 2 00:17:02 Pavilion CRON[11354]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Aug 2 00:18:43 Pavilion anacron[10964]: Job `cron.monthly' started
Aug 2 00:18:43 Pavilion anacron[10964]: Job `cron.monthly' terminated
Aug 2 00:18:43 Pavilion anacron[10964]: Normal exit (3 jobs run)
Aug 2 00:18:43 Pavilion anacron[11367]: Updated timestamp for job `cron.monthly' to 2021-08-02
Aug 2 00:24:05 Pavilion canonical-livepatch[983]: Checking with livepatch service.
Aug 2 00:24:06 Pavilion canonical-livepatch[983]: Updated last-check.
Aug 2 00:24:06 Pavilion canonical-livepatch[983]: No updates available at this time.
Aug 2 00:24:06 Pavilion canonical-livepatch[983]: No payload available.
Aug 2 00:24:06 Pavilion canonical-livepatch[983]: client information is recent, not refreshing
Aug 2 00:24:08 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.b68a9a6c-90b7-4547-ac77-1b2aabd68605.scope: Failed to add PIDs to scope's control group: Permission denied
Aug 2 00:24:08 Pavilion kernel: [40663.261413] audit: type=1400 audit(1627889048.755:110): apparmor="DENIED" operation="file_mmap" profile="/snap/core/11420/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=11394 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 2 00:24:08 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.b68a9a6c-90b7-4547-ac77-1b2aabd68605.scope: Failed with result 'resources'.
Aug 2 00:24:08 Pavilion systemd[2615]: Failed to start snap.canonical-livepatch.canonical-livepatch.b68a9a6c-90b7-4547-ac77-1b2aabd68605.scope.
Aug 2 00:24:08 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.8bf1748a-2d29-451a-a4b3-7d3e10bf4dc9.scope: Failed to add PIDs to scope's control group: Permission denied
Aug 2 00:24:08 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.8bf1748a-2d29-451a-a4b3-7d3e10bf4dc9.scope: Failed with result 'resources'.
Aug 2 00:24:08 Pavilion systemd[2615]: Failed to start snap.canonical-livepatch.canonical-livepatch.8bf1748a-2d29-451a-a4b3-7d3e10bf4dc9.scope.
Aug 2 00:24:08 Pavilion kernel: [40663.371629] audit: type=1400 audit(1627889048.863:111): apparmor="DENIED" operation="file_mmap" profile="/snap/core/11420/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=11422 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 2 00:24:08 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.c33ea6d0-0f7b-4e28-80ea-1e898d4261a5.scope: Failed to add PIDs to scope's control group: Permission denied
Aug 2 00:24:08 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.c33ea6d0-0f7b-4e28-80ea-1e898d4261a5.scope: Failed with result 'resources'.
Aug 2 00:24:08 Pavilion systemd[2615]: Failed to start snap.canonical-livepatch.canonical-livepatch.c33ea6d0-0f7b-4e28-80ea-1e898d4261a5.scope.
Aug 2 00:24:08 Pavilion kernel: [40663.451634] audit: type=1400 audit(1627889048.943:112): apparmor="DENIED" operation="file_mmap" profile="/snap/core/11420/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=11447 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 2 00:24:09 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.957a2768-0ade-418b-b5cb-6aff2d686c08.scope: Failed to add PIDs to scope's control group: Permission denied
Aug 2 00:24:09 Pavilion systemd[2615]: snap.canonical-livepatch.canonical-livepatch.957a2768-0ade-418b-b5cb-6aff2d686c08.scope: Failed with result 'resources'.
Aug 2 00:24:09 Pavilion systemd[2615]: Failed to start snap.canonical-livepatch.canonical-livepatch.957a2768-0ade-418b-b5cb-6aff2d686c08.scope.
Aug 2 00:24:09 Pavilion kernel: [40663.533609] audit: type=1400 audit(1627889049.027:113): apparmor="DENIED" operation="file_mmap" profile="/snap/core/11420/usr/lib/snapd/snap-confine" name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=11472 comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] microcode: microcode updated early to revision 0x60f, date = 2010-09-29
Aug 2 06:29:50 Pavilion systemd[1]: Starting Flush Journal to Persistent Storage...
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] Linux version 4.15.0-151-generic (buildd@lgw01-amd64-042) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #157-Ubuntu SMP Fri Jul 9 23:07:57 UTC 2021 (Ubuntu 4.15.0-151.157-generic 4.15.18)
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-151-generic root=UUID=27c52f02-9597-42b3-b1f3-d2aa0c2ce927 ro quiet splash vt.handoff=1
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] KERNEL supported cpus:
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] Intel GenuineIntel
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] AMD AuthenticAMD
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] Centaur CentaurHauls
Aug 2 06:29:50 Pavilion systemd[1]: Started udev Coldplug all Devices.
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] x86/fpu: x87 FPU will use FXSAVE
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] e820: BIOS-provided physical RAM map:
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009afff] usable
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x000000000009b000-0x000000000009ffff] reserved
Aug 2 06:29:50 Pavilion systemd[1]: Started Load/Save Random Seed.
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000cf69ffff] usable
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x00000000cf6a0000-0x00000000cf6adfff] ACPI data
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x00000000cf6ae000-0x00000000cf6dffff] ACPI NVS
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x00000000cf6e0000-0x00000000cf6fffff] reserved
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Aug 2 06:29:50 Pavilion mtp-probe: checking bus 8, device 2: "/sys/devices/pci0000:00/0000:00:1d.3/usb8/8-1"
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fff00000-0x00000000ffffffff] reserved
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000001afffffff] usable
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] NX (Execute Disable) protection: active
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] SMBIOS 2.5 present.
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] DMI: HP-Pavilion NC715AAR-ABA a6712f/Benicia, BIOS 5.39 05/06/2009
Aug 2 06:29:50 Pavilion kernel: [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
Aug 2 06:29:50 Pavilion systemd-modules-load[269]: Inserted module 'lp'
答案1
我不确定这是否会对任何人有帮助,但还是要说一下。最终我的系统无法启动。启动前可用的恢复功能也不起作用。我有一张 Lubuntu 18.04 LTS i386/ 的 CD,在启动时加载它时,它提供了几种恢复方法,这些方法也不起作用,但其中一种方法确实显示需要在 /dev/sda1 上进行 fsck。然后我加载了一个实时版本的 ubuntu 并运行 sudo umount /dev/sda1,然后运行 sudo fsck /dev/sda1。这发现了几个错误并能够纠正。我重新启动后系统又可以正常工作了。