Robbi Nespu: Fixing failed to load module "pk-gtk-module" and "canberra-gtk-module"

Peace be upon you, I recently use VMware workstation for server simulation for upcoming project but I keep seeing this scrap message as below:

Gtk-Message: Failed to load module “pk-gtk-module”: libpk-gtk-module.so: cannot open shared object file: No such file or directory

Gtk-Message: Failed to load module “canberra-gtk-module”: libcanberra-gtk-module.so: cannot open shared object file: No such file or directory

I check out which package will provide me thus two library modules that needed :

$ dnf provides libpk-gtk-module.so
PackageKit-gtk3-module-1.1.9-3.fc28.i686 : Install fonts automatically using PackageKit
Repo        : fedora
Matched from:
Provide    : libpk-gtk-module.so

$ dnf provides libcanberra-gtk-module.so
Last metadata expiration check: 4 days, 17:34:05 ago on Fri 25 May 2018 05:56:22 AM +08.
libcanberra-gtk2-0.30-16.fc28.i686 : Gtk+ 2.x Bindings for libcanberra
Repo        : fedora
Matched from:
Provide    : libcanberra-gtk-module.so

But this two package already been installed inside my machine and seems this occurs because the requested gtk modules aren’t in any of the paths defined in /etc/ld.so.conf.d/* directory.

We need to created new gtk2.cnf (follow tutorial below).

$ sudo bash -c 'cat > /etc/ld.so.conf.d/gtk2.conf << 'EOF'
/usr/lib64/gtk-2.0/modules
EOF'
$ sudo ldconfig

Now you application (e.g VMware) should never show the same as previous gtk-message again when starting.

That all, I hppe this thanks! Adios ~


Source From: fedoraplanet.org.
Original article title: Robbi Nespu: Fixing failed to load module “pk-gtk-module” and “canberra-gtk-module”.
This full article can be read at: Robbi Nespu: Fixing failed to load module “pk-gtk-module” and “canberra-gtk-module”.

Advertisement


Random Article You May Like

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*