无法在Ubuntu 12.04上运行Sublime Text 2

时间:2013-10-28 06:55:09

标签: sublimetext

最近我遇到了一个问题,无法打开我的Sublime Text。几天前它对我有用。但现在它没有用。当我输入

sudo sublime

然后它显示以下错误。而且它没有开放。

(sublime:16435): GLib-GObject-WARNING **: cannot register existing type `GSimpleAsyncResult'

(sublime:16435): GLib-GObject-WARNING **: cannot register existing type `GAsyncResult'

(sublime:16435): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(sublime:16435): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(sublime:16435): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(sublime:16435): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(sublime:16435): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

我使用的是Ubuntu 12.04 LTS。提前谢谢。

1 个答案:

答案 0 :(得分:1)

我在旧的Ubuntu 12.04安装中遇到了类似的情况。

我的案例中的解决方案是通过运行:

找到的
sudo apt-get install libglib2.0-dev