Unity 启动后启动太晚了

Unity 启动后启动太晚了

我在笔记本电脑上安装了 ubuntu 16.04。开机并登录时,屏幕上显示壁纸和鼠标光标,没有面板、仪表板或打开窗口等功能。启动 Unity 桌面大约需要 5-15 分钟。我最初以为它根本无法加载,就像这个问题一样:Unity 无法加载,没有启动器,也没有出现 Dash

输出systemd-analyze blam为:

    1min 39.191s vboxdrv.service
     18.274s mysql.service
     14.793s NetworkManager-wait-online.service
     10.758s dev-sda3.device
      9.964s ModemManager.service
      8.317s apache2.service
      5.701s NetworkManager.service
      5.284s [email protected]
      4.589s accounts-daemon.service
      3.997s apparmor.service
      3.376s systemd-udevd.service
      3.302s thermald.service
      3.248s grub-common.service
      2.859s gpu-manager.service
      2.710s apport.service
      2.629s polkitd.service
      2.232s colord.service
      2.124s ondemand.service
      1.867s irqbalance.service
      1.772s systemd-fsck@dev-disk-by\x2duuid-736fbfa7\x2d20ca\x2d4666\x2d897c\x2d6f89f2eadd57.service
      1.678s lightdm.service
      1.424s bluetooth.service
      1.393s speech-dispatcher.service
      1.367s systemd-modules-load.service
      1.346s systemd-logind.service
      1.193s console-setup.service
      1.184s upower.service
      1.184s avahi-daemon.service
      1.165s systemd-user-sessions.service
      1.165s rsyslog.service
      1.140s keyboard-setup.service
      1.075s systemd-tmpfiles-setup-dev.service
      1.014s udisks2.service
       989ms alsa-restore.service
       986ms systemd-journald.service
       910ms systemd-tmpfiles-setup.service
       835ms sys-kernel-debug.mount
       835ms dev-hugepages.mount
       796ms home.mount
       650ms dev-mqueue.mount
       629ms systemd-rfkill.service
       552ms kmod-static-nodes.service
       496ms networking.service
       444ms wpa_supplicant.service
       423ms systemd-fsck@dev-disk-by\x2duuid-3d4e4ad3\x2d6a00\x2d4e37\x2db86f\x2dd6374c5e059f.service
       359ms boot.mount
       322ms [email protected]
       321ms pppd-dns.service
       306ms ufw.service
       299ms dns-clean.service
       266ms systemd-backlight@backlight:acpi_video1.service
       238ms systemd-sysctl.service
       192ms systemd-journal-flush.service
       176ms systemd-udev-trigger.service
       146ms systemd-remount-fs.service
       143ms systemd-random-seed.service
       132ms resolvconf.service
       130ms systemd-backlight@backlight:acpi_video0.service
       124ms dev-mapper-cryptswap1.swap
       103ms systemd-timesyncd.service
        59ms rtkit-daemon.service
        55ms systemd-update-utmp.service
        31ms systemd-backlight@backlight:intel_backlight.service
        29ms setvtrgb.service
        13ms plymouth-start.service
        12ms plymouth-read-write.service
        12ms snapd.autoimport.service
         8ms ureadahead-stop.service
         5ms vboxweb-service.service
         5ms vboxballoonctrl-service.service
         4ms vboxautostart-service.service
         3ms systemd-update-utmp-runlevel.service
         2ms sys-fs-fuse-connections.mount
         1ms plymouth-quit-wait.service
         1ms rc-local.service
       677us snapd.socket

答案1

您是否尝试过链接中解释的所有上述方法。
您还可以尝试:

apt-get --reinstall install unity 

如果不成功,那么

apt-get install ubuntu-desktop

答案2

问题在于有很多点文件。自从我将很多(大约 1 GB)应用程序移至 以来.local/share/applications,Unity 变得太慢了。

相关内容