Ubuntu 20.04 LTS 启动非常慢

Ubuntu 20.04 LTS 启动非常慢

此版本的 Ubuntu 启动时间非常长

主板:ASRock H81M-DGS 内核:Linux 5.8.0-59-generic (x86_64 处理器:Celeron CPU G1840 @2.80GHz x2 内存:8GB 显卡 = Intel HD Graphics (HSW GT1) HDD = 500.1 GB

systemd-analyze time luis@luis-desktop:~$ systemd-analyze time Startup finished in 3.368s (kernel) + 2min 17.716s (userspace) = 2min 21.084s graphical.target reached after 2min 17.668s in userspace luis@luis-desktop:~$
使用秒表需要4分32秒。

怎样才能解决这个问题?谢谢

答案1

命令没有结束,我等了 30 分钟,它看起来完全停止了。

luis@luis-desktop:~$ systemd-analyze blame 1分钟 4.934秒 apt-daily-upgrade.service
37.708秒 plymouth-quit-wait.service
35.603秒 man-db.service
23.313秒 snapd.service
19.481秒 systemd-journal-flush.service
18.481秒 dev-sda5.device 17.987
秒 accounts-daemon.service
17.927秒 networkd-dispatcher.service
14.990秒 udisks2.service
12.843秒 logrotate.service
12.678秒 NetworkManager-wait-online.service
11.452秒 polkit.service
11.333秒 dev-loop14.device
11.017秒 NetworkManager.service
11.011秒 dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
1-23 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
1-24 行...跳过... 1 分钟4.934 秒 apt-daily-upgrade.service
37.708 秒 plymouth-quit-wait.service
35.603 秒 man-db.service
23.313 秒 snapd.service
19.481 秒 systemd-journal-flush.service
18.481 秒 dev-sda5.device
17.987 秒 accounts-daemon.service
17.927 秒 networkd-dispatcher.service
14.990 秒 udisks2.service
12.843 秒 logrotate.service
12.678 秒 NetworkManager-wait-online.service
11.452 秒 polkit.service
11.333 秒 dev-loop14.device
11.017 秒 NetworkManager.service
11.011 秒 dev-loop16.device
10.959 秒 dev-loop8.device
10.948 秒switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
1-25 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
第 1-26 行...正在跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
1-27 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
第 1-28 行...正在跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603 秒 man-db.service
23.313 秒 snapd.service
19.481 秒 systemd-journal-flush.service
18.481 秒 dev-sda5.device
17.987 秒 accounts-daemon.service
17.927 秒 networkd-dispatcher.service
14.990 秒 udisks2.service
12.843 秒 logrotate.service
12.678 秒 NetworkManager-wait-online.service
11.452 秒 polkit.service
11.333 秒 dev-loop14.device
11.017 秒 NetworkManager.service
11.011 秒 dev-loop16.device
10.959 秒 dev-loop8.device
10.948 秒 switcheroo-control.service
10.945 秒 thermald.service
10.858 秒 systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
第 1-29 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575秒 dev-loop5.device
9.512秒 grub-common.service
9.405秒 dev-loop12.device
9.006秒 dev-loop10.device
8.721秒 dev-loop13.device
8.711秒 dev-loop7.device
8.423s dev-loop9.device
1-30 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device
7.888s dev-loop11.device
1-31 行...正在跳过... 1 分钟4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device 8.711s dev-loop7.device 8.423s dev-
loop9.device 7.888s dev-loop11.device 7.704s dev-loop6.device 第 1-32 行...正在跳过... 1 分钟 4.934s apt-daily-upgrade.service 37.708 秒 plymouth-quit-wait.service 35.603 秒 man-db.service 23.313 秒 snapd.service 19.481 秒 systemd-journal-flush.service 18.481 秒 dev-sda5.device 17.987 秒 accounts-daemon.service










17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device
7.888s dev-loop11.device
7.704s dev-loop6.device
7.587s dev-loop4.device
1-33 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device 7.888s
dev-loop11.device
7.704s dev-loop6.device
7.587s dev-loop4.device
7.571s dev-loop0.device
1-34 行...跳过... 1min 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device
7.888s dev-loop11.device
7.704s dev-loop6.device
7.587s dev-loop4.device
7.571s dev-loop0.device
7.539s dev-loop2.device
1-35 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device
7.888s dev-loop11.device
7.704s dev-loop6.device
7.587s dev-loop4.device
7.571s dev-loop0.device
7.539s dev-loop2.device
7.445s dev-loop1.device
1-36 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device
7.888s dev-loop11.device
7.704s dev-loop6.device
7.587s dev-loop4.device
7.571s dev-loop0.device
7.539s dev-loop2.device
7.445s dev-loop1.device
5.434s systemd-udevd.service
1-37 行...跳过... 1 分钟 4.934s apt-daily-upgrade.service
37.708s plymouth-quit-wait.service
35.603s man-db.service
23.313s snapd.service
19.481s systemd-journal-flush.service
18.481s dev-sda5.device
17.987s accounts-daemon.service
17.927s networkd-dispatcher.service
14.990s udisks2.service
12.843s logrotate.service
12.678s NetworkManager-wait-online.service
11.452s polkit.service
11.333s dev-loop14.device
11.017s NetworkManager.service
11.011s dev-loop16.device
10.959s dev-loop8.device
10.948s switcheroo-control.service
10.945s thermald.service
10.858s systemd-logind.service
10.221s wpa_supplicant.service
10.210s dev-loop17.device
9.882s dev-loop15.device
9.587s dev-loop3.device
9.575s dev-loop5.device
9.512s grub-common.service
9.405s dev-loop12.device
9.006s dev-loop10.device
8.721s dev-loop13.device
8.711s dev-loop7.device
8.423s dev-loop9.device
7.888s dev-loop11.device
7.704s dev-loop6.device
7.587s dev-loop4.device
7.571s dev-loop0.device 7.539s dev-loop2.device 7.445s dev-loop1.device
5.434s systemd-udevd.service 4.976s gpu-manager.service 1-38 行



相关内容