我在使用 Gnome 3 的 CentOS Linux 版本 7.4.1708(核心)上使用 unity GTK 时遇到一些问题。
$ emacs
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "unity-gtk-module"
$ evince
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "unity-gtk-module"
我尝试安装 gtk2-engines 软件包,但没有修复它。
$ sudo yum install gtk2-engines*
Package gtk2-engines-2.20.2-7.el7.x86_64 already installed and latest version
Package gtk2-engines-devel-2.20.2-7.el7.x86_64 already installed and latest version
并重新安装它们:
$ sudo yum reinstall gtk2-engines*
[sudo] password for klaus:
[...]
Resolving Dependencies
--> Running transaction check
---> Package gtk2-engines.x86_64 0:2.20.2-7.el7 will be reinstalled
---> Package gtk2-engines-devel.x86_64 0:2.20.2-7.el7 will be reinstalled
--> Finished Dependency Resolution
Dependencies
======================================================================
Package Arch Version Repository Size
======================================================================
Reinstalling:
gtk2-engines x86_64 2.20.2-7.el7 epel 301 k
gtk2-engines-devel x86_64 2.20.2-7.el7 epel 17 k
Transaction Summary
======================================================================
Reinstall 2 Packages
Total download size: 318 k
Installed size: 1.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): gtk2-engines-2.20.2-7.el7.x86_64.rpm | 301 kB 00:00:00
(2/2): gtk2-engines-devel-2.20.2-7.el7.x86_64.rpm | 17 kB 00:00:00
----------------------------------------------------------------------
Total 2.7 MB/s | 318 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gtk2-engines-2.20.2-7.el7.x86_64 1/2
Installing : gtk2-engines-devel-2.20.2-7.el7.x86_64 2/2
Verifying : gtk2-engines-2.20.2-7.el7.x86_64 1/2
Verifying : gtk2-engines-devel-2.20.2-7.el7.x86_64 2/2
Installed:
gtk2-engines.x86_64 0:2.20.2-7.el7
gtk2-engines-devel.x86_64 0:2.20.2-7.el7
Complete!
...但我仍然有错误