Ubuntu 14.04登录循环问题


9

我正在使用Ubuntu 14.04.2 LTS,并且在电源故障后无法登录。
在突然发生这种情况之前,计算机已经可以正常工作了几个月。

症状是:

  • 尝试登录后,屏幕变黑约15秒钟,然后返回登录屏幕。
  • 我可以以客人身份登录而没有问题
  • 我可以通过tty1〜tty6作为我自己登录

我尝试/检查了以下内容,但均未成功:

  1. 更改.Xauthority所有权无效
    chown username:username .Xauthority

  2. 更改用户目录权限无效
    sudo chmod -R u+w /home/[username]

  3. 我尝试过与lightdm
    dpkg-reconfigure lightdm

  4. sudo mv ~/.Xauthority ~/.Xauthority.backup
    sudo service lightdm restart

  5. 里面什么都没有 .xsession-errors

  6. 尝试使用gdm代替lightdm,但问题完全相同

  7. 卸载lightdm并重新安装

  8. /tmp 目录确实显示 drwxrwxrwt

我在网上发现这些解决方案都没有用。谁能帮忙吗?

编辑1):
输入时sudo tail /var/log/lightdm/lightdm.log,显示10行。(全部以开头DEBUG:):

Activating VT 7  
Activating login1 session c3  
Session pid=8697: Greeter connected version=1.10.4  
Session pid=8697: Greeter start authentication for [username]  
Session pid=8769: Started with service 'lightdm', username [username]  
Session pid=8769: Got 1 message from PAM  
Session pid=8697: Propmpt greeter with 1 message  
User /org/freedesktop/Accounts/User 1000 changed (repeated 3 times) 

另外,当我输入时ls /usr/share/xsessions/,它会显示

gnome.desktop    ubuntu.desktop 

编辑2):

sudo grep 'lightdm:' /var/log/auth.log | tail给出以下内容,所有内容以lightdm:

pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0  
pam_unix(lighdm:session): session closed for user [username]  
PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory  
PAM adding faulty module: pam_kwallet.so  
pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
pam_ck_connector(lightdm-greeter:session): nox11 mode, ignoring PAM_TTY :0  
PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory  
PAM adding faulty module: pam_kwallet.so  
pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user [username]"  
(this one starts with sudo: instead of lightdm:) [username] : TTY=tty1 ; PWD=/home/[username] ; USER=root ; COMMAND=/bin/grep lightdm: /var/log/auth.log  

显示管理器日志中是否有任何内容(例如sudo tail /var/log/lightdm/lightdm.log)?xsessions目录(ls /usr/share/xsessions/)中列出了您的常规用户会话吗?
steeldriver

谢谢-auth.log呢?例如sudo grep 'lightdm:' /var/log/auth.log | tail
steeldriver

这超出了我的理解范围,但是我将告诉您所看到的内容:Pam是计算机的某种安全系统。它正在尝试使用kwalletmanager(该程序是KDE的密码安全程序)进行某些操作。但是,它正在尝试访问似乎用于执行此操作的库-/lib/security/pam_kwallet.so,但找不到它。检查该文件是否存在及其权限(以及它所在的目录)。您可以安装apt-file并使用它来查找该文件来自哪个软件包,以查看其是否已正确安装和更新。apt-file更新1st
Joe

显然,pam_kwallet.so对于Kubuntu是可选的([ bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1309535])。注释掉这些可选行可消除错误,但不能解决问题。我还安装了Xubuntu和Xfce,以查看它是否可以工作,但没有成功。:(
贾斯汀·黄

我重新安装了Ubuntu 14.04.2 LTS(格式化先前的安装),但是,我遇到了完全相同的问题。我认为问题出在[user]文件夹中?有人可以救我吗?这是我的研究计算机,论文研究将被推迟,直到我再次运行它!:(
贾斯汀·黄

Answers:



2

我知道已经有一段时间了,但是如果问题仍然存在,她就是我要做的。这看起来很像是“用户”特定的问题,尤其是在重新安装后。

首先,尝试创建一个新用户(sudo adduser "username"),看看是否可行。如果是这样,则可以确认本地配置中有错误。

尝试使用以下命令从新的新配置开始(从tty登录有问题的用户名后)

mkdir ~/cfg-backups
mv ~/.config ~/cfg-backup
mv ~/.dconf ~/cfg-backup

并检查您是否重新营业。然后,您可以从您需要的备份中还原任何配置。


2

就我而言,以下方法解决了问题

首先按来登录tty CtrlAltF1

重新安装Ubuntu桌面(即Unity)

sudo apt-get install --reinstall ubuntu-desktop

其他一些技巧也可以在这里找到:ubuntu 14.04登录循环问题

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.