我的 Ubuntu 22.04 LTS 启动时间变得太长了,大约 5 分钟,我该如何减少这个过长的启动时间?

我的 Ubuntu 22.04 LTS 启动时间变得太长了,大约 5 分钟,我该如何减少这个过长的启动时间?

我在 corei7 dell 笔记本电脑上运行 Ubuntu。

启动需要3到5分钟。

并且,在启动后,并登录我的用户会话后,我必须再次等待 3 到 5 分钟,然后 Ubuntu 才能正常响应而没有任何滞后。

就變得安静了有點無聊。

有什么办法吗?还是这是正常的?

我在下面添加了一些信息,命令的返回:,,,,systemd-analyze critical-chain` `。systemd-analyze timejournalctl -p 3 -b

获取有关启动过程的信息

systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @2min 12.406s
└─multi-user.target @2min 12.405s
  └─plymouth-quit-wait.service @1min 2.287s +1min 10.113s
    └─systemd-user-sessions.service @1min 2.112s +169ms
      └─network.target @1min 2.077s
        └─NetworkManager.service @47.861s +14.213s
          └─dbus.service @47.858s
            └─basic.target @47.760s
              └─sockets.target @47.759s
                └─cups.socket @56.673s
                  └─sysinit.target @47.188s
                    └─systemd-timesyncd.service @46.891s +296ms
                      └─systemd-tmpfiles-setup.service @45.318s +1.563s
                        └─systemd-journal-flush.service @7.754s +37.563s
                          └─systemd-remount-fs.service @7.023s +727ms
                            └─systemd-journald.socket @6.881s
                              └─-.mount @6.803s
                                └─-.slice @6.803s

获取开机时间信息

systemd-analyze time
Startup finished in 12.359s (kernel) + 2min 12.474s (userspace) = 2min 24.834s 
graphical.target reached after 2min 12.406s in userspace

获取启动过程中出现的问题的信息:

journalctl -p 3 -b
mars 29 08:35:21 name_of_my_machine kernel: efi: memattr: Failed to map EFI Memory Attributes table @ 0x8c9d5098
mars 29 08:35:21 name_of_my_machine kernel: ioremap error for 0x8f8aa000-0x8f8ab000, requested 0x2, got 0x0
mars 29 08:35:58 name_of_my_machine kernel: nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ PRIVRING ]
mars 29 08:35:58 name_of_my_machine kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 39 (Power_personality)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 39 (Power_personality)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 4 (Motion)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 39 (Power_personality)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 4 (Motion)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 39 (Power_personality)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported condition 39 (Power_personality)
mars 29 08:36:21 name_of_my_machine thermald[1192]: Unsupported conditions are present
mars 29 08:36:27 name_of_my_machine bluetoothd[1157]: Failed to set mode: Blocked through rfkill (0x12)
mars 29 08:36:54 name_of_my_machine gnome-session-binary[1594]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
mars 29 08:36:54 name_of_my_machine gnome-session-binary[1594]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
mars 29 08:37:03 name_of_my_machine kernel: nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ PRIVRING ]
mars 29 08:37:25 name_of_my_machine kernel: nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ PRIVRING ]
mars 29 08:37:50 name_of_my_machine gdm-password][2074]: gkr-pam: unable to locate daemon control file
mars 29 08:37:54 name_of_my_machine kernel: nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ PRIVRING ]
mars 29 08:38:04 name_of_my_machine systemd[2083]: Failed to start Application launched by gnome-session-binary.
mars 29 08:38:04 name_of_my_machine systemd[2083]: Failed to start Application launched by gnome-session-binary.
mars 29 08:38:04 name_of_my_machine systemd[2083]: Failed to start Application launched by gnome-session-binary.
mars 29 08:38:05 name_of_my_machine systemd[2083]: Failed to start Application launched by gnome-session-binary.
mars 29 08:38:24 name_of_my_machine gdm-launch-environment][1415]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
mars 29 08:39:47 name_of_my_machine systemd[2083]: Failed to start Tracker file system data miner.
mars 29 08:41:17 name_of_my_machine systemd[2083]: Failed to start Tracker file system data miner.

获取启动盘的信息:

sudo parted -l

Modèle : ATA ST1000LM035-1RK1 (scsi)
Disque /dev/sda : 1000GB

相关内容