由于 gconf2 问题,无法安装 gnome-terminal

由于 gconf2 问题,无法安装 gnome-terminal

我在启动 gnome-terminal 时遇到了问题,所以我尝试删除并重新安装它。运行后sudo apt-get install gnome-terminal得到以下结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gnome-terminal-data
The following NEW packages will be installed:
  gnome-terminal gnome-terminal-data
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/171 kB of archives.
After this operation, 1,953 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package gnome-terminal-data.
(Reading database ... 747935 files and directories currently installed.)
Preparing to unpack .../gnome-terminal-data_3.6.2-0ubuntu1_all.deb ...
Unpacking gnome-terminal-data (3.6.2-0ubuntu1) ...
Selecting previously unselected package gnome-terminal.
Preparing to unpack .../gnome-terminal_3.6.2-0ubuntu1_amd64.deb ...
Unpacking gnome-terminal (3.6.2-0ubuntu1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
dpkg: error processing package gconf2 (--unpack):
 subprocess installed post-installation script returned error exit status 245
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 gconf2
E: Sub-process /usr/bin/dpkg returned an error code (1)

尝试运行gnome-terminal出现以下错误:

Gtk-Message: Failed to load module "unity-gtk-module"

(gnome-terminal:28167): GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain '&' (key 'monospace-font-name' from schema 'org.gnome.desktop.interface'). This call will probably stop working with a future version of glib.
GConf Error: Configuration server couldn't be contacted: D-BUS error: Message did not receive a reply (timeout by message bus)
GConf Error: Configuration server couldn't be contacted: D-BUS error: Message did not receive a reply (timeout by message bus)
GConf Error: Configuration server couldn't be contacted: D-BUS error: Message did not receive a reply (timeout by message bus)
GConf Error: Configuration server couldn't be contacted: D-BUS error: Message did not receive a reply (timeout by message bus)
GConf Error: Configuration server couldn't be contacted: D-BUS error: Message did not receive a reply (timeout by message bus)
GConf Error: Configuration server couldn't be contacted: D-BUS error: Message did not receive a reply (timeout by message bus)
**
ERROR:terminal-app.c:1449:terminal_app_init: assertion failed: (app->default_profile_id != NULL)
Aborted (core dumped)

知道我能做什么来找出问题所在吗?我目前正在使用 xfce4-terminal 作为我的终端。

答案1

好吧,这可能是一种迂回的做事方式,但我已设法开始gnome-terminal行动了。

由于我使用的是 14.04 LTS,Ubuntu 意外地提示我升级到 16.04 LTS。备份了所有内容后,我决定继续升级。45 分钟后,sudo apt-get install gnome-terminal一切正常,一切正常gnome-terminal

对于需要帮助解决此问题的其他任何人,我想我会建议升级或重新安装。这真是令人沮丧的一周。

相关内容