眼镜

眼镜

眼镜

显示管理器:lightdm 1.30.0

桌面环境:(gnome 3.36.3虽然我也尝试过 xfce)

问题/背景

登录后,我能看到的所有东西(至少一分钟)都是壁纸和鼠标。最终,桌面环境的其余部分都已加载,一切准备就绪。如果我注销并重新登录,就不会遇到启动时遇到的问题。此外,我无法使用 tty 来找出发生了什么,因为登录到 tty 需要很长时间 - 也许是一个相关问题(身份验证)?

最初我以为是问题所在,lightdm但事实证明,如果我切换到,gdm3我也会遇到同样的问题,只不过看不到壁纸和鼠标,而只是屏幕变黑了。我现在确信问题出在 GNOME DE 上。

尝试

  • 安装haveged
  • 禁用lightdm.servicestartx
  • 禁用/删除 gnome 扩展
  • 安装/使用gdm3
  • 安装/使用xubuntu-desktop
  • 使用 NVIDIA 专有和新型视频驱动程序
  • 升级到 20.10 Groovy Gorilla(目前正在尝试 - 如果有效/无效将会更新)

日志[已编辑]

我采取了更有针对性的方法,当我在 15:06:20 左右输入登录凭据时,我将持续时间计时到 DE 初始化(约 58 秒)。以下所有日志均取自journalctl该时间范围,前三个日志针对特定类别进行了定制。

lightdm

Aug 25 15:06:23 butters-ubuntu lightdm[2785]: pam_unix(lightdm:auth): Couldn't open /etc/securetty: No such file or directory
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: gkr-pam: unable to locate daemon control file
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: gkr-pam: stashed password to try later in open session
Aug 25 15:06:23 butters-ubuntu systemd[1]: Stopping Session c1 of user lightdm.
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: pam_unix(lightdm:session): session opened for user sterlingbutters by (uid=0)
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: gkr-pam: unlocked login keyring
Aug 25 15:06:23 butters-ubuntu systemd[1]: Stopped Session c1 of user lightdm.
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: pam_unix(lightdm:auth): Couldn't open /etc/securetty: No such file or directory
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: gkr-pam: unable to locate daemon control file
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: gkr-pam: stashed password to try later in open session
Aug 25 15:06:23 butters-ubuntu systemd[1]: Stopping Session c1 of user lightdm.
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: pam_unix(lightdm:session): session opened for user sterlingbutters by (uid=0)
Aug 25 15:06:23 butters-ubuntu lightdm[2785]: gkr-pam: unlocked login keyring
Aug 25 15:06:23 butters-ubuntu systemd[1]: Stopped Session c1 of user lightdm.

systemd

https://pastebin.ubuntu.com/p/bHsPmY7DH9/

gnome-shell

