While reading Herbert Nemeczek's "Install plug-ins and modules.docx" file I noticed on page 34 that he triggered the dreaded "Failed to load module "canberra-gtx-module" error. I've seen a message like this before and, though the "pk-gtk-module" generates the same error, the fix is the same:
This example is from the Fedora-37 distribution, though the solution is the same for all distributions I think.
1. Find the provider of the missing module:
$ dnf provides */libpk-gtk-module.so
PackageKit-gtk3-module-1.2.5-2.fc37.x86_64 : Install fonts automatically using: PackageKit
2. Install the missing package:
$ sudo dnf install PackageKit-gtk3-module-1.2.5-2.fc37.x86_64
Nothing to do, PackageKit-gtk3-module-1.2.5-2.fc37.x86_64 is already installed.
So, the problem is not a missing module, but rather the file /etc/ld.so.conf.d/gtk3.conf, which provides the path to the module, that is missing!
Solution (for missing pk-gtk-module):
$ sudo bash -c 'cat > /etc/ld.so.conf.d/gtk3.conf << 'EOF'
/usr/lib64/gtk-3.0/modules
EOF'
$ sudo ldconfig
This solution to the missing pk-gtk-module was not my own enlightenment, I found it with a web search:
Source:
https://robbinespu.github.io/eng/2018/0 ... odule.html