我从搜索中知道,这在过去几年中已经多次出现。然而,大多数解决方案只是确保正确设置 .Xautority 的所有权,并将 777 设置为 /tmp 的权限。就我而言,这些都不是问题。我检查了。我发现的另一个常见原因是 Nvidia 与 Nouveau 图形驱动程序的对比。但是,自从我上次更改图形驱动程序以来,我已经重新启动并使用了几次计算机并且没有任何问题。
这些问题是在我允许 AutoUpdate 程序安装一些更新后开始的。值得注意的是,这些更新有点可疑。它昨天想安装它们,我最初说不。然后我手动运行更新程序,它说没有更新。今天当它再次问我时,我说是的,它做了它的事。然后它要求我重新启动我所做的计算机。那是麻烦开始的时候。下面是各种 .xsession-errors 文件的内容。
用户 1 次尝试 1
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: gnome-session (Unity) main process (2563) terminated with status 1
init: unity-settings-daemon main process (2537) killed by TERM signal
init: logrotate main process (2458) killed by TERM signal
init: update-notifier-crash (/var/crash/_usr_bin_nautilus.1000.crash) main process (2496) killed by TERM signal
init: update-notifier-release main process (2502) killed by TERM signal
init: xsession-init main process (2531) killed by TERM signal
init: hud main process (2550) killed by TERM signal
init: unity-panel-service main process (2576) killed by TERM signal
init: Disconnected from notified D-Bus bus
init: window-stack-bridge main process (2488) killed by KILL signal
用户 1 尝试 2
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: gnome-session (Unity) main process (2010) terminated with status 1
init: unity-settings-daemon main process (2002) killed by TERM signal
init: Disconnected from notified D-Bus bus
init: logrotate main process (1928) killed by TERM signal
init: window-stack-bridge main process (1959) killed by TERM signal
init: update-notifier-release main process (1978) killed by TERM signal
init: hud main process (2006) killed by TERM signal
init: indicator-bluetooth main process (2088) killed by TERM signal
init: indicator-power main process (2094) killed by TERM signal
init: indicator-datetime main process (2095) killed by TERM signal
init: indicator-sound main process (2098) killed by TERM signal
init: indicator-printers main process (2103) killed by TERM signal
init: indicator-session main process (2108) killed by TERM signal
init: indicator-application main process (2148) killed by TERM signal
用户 2 尝试 1
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: at-spi2-registryd main process ended, respawning
init: gnome-session (Unity) main process (2642) terminated with status 1
init: unity-settings-daemon main process (2634) killed by TERM signal
init: logrotate main process (2427) killed by TERM signal
init: update-notifier-release main process (2468) killed by TERM signal
init: upstart-dbus-session-bridge main process (2472) terminated with status 1
init: xsession-init main process (2631) killed by TERM signal
init: hud main process (2638) killed by TERM signal
init: unity-panel-service main process (2648) killed by TERM signal
init: at-spi2-registryd main process (2687) terminated with status 1
init: Disconnected from notified D-Bus bus
编辑:
我发现的另一个常见解决方案是通过重命名现有的 .Xauthority 来强制创建新的 .Xauthority。我试过这个,它也没有用。
用户 1 尝试 3
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: gnome-session (Unity) main process (2022) terminated with status 1
init: Disconnected from notified D-Bus bus
init: logrotate main process (1939) killed by TERM signal
init: window-stack-bridge main process (1970) killed by TERM signal
init: update-notifier-release main process (1990) killed by TERM signal
init: hud main process (2018) killed by TERM signal
init: indicator-bluetooth main process (2099) killed by TERM signal
init: indicator-power main process (2101) killed by TERM signal
init: indicator-datetime main process (2105) killed by TERM signal
init: indicator-sound main process (2110) killed by TERM signal
init: indicator-printers main process (2114) killed by TERM signal
init: indicator-session main process (2119) killed by TERM signal
init: indicator-application main process (2133) killed by TERM signal
编辑:
万一这些信息有帮助,当我运行时:
sudo apt-get -f install
它所做的只是列出我可以使用“自动删除”删除的包;除了其中一个之外,所有这些都用于以前的内核版本。
编辑:
以 root 身份登录不起作用,但这次我确实收到了一条错误消息。
我还尝试重新运行 Nvidia 的配置脚本,但这也无济于事。
当我在 TTY 中时,我尝试使用“lshw”查看驱动程序信息如何查找我的系统上正在使用的视频驱动程序?. 它有“*-display UNCLAIMED”和“configuration:latency=0”这行。
我还检查了旧的 xorg.conf,发现它完全是空的。这就是为什么我尝试回到 Nouveau 驱动程序失败的原因吗?
步骤#1:(启用root帐户并登录)
sudo pico /etc/lightdm/lightdm.conf
# 编辑此文件确保文件看起来像这样......不要删除您在那里看到的任何内容,只需添加缺失的行。使用箭头键在文件中移动,Control-o保存,Control-x退出编辑器。
sudo passwd root
#设置root密码exit
# 返回图形屏幕root
和新的root密码第 2 步:(修复根 .profile)
sudo pico /root/.profile
mesg n || true
_tty -s && mesg n || true
exit
以返回图形 tty第 3 步:
由于我们已确定您甚至无法以 root 身份登录,因此我们已确认存在系统问题,并且与权限无关。
我们将尝试重新安装几次,如果这不起作用,您将需要重新安装操作系统(取消选中“格式”框,以保持您现有的 /home 目录完好无损)。您需要确保对重要数据进行良好备份,以防万一。您可以通过启动到 Ubuntu Live DVD/USB 并将文件复制到外部硬盘或 USB 闪存驱动器来进行手动备份。
键入以下...
尝试登录。如果这不起作用,请重新安装操作系统。更新#1:
重新安装Nvidia驱动程序解决了这个问题。