我对 Ubuntu 完全陌生。我刚刚安装了 Ubuntu 11.04,它运行良好。我进入终端并输入unity
,屏幕一小会儿就变得很混乱,然后我的桌面就变成了我讨厌的经典桌面。现在,我该如何回到 Unity?... 我重新启动并在选择用户名时查看屏幕底部的选项,但没有显示 Unity,我选择了Ubuntu
,因为其他选项在其“描述”中包含 Classic。我还进入终端,unity
再次输入以查看是否可以恢复它,结果相同,但在输出中,它是这样的:
unity-panel-service: proceso no encontrado //PROCESS NOT FOUND, i use Spanish
Backend : gconf
Integration : true
Profile : unity
Adding plugins
Initializing core options...done
//THE NEXT ROW REPEATES MANY, MANY TIMES, WITH MANY 0 IN THE LAST CHARACTER
Window created on XQueryTree, map state isViewable? 1
Initializing bailer options...done
Initializing detection options...done
Initializing composite options...done
Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing
Compiz (opengl) - Fatal: Software rendering detected
Compiz (bailer) - Info: Ensuring a shell for your session
... Unity 运行得非常棒 =(...
答案1
当您说“我进入终端”时,您是指 Windows 内的虚拟终端吗?还是真正的文本终端,如 Ctrl-Alt-F1 等?
如果您选择后者,那么返回现有 Windows 桌面的正常方法是按 Alt-F7 或 F8 或任何正在运行的 X。请注意,返回 X 时不需要控制键。
注意:我从未使用过或见过 Ubuntu 11.x,我自己仍在使用 9.04。
答案2
@Terry 似乎是对的。
在 Ctrl-Alt-F1 tty 中调用unity
将产生以下输出,并在 Ctrl-Alt-F7 中中断正在运行的 unity (2d) 会话:
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic x86_64)
* Documentation: https://help.ubuntu.com/
user@host:~$ unity &
[1] 3137
user@host:~$ WARNING: no DISPLAY variable set, setting it to :0
unity-panel-service: no process found
(process:3139): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action.
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Abnormal program termination spawning command line `dbus-launch --autolaunch=e1415082f4c221cc22bbf8954b115eb2 --binary-syntax --close-stderr': )
Backend : gconf
Integration : true
Profile : unity
Adding plugins
Initializing core options...done
Window created on XQueryTree, map state isViewable? 0
...
... repeated 80 times
...
Window created on XQueryTree, map state isViewable? 1
Initializing bailer options...done
Initializing detection options...done
Initializing composite options...done
Initializing opengl options...done
Initializing decor options...done
Initializing vpswitch options...done
Initializing obs options...done
Initializing grid options...done
Initializing move options...done
Initializing commands options...done
Initializing gnomecompat options...done
Initializing place options...done
Initializing unitymtgrabhandles options...done
Initializing resize options...done
Initializing mousepoll options...done
Initializing animation options...done
Initializing wall options...done
Initializing session options...done
Initializing wobbly options...done
Initializing workarounds options...done
Initializing expo options...done
Initializing ezoom options...done
Initializing staticswitcher options...done
Initializing fade options...done
Initializing scale options...done
** (<unknown>:3139): DEBUG: Unity accessibility initialization
** (<unknown>:3139): DEBUG: Shows on edge: 1
(<unknown>:3139): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(<unknown>:3139): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Screen geometry changed:
Monitor 0(primary)
0x0x1920x1200
unity-panel-service: no process found
** (<unknown>:3139): DEBUG: PanelController:: Added Panel for Monitor 0
Initializing unityshell options...done
** (<unknown>:3139): DEBUG: PlaceEntry: Applications
** (<unknown>:3139): DEBUG: PlaceEntry: Commands
** (<unknown>:3139): DEBUG: PlaceEntry: Files & Folders
** (<unknown>:3139): DEBUG: /com/canonical/unity/applicationsplace
** (<unknown>:3139): DEBUG: /com/canonical/unity/filesplace
Couldn't find a perfect decorator match; trying all decorators
Starting unity-window-decorator
** (<unknown>:3139): DEBUG: Setting to primary screen rect: x=0 y=0 w=1920 h=1200
** (<unknown>:3139): DEBUG: Lost the name com.canonical.Unity.Launcher on the session bus
** (<unknown>:3139): DEBUG: IndicatorAdded: libapplication.so
** (<unknown>:3139): DEBUG: IndicatorAdded: libsoundmenu.so
** (<unknown>:3139): DEBUG: IndicatorAdded: libmessaging.so
** (<unknown>:3139): DEBUG: IndicatorAdded: libdatetime.so
** (<unknown>:3139): DEBUG: IndicatorAdded: libme.so
** (<unknown>:3139): DEBUG: IndicatorAdded: libsession.so
Segmentation fault
答案3
看起来您缺少 --replace 选项 - 登录时,按 Alt-F2,然后在框中输入“unity --replace”(不带引号)并按 Enter。如果框未出现,请尝试从经典会话中执行此操作。