自从正式发行当天就安装干净的SSD以来,我一直在运行18.04,没有任何问题。
开机登录需要几秒钟(最多10秒)
然后,我今天早上做了定期升级:
$ sudo apt update && sudo apt dist-upgrade
安装/升级的软件包是:
Install: linux-headers-4.15.0-24:amd64 (4.15.0-24.26, automatic), linux-headers-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-extra-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-image-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic)
Upgrade: gnome-control-center-data:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-headers-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-image-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), linux-signed-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center-faces:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-generic:amd64 (4.15.0.23.25, 4.15.0.24.26)
升级完成后,我重新启动,并注意到Ubuntu加载/启动屏幕(登录之前)有2-3分钟的延迟(点上未指示任何进度/活动)。
我关闭电源并尝试再次启动,但现在一直持续出现此延迟。关闭也慢得多。
更新#1(2018-07-03):
对systemd的分析:
$ sudo systemd-analyze blame
3min 53.073s plymouth-quit-wait.service
2min 20.699s snapd.seeded.service
49.949s snapd.service
6.186s NetworkManager-wait-online.service
1.148s dev-sda2.device
1.098s plymouth-start.service
显示该信息plymouth-quit-wait.service
(我现在认为这与Ubuntu加载/启动屏幕有关),并且snapd.seeded.service
是目前运行时间最长的服务。所以我比较了之前dist-upgrade
和之后的时间:
$ journalctl -u plymouth-quit-wait.service --since today
-- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:38:05 BST. --
Jul 03 04:15:43 user-laptop systemd[1]: Starting Hold until boot process finishes up...
Jul 03 04:15:46 user-laptop systemd[1]: Started Hold until boot process finishes up.
-- Reboot --
Jul 03 04:21:17 user-laptop systemd[1]: Starting Hold until boot process finishes up...
Jul 03 04:24:52 user-laptop systemd[1]: Started Hold until boot process finishes up.
升级之前plymouth-quit-wait.service
花了3秒钟。经过升级花了3分钟 35秒
$ journalctl -u snapd.seeded.service --since today
-- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:42:14 BST. --
Jul 03 04:15:43 user-laptop systemd[1]: Starting Wait until snapd is fully seeded...
Jul 03 04:15:43 user-laptop systemd[1]: Started Wait until snapd is fully seeded.
-- Reboot --
Jul 03 04:22:47 user-laptop systemd[1]: Starting Wait until snapd is fully seeded...
Jul 03 04:24:49 user-laptop systemd[1]: Started Wait until snapd is fully seeded.
升级之前snapd.seeded.service
花费了0秒。经过升级花了2分钟 2秒。
更新#2(2018-07-06):
今天早上的启动看到了延迟的返回。
所以我想我们仍在等待kernel / plymouth / snapd更新。
更新#3(2018-07-12):
该问题似乎已解决,但是我没有看到任何有关snap或plymouth的更新,并且我仍在运行4.15.0-24内核。因此,我不确定哪个软件包更新可以解决该问题,或者它是否可以解决问题。在启动板上读取错误更新后,我不清楚对哪些程序包做了什么(或正在完成)。如果有人可以澄清,那将非常有用。
3min 57.515s plymouth-quit-wait.service
2min 24.588s snapd.seeded.service