我安装了 Ubuntu 22.04,一段时间以来,我已经很长时间(2 个月)没有使用这台机器了。2 个月后,我打开机器并使用包管理器运行升级。升级后不久,我注意到登录比平时花费了更多时间,比如几分钟。
现在,启动时登录系统所需的时间比平时更长。大约需要 1-2 分钟。如果我使用锁定用户选项,情况会变得更糟。我不确定如何调试这些问题。大多数软件包都与 Nvidia 驱动程序有关。我担心接触驱动程序,因为如果处理不当,它们会变得多么混乱。
如何恢复正常登录时间?
以下是 apt 保留的软件包列表。
以下包裹已被保留: gnome-tweaks grub-efi-amd64-bin grub-efi-amd64-signed gzip libnvidia-cfg1-510 libnvidia-计算-510 libnvidia-计算-510:i386 libnvidia-解码-510 libnvidia-解码-510:i386 libnvidia-encode-510 libnvidia-encode-510:i386 libnvidia-extra-510 libnvidia-fbc1-510 libnvidia-fbc1-510:i386 libnvidia-gl-510 libnvidia-gl-510:i386 libspeechd2 Linux 模块-nvidia-510-通用-hwe-22.04 nvidia-计算-实用程序-510 nvidia-dkms-510 nvidia-驱动程序-510 nvidia-内核通用-510 nvidia-内核源-510 nvidia-实用程序-510 python3-speechd 语音调度器 语音调度器音频插件 语音调度器-espeak-ng xserver-xorg-video-nvidia-510 xwayland
➜ ~sudo systemd-analyze 责备 [sudo] hiccup 的密码: 48.827s plymouth-quit-wait.service 23.858s apt-daily-upgrade.service 22.758s snapd.service 15.291s gpu-manager.service 10.302s NetworkManager-等待-在线.服务 8.719s networkd-dispatcher.service 8.362s 网络管理器.服务 8.243s dev-sda2.设备 7.600s udisks2.服务 6.856s 账户守护进程.服务 6.463s gdm.服务 5.862s dev-loop25.device 5.825s dev-loop16.device 5.704s dev-loop19.device 5.648s dev-loop13.device 5.475s dev-loop17.device 5.436s dev-loop18.device 5.409s dev-loop20.device 5.403s 电源配置文件守护进程.服务 5.401s dev-loop22.device 5.398s dev-loop21.device 5.216s dev-loop14.device 5.166s dev-loop15.device 5.020s dev-loop6.device 5.016s dev-loop9.device 4.816s polkit.service 4.453s avahi-守护进程.service 4.449s 蓝牙服务 4.285s dev-loop23.device 4.225s dev-loop8.device 4.167s dev-loop24.device 4.078s switcheroo-control.service 4.071s thermald.service 4.066s systemd-logind.service 4.025s wpa_supplicant.服务 3.886s ModemManager.服务 3.692s dev-loop3.device 3.664s dev-loop2.device 3.040s dev-loop1.device 2.777s cups.service 2.382s dev-loop12.device 2.351s rsyslog.service 2.347s dev-loop4.device 2.289s dev-loop10.device 2.281s tlp.service 2.218s 安全启动-db.service 2.215s dev-loop5.device 2.131s apport.服务 1.855s 预加载.服务 1.818s dev-loop7.device 1.667s snapd.apparmor.service 1.594s man-db.service 1.356s kerneloops.服务 1.304s 更新通知程序下载.服务 1.295s dev-loop0.device 1.222s systemd-sysctl.service 1.187s systemd-tmpfiles-setup.service 1.096s snap-authy-10.mount 1.090s grub-common.service 1.066s snap-authy-11.mount 1.053s snap-bare-5.mount 1.030s apparmor.service 1.005s snap-canonical\x2dlivepatch-138.mount 995ms snap-canonical\x2dlivepatch-146.mount 904ms systemd-modules-load.service 893ms 键盘设置服务 890ms snap-core-13425.mount 884ms ua-timer.服务 878ms snap-core-13741.mount 859ms snap-core18-2560.mount 849ms snap-core18-2566.mount 832ms snap-core20-1518.mount 828ms snap-core20-1623.mount 753ms apt-daily.service 705毫秒[电子邮件保护] 624ms systemd-random-seed.service 614ms snap-firefox-1860.mount 599ms snap-gnome\x2d3\x2d28\x2d1804-161.mount 536ms snap-gnome\x2d3\x2d38\x2d2004-106.mount 535ms systemd-sysusers.service 523ms 软件包套件.服务 517ms snap-gnome\x2d3\x2d38\x2d2004-115.mount 515ms snap-gtk\x2dcommon\x2dthemes-1534.mount 512ms plymouth-start.service 506ms snap-gtk\x2dcommon\x2dthemes-1535.mount 475毫秒[电子邮件保护] 467ms systemd-update-utmp.service 450ms grub-initrd-fallback.service 439ms systemd-backlight@leds:asus::kbd_backlight.service 434ms snap-hunspell\x2ddictionaries\x2d1\x2d7\x2d2004-2.mount 421ms systemd-udev-trigger.service 418ms e2scrub_reap.service 334ms swapfile.swap 317ms snap-snap\x2dstore-582.mount 274ms snap-snap\x2dstore-592.mount 255ms upower.服务 252ms colord.service 246ms systemd-tmpfiles-setup-dev.service 242ms snapd.seed.service 218ms systemd-fsck@dev-disk-by\x2duuid-812E\x2d76A3.service 218ms snap-snapd-16292.mount 195ms systemd-user-sessions.service 182ms snap-snapd-16778.mount 179ms openvpn.service 177ms dev-hugepages.mount 176ms dev-mqueue.mount 175ms 系统内核调试.mount 175ms 系统内核跟踪.mount 172ms snap-snapd\x2ddesktop\x2dintegration-10.mount 168ms snap-snapd\x2ddesktop\x2dintegration-14.mount 165毫秒[电子邮件保护] 165ms kmod-静态节点.service 164毫秒[电子邮件保护] 131ms snap-sublime\x2dtext-112.mount 130ms systemd-journal-flush.service 119ms apport-自动报告服务 117ms systemd-remount-fs.service 109ms setvtrgb.service 102ms systemd-resolved.service 91ms systemd-oomd.service 90ms systemd-timesyncd.service 86ms systemd-udevd.service 72ms 启动-efi.mount 67ms systemd-tmpfiles-clean.service 67ms proc-sys-fs-binfmt_misc.mount 63ms modprobe@chromeos_pstore.service 60ms ufw.服务 55ms fwupd-refresh.service 53ms var-snap-firefox-common-host\x2dhunspell.mount 29ms 控制台设置服务 28毫秒[电子邮件保护] 27ms systemd-journald.service 26ms plymouth-read-write.service 18ms systemd-update-utmp-runlevel.service 17毫秒 modprobe@efi_pstore.service 13ms snap-firefox-1877.mount 10ms modprobe@pstore_blk.service 10ms rtkit-daemon.service 9ms systemd-backlight@backlight:intel_backlight.service 9ms alsa-恢复.服务 7ms modprobe@pstore_zone.service 5ms resolvconf-pull-resolved.service 5毫秒[电子邮件保护] 5ms 系统文件系统保险丝连接.mount 4ms 系统内核配置.mount 3ms dev-loop26.device 2ms snapd.socket
系统信息
➜ 龍邊 描述:笔记本 产品:GL502VT (ASUS-NotebookSKU) 供应商:华硕电脑公司 版本:1.0 序列号:G4N0CV****** 宽度:64 位 功能:smbios-3.0.0 dmi-3.0.0 smp vsyscall32 配置:启动=正常底盘=笔记本系列=GL sku=ASUS-NotebookSKU uuid=********* *-核 描述:主板 产品:GL502VT 供应商:华硕电脑公司 物理 ID:0 版本:1.0 序列号:BSN12345********* 槽位:中间 *-固件 描述:BIOS 供应商:American Megatrends Inc. 物理 ID:0 版本:GL502VT.203 日期:2016 年 2 月 25 日 大小:64KiB 容量:6016KiB 功能:pci 升级阴影 cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi