我创建了两个帐户,一个是普通用户,另一个是用于 hadoop 的,它是 root 的超级用户。我可以在普通用户帐户下正常加载 eclipse,但在 hadoop 帐户下无法使用它。我尝试卸载 eclipse 并在 hadoop 帐户下重新安装它,但仍然不起作用。
以下是报告的错误:
$ eclipse&
[1] 28486
hadoop@city-ubuntu:/home/city$ No protocol specified
No protocol specified
(eclipse:28487): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(eclipse:28487): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
** (eclipse:28487): WARNING **: The connection is closed
(eclipse:28487): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion `GDK_IS_DISPLAY (display)' failed
(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_monitor_geometry: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:28487): Gdk-CRITICAL **: IA__gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
Segmentation fault (core dumped)
[1]+ Exit 139 eclipse
我使用以下命令安装了 eclipse:
sudo apt-get install eclipse.
怎么了?