当前位置: 首页>>技术教程>>正文


unity – 登录后,有一个黑屏,我的光标,没有其他!在Ubuntu 12.10中

, , ,

问题描述

我已经使用Ubuntu(12.10)很长时间了,最​​近,我的Ubuntu进行了另一个更新。

出现整个更新提示,然后显示密码提示,最后显示良好的进度栏…

一切顺利,然后,我关闭了计算机。

第二天,我打开电脑,进入登录屏幕。我继续并登录,但是在那之后,我只能看到黑屏和光标!

我查看了论坛,并获得了各种技巧,但没有一个起作用。

现在,我受困于完全没用的Ubuntu安装。

还有一件事:

我什至尝试通过Guest登录,但是同样的问题! :\

My Computer Specs:
Motherboard: Intel DG41WV
Processor: Intel Core 2 Quad Q6600 @ 2.40GHz
Graphics: Intel G41 Express Chipset
RAM: Dual Channel, DDR3 2*2GB (4096 MBytes)
HDD: Seagate 500GB SATA

—-详细信息—-

为了更准确地说明我的问题,登录后,我可以看到黑屏和光标。另外,重要的是,我能够看到登录屏幕,因此我确定Ubuntu可以正确渲染,并且还可以确定驱动程序没有问题(否则我什至不应该获得登录屏幕,对吗?)。

无论如何,另一个(可能)重要的事情是,登录后,我可以按Ctrl + Alt + 1并启动恢复控制台。

唯一无法加载的是我的实际GUI桌面

然后,我从恢复控制台运行起来,它执行了一些命令,在OpenGL中停留了几秒钟,然后放大了更多行代码,最终得到了以下结果:

ERROR 2012-01-03 20.51.23 unity.launcher.Icon TrashLauncherIcon.cpp:62 Could not create file monitor for trash url: Operation not supported

*** glibc detected *** compiz: malloc(): memory corruption: 0x09c861d6 ***

之后。返回Ctrl + Alt + F7:桌面背景+光标

因此,再次回到终端,我必须按下Ctrl + C才能再次返回。

现在,我再次输入unity,这是输出:

WARNING: no DISPLAY variable set, setting it to :D
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
unity-panel-service: no process found

所以现在我做了sudo service lightdm restart

X10: fatal IO error 4 (Interrupted system call) on X server ":0"
after 131 requests (130 known processed) with 0 events remaining.
lightdm stop/waiting
lightdm start/running, process 2852

我回到登录屏幕,然后再次登录,现在我回到黑屏(是的,我也丢失了桌面背景)

因此,我再次尝试统一(与上次相同):

WARNING: no DISPLAY variable set, setting it to :D
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
unity-panel-service: no process found

而且还是黑屏! :\

最佳方案

仅出于完整性考虑,当您错误地安装了”nvidia-319-updates”软件包但系统上没有nVidia图形芯片时,也会发生此问题。就我而言,该程序包是程序包”libopencv-dev”的间接依赖项。

因此,例如,如果您在ATI或Intel grpahics芯片上运行,并且安装了openCV(软件包libopencv-dev),则OpenGL会损坏,并且在登录后会出现鼠标光标黑屏的情况。在这种情况下,要解决此问题,只需删除nvidia的软件包即可:

sudo apt-get remove nvidia-*

有关更多详细信息,请参见this bug on launchpad

次佳方案

我已经成功解决了这个问题。好吧,我所做的就是:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:unity-team/staging

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

紧接着是重新启动,这是修复的诀窍! :D

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/11422.html,未经允许,请勿转载。