Aug 25 15:06:49 butters-ubuntu gnome-shell[3336]: current session already has an ibus-daemon.
Aug 25 15:06:52 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating service name='org.gnome.Shell.CalendarServer' requested by ':1.50' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:52 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating via systemd: service name='org.gnome.evolution.dataserver.Sources5' unit='evolution-source-registry.service' requested by ':1.52' (uid=1000 pid=3343 comm="/usr/libexec/gnome-shell-calendar-server ">
Aug 25 15:06:53 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating via systemd: service name='org.gnome.evolution.dataserver.Calendar8' unit='evolution-calendar-factory.service' requested by ':1.52' (uid=1000 pid=3343 comm="/usr/libexec/gnome-shell-calendar-server>
Aug 25 15:06:54 butters-ubuntu dbus-daemon[1464]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.78' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:55 butters-ubuntu polkitd(authority=local)[1866]: Registered Authentication Agent for unix-session:c2 (system bus name :1.78 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Aug 25 15:06:55 butters-ubuntu gnome-shell[3284]: Telepathy is not available, chat integration will be disabled.
Aug 25 15:06:55 butters-ubuntu dbus-daemon[1464]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.78' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:49 butters-ubuntu gnome-shell[3336]: current session already has an ibus-daemon.
Aug 25 15:06:52 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating service name='org.gnome.Shell.CalendarServer' requested by ':1.50' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:52 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating via systemd: service name='org.gnome.evolution.dataserver.Sources5' unit='evolution-source-registry.service' requested by ':1.52' (uid=1000 pid=3343 comm="/usr/libexec/gnome-shell-calendar-server ">
Aug 25 15:06:53 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating via systemd: service name='org.gnome.evolution.dataserver.Calendar8' unit='evolution-calendar-factory.service' requested by ':1.52' (uid=1000 pid=3343 comm="/usr/libexec/gnome-shell-calendar-server>
Aug 25 15:06:54 butters-ubuntu dbus-daemon[1464]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.78' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:55 butters-ubuntu polkitd(authority=local)[1866]: Registered Authentication Agent for unix-session:c2 (system bus name :1.78 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Aug 25 15:06:55 butters-ubuntu gnome-shell[3284]: Telepathy is not available, chat integration will be disabled.
Aug 25 15:06:55 butters-ubuntu dbus-daemon[1464]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.78' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:56 butters-ubuntu gnome-shell[3438]: Supported
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Some code accessed the property 'ScreencastIface' on the module 'screencast'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbol>
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for EasyScreenCast.indicator
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:81:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:1026:21
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for EasyScreenCast.indicator
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:84:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:1026:21
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for EasyScreenCast.indicator
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:87:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:1026:21
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Slider
                                                  _createMIInfoDelayRec@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:606:9
                                                  _add_recording_delay_sub_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:347:26
                                                  _init_main_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:141:14
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:119:14
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:1026:21
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Slider
                                                  _createMIInfoDelayRec@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:610:9
                                                  _add_recording_delay_sub_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:347:26
                                                  _init_main_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:141:14
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:119:14
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:1026:21
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Some code tried to set a deprecated GObject property.
                                                  2 _createMIInfoDelayRec() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":610:33]
                                                  4 _add_recording_delay_sub_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":347:25]
                                                  6 _init_main_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":141:13]
                                                  8 _init() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":119:13]
                                                  10 enable() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":1026:20]
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Some code tried to set a deprecated GObject property.
                                                  2 _createMIInfoDelayRec() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":610:33]
                                                  4 _add_recording_delay_sub_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":347:25]
                                                  6 _init_main_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":141:13]
                                                  8 _init() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":119:13]
                                                  10 enable() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js":1026:20]
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for EasyScreenCast.indicator
                                                  _enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:627:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:1030:15
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for ClipboardIndicator
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:88:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:860:26
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Initializing Handy Scripts 2 version 3
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Enabling Handy Scripts 2 version 3
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Menu.Menu
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:49:7
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:244:9
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Menu.Menu
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:50:7
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:244:9
Aug 25 15:06:57 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Menu.Menu
                                                  _renderMenu@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:228:7
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:52:12
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:244:9
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Some code accessed the property 'GSETTINGS_HIDDEN' on the module '_config'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols >
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Some code accessed the property 'GSETTINGS_KNOWN' on the module '_config'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols t>
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Some code accessed the property 'EXTENSION_NAME' on the module '_config'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to>
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for ActivitiesButton
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for AppMenuButton
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for DateMenuButton
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for DwellClickIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:231:32
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for DwellClickIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:239:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for ATIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:231:32
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for ATIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:239:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for InputSourceIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:231:32
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for InputSourceIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:239:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for AggregateMenu
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for EasyScreenCast.indicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for ClipboardIndicator
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Menu.Menu
                                                  _refreshIndicators@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:151:14
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Indicator
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:54:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:155:31
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Some code accessed the property 'GSETTINGS_ISINDICATORSHOWN' on the module '_config'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. An>
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Usage of object.actor is deprecated for Indicator
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/[email protected]/extension.js:170:1
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: Found user extension desktop-icons@csoriano, but not loading from /home/sterlingbutters/.local/share/gnome-shell/extensions/desktop-icons@csoriano directory as part of session mode.
Aug 25 15:06:58 butters-ubuntu gnome-shell[3284]: JS ERROR: Could not load extension [email protected]: Error: Missing metadata.json
Aug 25 15:06:59 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating service name='org.freedesktop.FileManager1' requested by ':1.50' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:59 butters-ubuntu dbus-daemon[2940]: [session uid=1000 pid=2940] Activating service name='org.gnome.Shell.Notifications' requested by ':1.50' (uid=1000 pid=3284 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 25 15:06:59 butters-ubuntu gnome-shell[3284]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation

未定制日志

https://paste.ubuntu.com/p/9C9CSr5v5F/

编辑:systemd分析:

阴谋

~$ systemd-analyze
Startup finished in 16.585s (firmware) + 7.742s (loader) + 24.702s (kernel) + 33.323s (userspace) = 1min 22.355s 
graphical.target reached after 32.496s in userspace

~$ systemd-analyze blame
18.280s networkd-dispatcher.service                          
17.725s udisks2.service                                      
 9.125s [email protected]                                  
 8.747s avahi-daemon.service                                 
 8.746s bluetooth.service                                    
 8.742s NetworkManager.service                               
 8.499s switcheroo-control.service                           
 8.472s systemd-logind.service                               
 8.329s thermald.service                                     
 8.321s wpa_supplicant.service                               
 7.567s snapd.service                                        
 7.425s dev-sdb1.device                                      
 5.471s apt-daily.service                                    
 4.737s accounts-daemon.service                              
 3.332s lightdm.service                                      
 3.110s gpu-manager.service                                  
 3.107s networking.service                                   
 3.079s rsyslog.service                                      
 3.036s grub-common.service                                  
 2.992s stunnel4.service                                     
 2.931s dev-loop0.device                                     
 2.909s dev-loop2.device                                     
 2.882s systemd-resolved.service                             
 2.768s colord.service                                       
 2.729s dev-loop1.device                                     
 2.719s dev-loop4.device                                     
 2.704s dev-loop5.device                                     
 2.700s dev-loop6.device                                     
 2.694s dev-loop3.device                                     
 2.685s dev-loop7.device                                     
 2.587s virtualbox.service                                   
 2.512s polkit.service                                       
 2.317s ufw.service                                          
 2.301s ssh.service                                          
 2.218s e2scrub_reap.service                                 
 1.545s systemd-udevd.service                                
 1.396s systemd-tmpfiles-setup.service                       
 1.269s apparmor.service                                     
 1.168s hddtemp.service                                      
 1.130s kerneloops.service                                   
 1.122s rc-local.service                                     
 1.121s systemd-modules-load.service                         
 1.096s vboxweb.service                                      
 1.074s grub-initrd-fallback.service                         
  947ms alsa-restore.service                                 
  873ms systemd-user-sessions.service                        
  866ms lm-sensors.service                                   
  760ms systemd-rfkill.service                               
  724ms systemd-sysctl.service                               
  718ms logrotate.service                                    
  710ms upower.service                                       
  671ms snapd.apparmor.service                               
  621ms slim.service                                         
  588ms systemd-sysusers.service
~
~

~$ systemd-analyze critical-chain 
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @32.496s
└─multi-user.target @32.496s
  └─networkd-dispatcher.service @14.215s +18.280s
    └─basic.target @13.897s
      └─sockets.target @13.895s
        └─snapd.socket @13.887s +6ms
          └─sysinit.target @13.785s
            └─snapd.apparmor.service @13.113s +671ms
              └─apparmor.service @11.842s +1.269s
                └─local-fs.target @11.842s
                  └─run-snapd-ns-canonical\x2dlivepatch.mnt.mount @28.585s
                    └─run-snapd-ns.mount @24.141s
                      └─local-fs-pre.target @5.411s
                        └─systemd-tmpfiles-setup-dev.service @4.828s +579ms
                          └─systemd-sysusers.service @4.236s +588ms
                            └─systemd-remount-fs.service @4.087s +131ms
                              └─systemd-journald.socket @3.850s
                                └─-.mount @2.126s
                                  └─system.slice @2.126s
                                    └─-.slice @2.126s

请注意,我的里程数会随时间而变化critical-chain,即有时这些过程(带有 的过程+<time>)加起来不到几秒钟。也就是说,networkd-dispatcher通常不需要那么长时间才能初始化。

答案1

PAM 错误间接来自 /etc/pam.d/lightdm:

#%PAM-1.0
auth    requisite       pam_nologin.so
auth    sufficient      pam_succeed_if.so user ingroup nopasswdlogin
@include common-auth
auth    optional        pam_gnome_keyring.so
auth    optional        pam_kwallet.so
auth    optional        pam_kwallet5.so
@include common-account
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
#session required        pam_loginuid.so
session required        pam_limits.so
@include common-session
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
session optional        pam_gnome_keyring.so auto_start
session optional        pam_kwallet.so auto_start
session optional        pam_kwallet5.so auto_start
session required        pam_env.so readenv=1
session required        pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale
@include common-password

您是否尝试过查看设置管理器->系统(部分)->会话和启动->高级(选项卡) - 我已禁用“在启动时启动 KDE 服务”。

此外,在“应用程序自动启动”中,它可能会列出 kwallet 或其他 KDE 项目。我选择了最少的 gnome/kde 项目 - 除了“SSH 密钥代理(GNOME 密钥环:SSH 代理)”和“GNOME 设置覆盖迁移”之外的所有 gnome 均未选中,并且没有与 KDE 相关的内容。

答案2

禁用networkd-dispatcher

Reddit

禁用网络服务:

如果您不是系统管理员,则不需要这个。Gui 无论如何都会使用网络管理器(并且它有自己的调度程序)。

sudo apt-get remove networkd-dispatcher
sudo systemctl stop systemd-networkd.service
sudo systemctl disable systemd-networkd.service

还有其他有关启动速度的技巧,但这似乎与您的情况最相关。

错误报告

有一个关于您的问题的错误报告:

似乎始于20.04作为16.04似乎没有问题:

$ ll /etc/securetty
-rw-r--r-- 1 root root 4038 Mar 29  2016 /etc/securetty

您应该订阅错误报告并跟踪进度。

相关内容