Ubuntu 18.04 启动至少需要 4 分钟,启动时显示空白屏幕

Ubuntu 18.04 启动至少需要 4 分钟,启动时显示空白屏幕

我尝试查看关键链,并设法修复了一些问题,但找不到更多相关信息。我还尝试删除 snap 包及其依赖项。之前的 systemd-journal-flush 也出现了问题,但我将其清除了。我不是内核代码和依赖项方面的专家。

$ systemd-analyze critical-chain

设备激活或启动后的时间打印在“@”字符后。
设备启动所需的时间打印在“+”字符后面。

graphic.target @4分钟 11.302秒
└─multi-user.target @4分钟 11.302秒
  └─systemd-user-sessions.service @4分钟 1.267秒 +4毫秒
    └─network.target @1分钟336毫秒
      └─NetworkManager.service @42.894秒 +17.440秒
        └─dbus.service @39.872秒
          └─basic.target @39.871秒
            └─sockets.target @39.871秒
              └─docker.socket @39.466秒+404毫秒
                └─sysinit.target@39.460s
                  └─systemd-backlight@backlight:intel_backlight.service @36.636s +358ms
                    └─system-systemd\x2dbacklight.slice @36.636s
                      └─system.slice @5.201秒
                        └─-.slice @5.142秒

$ systemd-analyze blame

         43.632秒docker.service
         39.533s dev-sdb5.设备
         30.555s snapd.服务
         24.986s systemd-journal-flush.服务
         23.497秒[电子邮件保护]
         21.591s dev-loop24.device
         21.479s dev-loop26.device
         21.376s dev-loop27.device
         21.346s dev-loop15.device
         21.328s dev-loop25.device
         21.048s dev-loop28.device
         20.838s dev-loop19.device
         20.677s dev-loop23.device
         20.587s dev-loop20.device
         20.122s dev-loop21.device
         20.054s dev-loop22.device
         19.873s networkd-dispatcher.service
         19.675s libvirtd.service
         19.322s dev-loop11.设备
         18.486s dev-loop18.device
         18.436s dev-loop14.device
         18.295s dev-loop17.device
         17.937s dev-loop16.device
         17.440s NetworkManager.服务
         17.379s uml-utilities.service
         16.427s dev-loop8.device
         16.324s dev-loop10.device
         16.263s dev-loop12.device
         16.105s dev-loop13.device
         15.876s gpu-manager.service
         15.461s dev-loop9.device
         12.203s apport-自动报告.服务
         11.914s dev-loop4.device
         11.668s dev-loop6.device
         11.510s dev-loop0.device
         11.453s dev-loop7.device
         11.212s dev-loop2.device
         11.137s dev-loop5.device
         10.889s dev-loop3.device
         10.065s dev-loop1.device
         10.026s plymouth-退出-等待.服务
          9.751s upower.service
          9.144s apache2.service
          8.868s udisks2.服务
          8.455s systemd-udevd.service
          8.219s ModemManager.服务
          6.741s teamviewerd.service
          6.348s vboxdrv.服务
          6.007s 账户守护进程.服务
          5.996s colord.service
          5.452s systemd-rfkill.service
          5.435s binfmt-support.service
          5.137s dns-clean.service
          5.097s qemu-kvm.service
          4.913s ebtables.服务
          4.829s 网络服务
          4.777s plymouth-read-write.service
          3.928s systemd-sysctl.service
          3.906s systemd-tmpfiles-setup.service
          3.479s fwupd.service
          3.366s thermald.service
          3.158s grub-common.service
          2.861s snap-core-9289.mount
          2.859s systemd-tmpfiles-setup-dev.service
          2.855s 控制台设置.服务
          2.733s wpa_supplicant.service
          2.630s snap-gnome\x2dsystem\x2dmonitor-145.mount
          2.590s snap-spotify-41.mount
          2.580s lvm2-monitor.service
          2.415s 蓝牙服务
          2.363s systemd-modules-load.service
          2.234s apport.service
          2.158s 语音调度服务
          2.076s apparmor.service
          2.005s rsyslog.service
          1.968s snap-gnome\x2dcalculator-748.mount
          1.910s snap-gnome\x2d3\x2d28\x2d1804-128.mount
          1.909s snap-core18-1754.mount
          1.894s snap-gnome\x2dclocks-257.mount
          1.888s snap-gnome\x2dlogs-93.mount
          1.847s snap-gnome\x2d3\x2d26\x2d1604-100.mount
          1.832s systemd-logind.service
          1.772s avahi-daemon.service
          1.767s alsa-恢复.服务
          1.762s nvidia-persistenced.service
          1.756s sysstat.service
          1.755s pppd-dns.服务
          1.676s snap-gnome\x2d3\x2d34\x2d1804-33.mount
          1.657s snap-gtk\x2dcommon\x2dthemes-1506.mount
          1.657s 键盘设置.服务
          1.585s snap-gnome\x2d3\x2d34\x2d1804-36.mount
          1.580s snap-postgresql10-47.mount
          1.578s snap-eclipse-40.mount
          1.562s snap-eclipse-48.mount
          1.394s snap-spotify-36.mount
          1.251s snap-core-9066.mount
          1.248s snap-gnome\x2d3\x2d28\x2d1804-116.mount
          1.198s snap-sublime\x2dtext-85.mount
          1.188s snap-gnome\x2dcharacters-550.mount
          1.185s systemd-journald.service
          1.079s proc-sys-fs-binfmt_misc.mount
          1.056s snap-sublime\x2dtext-77.mount
          1.040s snap-gnome\x2d3\x2d26\x2d1604-98.mount
          1.028s snap-gnome\x2dclocks-261.mount
          1.005s snap-core18-1705.mount
          1.004s snap-gnome\x2dsystem\x2dmonitor-148.mount
           979ms systemd-random-seed.service
           955ms snap-gnome\x2dlogs-100.mount
           953ms snap-gnome\x2dcharacters-539.mount
           953ms snap-gnome\x2dcalculator-730.mount
           792ms kerneloops.service
           744ms swapfile.swap
           715ms systemd-询问密码-wall.service
           686ms snap-gtk\x2dcommon\x2dthemes-1502.mount
           651ms systemd-remount-fs.service
           625ms openvpn.service
           624ms containerd.service
           605ms dev-mqueue.mount
           603ms 系统内核调试.mount
           603ms dev-hugepages.mount
           575ms systemd-timesyncd.service
           566ms systemd-resolved.service
           504ms polkit.service
           481ms systemd-update-utmp.service
           468ms plymouth-start.service
           419ms snapd.seed.service
           409ms snapd.socket
           404毫秒docker.socket
           358ms systemd-backlight@backlight:intel_backlight.service
           280毫秒[电子邮件保护]
           211ms libvirt-guests.service
           196ms packagekit.service
           182ms kmod-静态节点.service
           133ms bolt.service
           120毫秒[电子邮件保护]
           105ms gdm.服务
           104ms blk-可用性.服务
            90ms ufw.服务
            74ms rtkit-daemon.service
            59ms systemd-udev-trigger.service
            37ms setvtrgb.service
            15ms vboxweb-service.服务
             9ms systemd-update-utmp-runlevel.service
             8ms ureadahead-stop.service
             4ms vboxballoonctrl-service.service
             4ms vboxautostart-service.service
             4ms systemd-用户会话.服务
             1ms postgresql.服务
             1ms 系统内核配置.mount
             1ms 系统文件系统保险丝连接.mount

相关内容