我的系统规格是联想 Thinkpad
- i5-2.3GHz
- 8 GB 内存
一些细节如下:
$ systemd-analyze
启动用时 26.156 秒(内核)+30.274 秒(用户空间)=56.431 秒
和
$ systemd-analyze blame
9.700s snapd.service
8.771s dev-sda2.device
7.346s NetworkManager-wait-online.service
5.180s ModemManager.service
4.109s NetworkManager.service
3.910s accounts-daemon.service
3.349s keyboard-setup.service
3.162s dev-loop1.device
3.009s iio-sensor-proxy.service
2.983s dev-loop3.device
2.787s speech-dispatcher.service
2.567s fwupd.service
2.349s systemd-logind.service
2.347s [email protected]
2.342s networking.service
2.277s gpu-manager.service
2.271s udisks2.service
2.232s pppd-dns.service
2.230s vboxweb-service.service
2.227s rsyslog.service
2.099s dev-loop0.device
1.782s bluetooth.service
1.728s dev-loop2.device
1.606s alsa-restore.service
1.602s lm-sensors.service
1.601s switcheroo-control.service
1.484s polkit.service
1.416s apparmor.service
1.328s grub-common.service
1.234s packagekit.service
1.145s avahi-daemon.service
1.082s apport.service
852ms systemd-udevd.service
810ms tlp.service
591ms snap-core-3440.mount
533ms thermald.service
502ms lightdm.service
479ms systemd-backlight@leds:tpacpi::kbd_backlight.service
477ms snap-atom-106.mount
447ms systemd-tmpfiles-setup-dev.service
445ms colord.service
441ms vboxballoonctrl-service.service
422ms upower.service
396ms kerneloops.service
391ms vboxautostart-service.service
342ms snap-core-3604.mount
286ms wpa_supplicant.service
275ms systemd-timesyncd.service
267ms systemd-resolved.service
243ms console-setup.service
231ms setvtrgb.service
229ms dns-clean.service
227ms snap-atom-76.mount
和
$ systemd-analyze critical-chain
graphical.target @29.463s
└─multi-user.target @29.463s
└─postfix.service @29.461s +1ms
└─[email protected] @27.112s +2.347s
└─network-online.target @27.107s
└─NetworkManager-wait-online.service @19.759s +7.346s
└─NetworkManager.service @15.649s +4.109s
└─dbus.service @14.501s
└─basic.target @13.808s
└─sockets.target @13.807s
└─snapd.socket @13.797s +7ms
└─sysinit.target @13.748s
└─systemd-timesyncd.service @12.505s +275ms
└─systemd-tmpfiles-setup.service @12.310s +193ms
└─local-fs.target @12.275s
└─boot-efi.mount @12.237s +37ms
└─systemd-fsck@dev-disk-by\x2duuid-0190\x2dF0CF.service @12.070s +134ms
└─dev-disk-by\x2duuid-0190\x2dF0CF.device @12.068s
我尽力在 Google 上寻找解决方案,但一无所获。任何现有解决方案的链接都将不胜感激。
答案1
您对此无能为力,因为这是加载 Ubuntu 系统所需的典型时间。您可以尝试禁用某些服务,但这可能会有风险并导致系统不稳定。
答案2
要诊断导致延迟的原因,您可以执行以下操作来启用启动消息。
跑步:
gksudo gedit /etc/default/grub
找到以 开头的行
GRUB_CMDLINE_LINUX_DEFAULT
并删除参数quiet
和splash
。保存文件并关闭编辑器。
最后,启动终端并运行:
sudo update-grub
更新GRUB的配置文件。