Unity丢失了吗?无法看到顶部或侧边栏。

我刚刚使用ccsm移除了一些特效,切换到了AMD的专有驱动程序,重新启动后,登录后Unity面板不再显示。如果我按Windows键或Alt键,没有任何反应。我可以通过按下ctrl+alt+t来打开终端(从而通过命令行启动应用程序)。
有人知道我该如何修复这个问题吗?我需要在这里发布哪些日志以获得帮助?
编辑#1:
如@cprofitt建议,我刚刚运行了以下命令:
dconf reset -f /org/compiz/ && setsid unity

我现在在终端中看到一些compiz的消息:
unity-panel-service: no process found
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : gsettings
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : unity
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  155 (ATIFGLEXTENSION)
  Minor opcode of failed request:  66 ()
  Serial number of failed request:  23
  Current serial number in output stream:  23
compiz (core) - Info: Unity is not supported by your hardware. Enabling software rendering instead (slow).
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  155 (ATIFGLEXTENSION)
  Minor opcode of failed request:  66 ()
  Serial number of failed request:  23
  Current serial number in output stream:  23
compiz (core) - Info: Unity is not supported by your hardware. Enabling software rendering instead (slow).
compiz (core) - Info: Starting plugin: opengl
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Error: Plugin initScreen failed: opengl
compiz (core) - Error: Failed to start plugin: opengl
compiz (core) - Info: Unloading plugin: opengl
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Error: Plugin 'opengl' not loaded.

这个“重复”的问题似乎是针对一个较旧版本的Unity...尽管有人在2013年5月4日,也就是这个问题回答之后的七个月里添加了当前的答案。 - cprofitt
6个回答

尝试以下操作:
在终端中输入以下内容:
dconf reset -f /org/compiz/

那么

setsid unity

如果这是一个与Unity设置有关的问题,它将会将您的配置重置为默认值。
希望这能帮到您。

1这对我很有帮助,因为我从12.10升级到13.04后,一切都不见了。太棒了! - itnet7
1@cprofitt,你能解释一下为什么要用setsid unity而不是只用unity吗?你的回答解决了我的问题,但我不明白第二部分的意思。 - Mohammad AbuShady
不要忘记在compiz后面加上斜杠。这点非常重要! - HongboZhu
这对我在只有桌面图标可见的Ubuntu 14.04 LTS安装上没有起作用。所以我手动进行了以下操作:gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins ['core', 'composite', 'opengl', 'regex', 'vpswitch', 'session', 'imgpng', 'snap', 'unitymtgrabhandles', 'unityshell'](注意,没有包括所有有用的插件)。 - Timo Jyrinki
感谢 @cpprofitt,经过一天的尝试各种网络上的其他解决方案,终于解决了我的问题。 - Cactus
请告诉我如何打开终端?快捷键无效。 - LoveToCode
它会删除 Compiz 中的所有自定义设置。 - rapt

我今天早上也遇到了同样的问题,经过几个小时的故障排除,我找到了问题所在。问题出在Compiz上,但你不能简单地关闭Compiz然后重新启动,问题仍然存在。我所做的是登录,当然Unity不会显示出来。
只需按下Ctrl + Alt + T打开终端,然后输入ccsm加载Compiz配置设置管理器。
现在你需要找到Ubuntu Unity插件,点击它,你会注意到它没有启用,只需启用它,它会弹出一些有冲突的窗口,只需阅读它们并点击你想要的选项,Unity就会回来!
对我来说,当我点击启用并关闭那个窗口时,第一次没有起作用,但第二次尝试后,它成功了!

如果用户没有安装ccsm呢? - Braiam
哇!这个方法真的有效!当我卸载损坏的nvidia-current时发生了这个问题...你刚刚帮我避免了重新安装系统。 - Ciro Santilli OurBigBook.com
从所有这些建议中,只有这个帮助我在电源故障后恢复重新安装系统(电源故障对于带有ecryptfs的btrfs分区来说是致命的)。 - Adam Ryczkowski

所以最后我根据无法在12.10中安装ATI专有驱动程序的链接重新安装了lightdm和ubuntu-desktop。

sudo apt-get purge fglrx lightdm && sudo apt-get install lightdm ubuntu-desktop

然后重新启动
从我所看到的,AMD驱动程序现在已安装。
brad@saro:~$ fglrxinfo 
display: :0.0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 5700 Series 
OpenGL version string: 4.2.11903 Compatibility Profile Context

brad@saro:~$ fgl_glxgears 
Using GLX_SGIX_pbuffer
1499 frames in 5.0 seconds = 299.800 FPS
1663 frames in 5.0 seconds = 332.600 FPS

1就这件事而言,我愚蠢地在一个13.04虚拟机上安装了nvidia-current,结果把unity桌面搞崩了。我试着卸载所有的nvidia*软件包,但没有成功。最终这些命令帮助我恢复了一切。 - karlgrz

我遇到了同样的问题: 从12.04升级到12.10,然后再升级到13.04。 Unity出现了故障,只能重置Unity。
dconf reset -f /org/compiz/
setsid unity

没帮上忙。我试着按照hafichuk上面解释的去做:
sudo apt-get purge fglrx lightdm && sudo apt-get install lightdm ubuntu-desktop

然后

dconf reset -f /org/compiz/
setsid unity

然后它就正常工作了。

我在一台Compaq Presario 7000US(旧电脑)上使用Windows安装程序安装了Ubuntu,目前正在运行WinXP。我遇到了这个问题,因为同样的问题,我几乎要放弃Ubuntu了。
当我尝试使用“sudo apt-get purge fglrx”时,它返回一个提示说该软件包未被删除,因为它未被安装,所以我做了以下操作。
sudo apt-get install fglrx

它下载了软件包并安装了它。完成后,侧边栏(就是那个叫这个名字吗?)出现了。
看起来有点慢,但现在它给我更多的动力继续在这台机器上工作。

我尝试了几乎所有在论坛中发布的建议。

我的情况类似(在VMware Workstation上没有图形界面安装后)。

而对我有效的解决方案是.....

sudo lightdm