18.04 延迟启动-哪个设备?

18.04 延迟启动-哪个设备?

我不知道如何阅读systemd-analyze才能理解如何解决我自己的延迟启动问题。Ubuntu 17.10 对我来说启动非常快,而且我知道一旦配置正确,18.04 实际上会更快。

你能帮我吗确定延迟过程和任何解决方案

时间
Startup finished in 4.282s (firmware) + 4.215s (loader) + 35.104s (kernel) + 34.337s (userspace) = 1min 17.940s
graphical.target reached after 34.328s in userspace
关键链
graphical.target @34.328s
└─multi-user.target @34.328s
  └─docker.service @33.161s +1.166s
    └─network-online.target @33.156s
      └─network.target @3.132s
        └─NetworkManager.service @2.551s +575ms
          └─dbus.service @2.472s
            └─basic.target @2.385s
              └─sockets.target @2.385s
                └─docker.socket @2.383s +970us
                  └─sysinit.target @2.374s
                    └─systemd-timesyncd.service @2.054s +319ms
                      └─systemd-tmpfiles-setup.service @1.980s +53ms
                        └─local-fs.target @1.978s
                          └─run-snapd-ns-bluez.mnt.mount @33.434s
                            └─run-snapd-ns.mount @33.193s
                              └─swap.target @1.864s
                                └─dev-mapper-cryptswap1.swap @1.812s +9ms
                                  └─dev-mapper-cryptswap1.device @1.812s
责备
     30.022s NetworkManager-wait-online.service
      4.302s apt-daily-upgrade.service
      1.664s keyboard-setup.service
      1.615s plymouth-quit-wait.service
      1.166s docker.service
      1.102s dev-nvme0n1p5.device
       777ms fwupd.service
       729ms networkd-dispatcher.service
       688ms systemd-logind.service
       575ms NetworkManager.service
       521ms gpu-manager.service
       516ms udisks2.service
       516ms [email protected]
       496ms snap-pycharm\x2dprofessional-66.mount
       453ms snap-bluez-129.mount
       446ms ModemManager.service
       434ms snap-pycharm\x2dprofessional-64.mount
       413ms snap-intellij\x2didea\x2dultimate-47.mount
       410ms snap-intellij\x2didea\x2dultimate-44.mount
       395ms accounts-daemon.service
       350ms nbfc.service
       349ms grub-common.service
       340ms unbound.service

答案1

尝试这个

systemctl stop NetworkManager-wait-online.service
systemctl disable NetworkManager-wait-online.service

该服务不是来自开箱即用的 Ubuntu 18.04,
我可以作为依赖项安装,我被告知 Steam 会安装它

相关内容