Fedora 14 中使用su后出现错误:GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error ==
2011-06-20 18:21
567 查看
在 GNOME 桌面的终端,直接 su 切换到 root 后,在终端运行一些图形界面的程序,有些能运行但报错,有些根本运行不起来。可能是因为直接用 su 切换到 root 后,root 还是使用普通用户的环境变量。
在 Fedora 14 运行出错的软件有: gedit 、emacs 、unetbootin-linux
gedit
出现信息如下:
==============================分割线==============================
(process:15979): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(gedit:15979): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
已放弃 (core dumped)
==============================分割线==============================
emacs
出现信息如下:
==============================分割线==============================
(process:15988): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Fatal error (6)已放弃 (core dumped)
==============================分割线==============================
unetbootin-linux
出现信息如下:
==============================分割线==============================
Qt: Session management error: None of the authentication protocols specified are supported
==============================分割线==============================
解决方法:
用 su - 命令切换到 root
"-”参数指示 su 开启一个登陆Shell(login shell)而不是非登陆Shell(non-login shell)
这样 root 读取的是 root 本身的环境变量,而不是继承那个输入 su 命令用户的环境变量
在 Fedora 14 运行出错的软件有: gedit 、emacs 、unetbootin-linux
gedit
出现信息如下:
==============================分割线==============================
(process:15979): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(gedit:15979): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
已放弃 (core dumped)
==============================分割线==============================
emacs
出现信息如下:
==============================分割线==============================
(process:15988): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Fatal error (6)已放弃 (core dumped)
==============================分割线==============================
unetbootin-linux
出现信息如下:
==============================分割线==============================
Qt: Session management error: None of the authentication protocols specified are supported
==============================分割线==============================
解决方法:
用 su - 命令切换到 root
"-”参数指示 su 开启一个登陆Shell(login shell)而不是非登陆Shell(non-login shell)
这样 root 读取的是 root 本身的环境变量,而不是继承那个输入 su 命令用户的环境变量
相关文章推荐
- fedora14下运行程序出现GLib- GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->
- fedora14下运行程序出现GLib- GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->
- fedora14下运行程序出现GLib- GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection-
- fedora14下运行程序出现GLib- GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion f
- OpenCV打开摄像头出现运行错误OpenCV Error:Assertion failed (size.width>0&&size.height>0)in cv::imshow,……
- 安装完myeclipse出现qtdesigner (connection->initialization_error == NULL)错误
- 用vs2017编写opencv程序,出现下列错误OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow
- Oracle学习笔记4 使用Navicat for Oracle 连接Oracle时出现错误:ORA-28547: connection to server failed, probable Oracle Net admin error
- ejb 学习:遇到错误:LazyInitializationException.<init> : failed to lazily initialize a collection of role:
- 在android中使用proguard混淆代码出现“Conversion to Dalvik format failed with error 1”错误的解决方法
- 出现TypeError: Object #<Object> has no method 'createClient' 错误
- Fedora 下GLib-GIO:ERROR 错误
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow
- 使用FMDB时,出现错误:error opening!: 14
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow
- android studio编程时出现的错误:Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception whi
- 兔子--Android Studio出现错误:Error:Execution failed for task ':myapp:dexDebug'. com.android.ide.common.pro
- opencv error:assertion failed<src.cols>0&&src.rows>0>in unknown function
- [ERROR] [2012-59-30 05:59:28] org.hibernate.AssertionFailure.<init>(AssertionFailure.java:45) -an a
- 重启ipconfig 时,出现错误:Error: Connection activation failed.....解决方法