web-dev-qa-db-fra.com

Délai d'initialisation de l'environnement de bureau en 20.04 (aide s'il vous plaît!)

Spécifications

Gestionnaire d'affichage: lightdm 1.30.0

Environnement de bureau: gnome 3.36.3 (Bien que j'ai aussi essayé xfce)

Problème/fond

Une fois que je me connecte, tout ce que je peux voir (pendant au moins une minute) est le fond d'écran et la souris. Finalement, le reste de l'environnement de bureau est chargé et tout est bon à partir. Si je me déconnecte et de retour, je n'ai pas le même problème que je fais au démarrage. En outre, je ne peux pas utiliser de tty pour savoir ce qui se passe car la connexion à la TTY prend pour toujours - peut-être un problème connexe (authentification)?

À l'origine, je pensais que le problème était lightdm mais il s'avère si je passe à gdm3 J'ai le même problème sauf au lieu de voir le Walpaper et la souris que je viens d'avoir un écran noir. Je suis maintenant convaincu que le problème réside dans le gnome de.

Tentatives

  • Installation de haveged
  • Désactivation de la lightdm.service et startxing
  • Désactivation/retrait des extensions de gnome
  • Installation/utilisation de gdm3
  • Installation/utilisation de xubuntu-desktop
  • Utilisation des pilotes vidéo exclusifs NVIDIA et NOUVEAU
  • Mise à niveau vers 20.10 Gorilla Groovy (essayant actuellement - mettra à jour si fonctionne/ne fonctionne pas)

Journaux [édité]

J'ai pris une approche plus ciblée et dès que je suis entré dans mes identifiants de connexion vers 15:06:20, j'ai chronométré la durée de l'initialisation (~ 58s). Tous les journaux ci-dessous sont extraits de journalctl dans ce délai et les trois premiers sont adaptés à une catégorie spécifique.

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

Journal non annoré

https://past.ubuntu.com/9c9csr5v5f/

EDIT: systemd Analyse:

Terrain

~$ 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

Remarque Mon kilométrage varie avec critical-chain I.e. Parfois, ces processus (ceux avec +<time>) Ajouter jusqu'à moins de quelques secondes. C'est le networkd-dispatcher ne prend pas normalement aussi longtemps pour initialiser.

3
Sterling Butters

Désactiver networkd-dispatcher

De - reddit :

Désactiver les services NetworkD:

Si vous n'êtes pas un administrateur système, vous n'avez pas besoin de cela. Gui utilise Network-Manger (et il a son propre répartiteur) de toute façon.

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

Il existe d'autres conseils de vitesse de démarrage, mais cela apparaît le plus pertinent pour votre cas.

Rapport d'erreur

Il y a un rapport de bogue sur votre problème:

Il semble avoir commencé avec 20.04 comme 16.04 ne semble pas avoir le problème:

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

Vous devez vous abonner au rapport de bogue et suivre les progrès.

1
WinEunuuchs2Unix