之前我曾使用过双启动(Windows 10 + Ubuntu 24.04),启动速度很快。最近,我清除了 Windows 分区并安装了 Ubuntu,但发现现在启动时间太长了。该怎么办?如何排除故障?
使用systemd-analyze
得到以下结果:
> systemd-analyze
Startup finished in 10.413s (firmware) + 12.542s (loader) + 7.531s (kernel) + 26.536s (userspace) = 57.024s
graphical.target reached after 26.511s in userspace.
更新
> systemd-analyze blame
51.204s apt-daily.service
20.255s plymouth-quit-wait.service
5.033s NetworkManager-wait-online.service
2.783s fwupd.service
1.695s plymouth-read-write.service
1.166s logrotate.service
1.008s NetworkManager.service
843ms snapd.seeded.service
742ms systemd-suspend.service
626ms boot-efi.mount
553ms snapd.service
489ms systemd-journal-flush.service
459ms apport.service
389ms man-db.service
333ms udisks2.service
333ms dev-nvme0n1p6.device
274ms gnome-remote-desktop.service