Задержка инициализации среды рабочего стола в 20.04 (ПОМОГИТЕ!) - proUbuntu
3 голосов
/ 20 августа 2020

Технические характеристики

Управление дисплеем r: lightdm 1.30.0

Среда рабочего стола: gnome 3.36.3 (хотя я также пробовал xfce)

Проблема / Фон

Как только я вхожу в систему, все, что я могу видеть (fo r хотя бы минуту), - это обои r и мышь. В конце концов остальная часть рабочего стола загружается, и все в порядке до go. Если я выйду и вернусь, у меня не будет той же проблемы, что и при запуске. Кроме того, я не могу использовать tty, чтобы узнать, что происходит, потому что вход в tty требует времени r - возможно, связанная проблема (аутентификация)?

Первоначально я думал проблема была lightdm, но оказывается, что если я переключаюсь на gdm3, у меня такая же проблема, за исключением того, что вместо просмотра walpape r и мыши у меня просто черный экран. Теперь я убежден, что проблема кроется в GNOME DE.

Попытки

  • Установка haveged
  • Отключение lightdm.service и startx ing
  • Отключение / удаление расширений gnome
  • Установка / использование gdm3
  • Установка / использование xubuntu-desktop
  • Использование проприетарных решений NVIDIA и nouveau видеодрайверы
  • Обновление до 20.10 Groovy Gorilla (пробует это сейчас - обновится, если работает / не работает)

Журналы [EDITED]

I применил более целенаправленный подход, и как только я ввел свои учетные данные около 15:06:20, я приурочил продолжительность к инициализации DE (~ 58 с). Все журналы ниже взяты из journalctl в этот период времени, а первые три адаптированы к определенной категории c.

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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:81:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:84:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:87:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:606:9
                                                  _add_recording_delay_sub_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:347:26
                                                  _init_main_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:141:14
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:119:14
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:610:9
                                                  _add_recording_delay_sub_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:347:26
                                                  _init_main_menu@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:141:14
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:119:14
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":610:33]
                                                  4 _add_recording_delay_sub_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":347:25]
                                                  6 _init_main_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":141:13]
                                                  8 _init() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":119:13]
                                                  10 enable() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":610:33]
                                                  4 _add_recording_delay_sub_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":347:25]
                                                  6 _init_main_menu() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":141:13]
                                                  8 _init() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js":119:13]
                                                  10 enable() ["/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:627:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/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/clipboard-indicator@tudmotu.com/extension.js:88:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/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/handyscripts2@lucaskenda.com.ar/extension.js:49:7
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/handyscripts2@lucaskenda.com.ar/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/handyscripts2@lucaskenda.com.ar/extension.js:50:7
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/handyscripts2@lucaskenda.com.ar/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/handyscripts2@lucaskenda.com.ar/extension.js:228:7
                                                  _init@/home/sterlingbutters/.local/share/gnome-shell/extensions/handyscripts2@lucaskenda.com.ar/extension.js:52:12
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/handyscripts2@lucaskenda.com.ar/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:231:32
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:239:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:231:32
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:239:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:231:32
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:239:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:241:17
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/extension.js:54:9
                                                  enable@/home/sterlingbutters/.local/share/gnome-shell/extensions/icon-hider@kalnitsky.org/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/icon-hider@kalnitsky.org/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 apt-update-indicator@franglais125.gmail.com: 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 tor@default.service                                  
 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 обычно не занимает так много времени.

Ответы [ 2 ]

1 голос
/ 31 августа 2020

Отключить networkd-dispatcher

От Reddit :

Отключить сетевые службы:

Если вы не системный администратор, вам это не нужно этот. Gui в любом случае использует network-mange r (и у него есть собственная диспетчеризация r).

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

Существуют и другие r советы по скорости загрузки, но это кажется вам наиболее актуальным r case.

Отчет об ошибке

Существует отчет об ошибке r проблема:

Кажется, он начался с 20.04 as 16.04 похоже, нет проблемы:

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

Вы должны подписаться на отчет об ошибке и следить за прогрессом.

1 голос
/ 24 августа 2020

Ошибки 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

Вы пытались посмотреть Управление настройками r -> Система (раздел) -> Сессия и запуск - > Дополнительно (вкладка) - у меня отключен «Запускать службы KDE при запуске».

Также в «Автозапуске приложения» может отображаться kwallet o r другие r элементы KDE. У меня минималистичный набор элементов gnome / kde - все gnome, кроме «S SH Key Agent (связка ключей GNOME: S SH Agent)» и «Настройки GNOME отменяют перенос», не проверяются, и ничего не выпущено KDE.

...