Linux Mint 20 正在启动到命令行上的登录提示符

Linux Mint 20 正在启动到命令行上的登录提示符

我将 Linux Mint 从版本 18 升级到版本 20 Ulyana。升级后,我的 Mint 启动后会在命令行上出现登录提示。我可以正常登录,但我必须startx在命令行上输入才能进入桌面。我喜欢它和以前一样,直接启动到桌面。我在这里缺少什么?请帮忙。

按照说明我已经安装了 lightdm 服务。重新启动并检查 lightdm 服务的状态后,我得到以下状态。看起来好像缺少了一些东西。

    systemctl status lightdm
● lightdm.service - Light Display Manager
     Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
     Active: active (running) since Sat 2021-11-27 20:10:21 PST; 1min 47s ago
       Docs: man:lightdm(1)
    Process: 965 ExecStartPre=/bin/sh -c [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ] (code=exited, status=0/SUCCESS)
   Main PID: 975 (lightdm)
      Tasks: 5 (limit: 4576)
     Memory: 97.7M
     CGroup: /system.slice/lightdm.service
             ├─ 975 /usr/sbin/lightdm
             └─1008 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Nov 27 20:10:23 smaqsood-LinuxMint lightdm[1213]: gkr-pam: gnome-keyring-daemon started properly
Nov 27 20:10:25 smaqsood-LinuxMint lightdm[1364]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Nov 27 20:10:25 smaqsood-LinuxMint lightdm[1364]: PAM adding faulty module: pam_kwallet.so
Nov 27 20:10:25 smaqsood-LinuxMint lightdm[1364]: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Nov 27 20:10:25 smaqsood-LinuxMint lightdm[1364]: PAM adding faulty module: pam_kwallet5.so
Nov 27 20:10:25 smaqsood-LinuxMint lightdm[1364]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "smaqsood"
Nov 27 20:10:36 smaqsood-LinuxMint lightdm[1364]: gkr-pam: unable to locate daemon control file
Nov 27 20:10:36 smaqsood-LinuxMint lightdm[1364]: gkr-pam: stashed password to try later in open session
Nov 27 20:10:36 smaqsood-LinuxMint lightdm[1364]: pam_unix(lightdm:session): session opened for user smaqsood by (uid=0)
Nov 27 20:10:36 smaqsood-LinuxMint lightdm[1364]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring

答案1

您的 DM 可能未启用,我相信 Linux Mint 20 使用 LightDM,因此请尝试systemctl enable lightdm重新启动。

相关内容