切换到控制台然后看看~/.Xauthority的组属性是否正确,如果被改成root组了,就会造成不能登陆,你将其删除就ok了 转载于:https://www.cnblogs.com/barfoo/p/3937001.html