LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gtk-Message: Failed to load module "canberra-gtk-module" (https://www.linuxquestions.org/questions/linux-software-2/gtk-message-failed-to-load-module-canberra-gtk-module-936168/)

Lumify 03-24-2012 07:26 AM

Gtk-Message: Failed to load module "canberra-gtk-module"
 
I get this error whenever I open gedit.
Code:

Gtk-Message: Failed to load module "canberra-gtk-module"
I used strace gedit | grep can and I got this:
Code:

$ strace gedit 2>&1 | grep can
access("/home/user/.gtk-3.0/3.0.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/3.0.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/3.0.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/3.0.0/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gtk-3.0/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/3.0.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/3.0.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/3.0.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/3.0.0/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/x86_64-pc-linux-gnu/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gtk-3.0/modules/libcanberra-gtk-module.la", F_OK) = -1 ENOENT (No such file or directory)
stat("libcanberra-gtk-module.so", 0x7fff73882db0) = -1 ENOENT (No such file or directory)
stat("libcanberra-gtk-module.so.so", 0x7fff73882db0) = -1 ENOENT (No such file or directory)
stat("libcanberra-gtk-module.so.la", 0x7fff73882db0) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcanberra-gtk-module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "Gtk-Message: Failed to load modu"..., 57Gtk-Message: Failed to load module "canberra-gtk-module"
stat("/usr/share/fonts/opentype/cantarell", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/share/fonts/opentype/cantarell/Cantarell-Regular.otf", O_RDONLY) = 15
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
open("/usr/share/fonts/opentype/cantarell/Cantarell-Bold.otf", O_RDONLY) = 11

I have these packages installed: gnome-session-canberra, libcanberra-gtk-module, libcanberra-gtk0, libcanberra-gtk3-0, libcanberra-pulse, libcanberra0. I'm running Gnome 3.2.1, Debian Wheezy.

John VV 03-25-2012 04:55 PM

Quote:

"/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk-module.so", F_OK) = -1 ENOENT (No such file or directory)
" (No such file or directory)"

that is fairly self explanatory
you do not have it installed , or
you installed it some place else

but the 64 bit version is not where it is expected

Lumify 03-29-2012 02:53 PM

I found that file elsewhere (it was in a GTK2 folder) and copied it to that location, but it complained that I couldn't use the GTK2 module for GTK3. I used apt-file to search for libcanberra-gtk-module.so, and I found that the package libcanberra-gtk3-module had that file. After installing that, everything works fine.

roddersg 12-05-2012 07:24 AM

Thank you!! You hit the nail on the head!
 
sudo apt-get install libcanberra-gtk3-module

works like a charm!!
Thanks

Savalan 06-15-2013 01:12 PM

Quote:

Originally Posted by roddersg (Post 4843155)
sudo apt-get install libcanberra-gtk3-module

works like a charm!!
Thanks

you're a bowss!

estomagado 04-18-2014 01:09 PM

64 bit
 
This is an old thread, but I'm adding info that might be of use.

You may be getting this message in 64-bit systems even though you have the lib installed. That's because you might be using a 32-bit software and it expects the lib somewhere else.

My system is an Ubuntu 14.04, but I guess it would be the same thing on your Debian:

Code:

sudo apt-get install libcanberra-gtk-module:i386
Regards
--
estomagado

aaguillon 09-02-2014 01:38 PM

I have libcanberra-gtk-module:i386 and libcanberra-gtk-module. The message still happens. Any clue?
Debian 7 amd64 multiarch.
Thanks!

samthewildone 10-02-2014 06:12 PM

@aaguillion

Same here my friend, error still shows on mine.
Ubuntu 14.04.1LTS amd64

Code:

samthewildone@Olympian:~$ sudo apt-get install libcanberra-gtk3-module
[sudo] password for samthewildone:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
libcanberra-gtk3-module is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
samthewildone@Olympian:~$ sudo apt-get install libcanberra-gtk-module:i386
Reading package lists... Done
Building dependency tree     
Reading state information... Done
libcanberra-gtk-module:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
samthewildone@Olympian:~$ alarmclock
Gtk-Message: Failed to load module "canberra-gtk-module"
^Z
[1]+  Stopped                alarmclock
samthewildone@Olympian:~$ alarm
alarmclock          alarm-clock-applet 
samthewildone@Olympian:~$ alarm-clock-applet
Gtk-Message: Failed to load module "canberra-gtk-module"
alarm-clock-applet is already running, exiting...
samthewildone@Olympian:~$



---------- Post added 10-02-14 at 06:13 PM ----------

@aaguillion

acousticks 11-04-2014 02:24 PM

gtk2, gtk3
 
Try the following

sudo yum install libcanberra-gtk2.i686
sudo yum install libcanberra-gtk3.i686
sudo yum install libcanberra-devel.i686

in order from top to bottom

use yum or apt-get as necessary.

x.gooch.x 03-03-2015 07:08 PM

On Ubuntu 12.04 server 64, I had to call:

sudo apt-get install libcanberra-gtk*

In order to remove the warning: Gtk-Message: Failed to load module "canberra-gtk-module"

mandolyn 07-14-2015 12:19 PM

Thanke too x.gooch.x . This seems to work fine here.

Linux samsung 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux

jobsworth 08-02-2015 03:11 AM

hello all,

i just did this on my amd debian jessie 64 bit system:-

sudo apt-get install libcanberra-gtk-module:i386
sudo apt-get install libcanberra-gtk*

it downloaded and installed a massive number of files
18.6MB and 197MB.

All of that just to remove a message about canberra-gtk-module!

What if anything have I gained?

mmhmm 08-22-2015 01:16 PM

For me just the following command (with su permissions) helped:
Code:

apt-get install libcanberra-gtk-module
It's only 31,8 kB.

rightec 10-17-2015 09:36 AM

Hello. It also occured to me when running a Qt application with Qt Creator 5.3.2 in Debian 8.2.
apt-get install libcanberra-gtk-module
worked fine to me

Thanks

jlibraryist 03-22-2016 10:45 AM

Quote:

Originally Posted by x.gooch.x (Post 5326502)
On Ubuntu 12.04 server 64, I had to call:

sudo apt-get install libcanberra-gtk*

In order to remove the warning: Gtk-Message: Failed to load module "canberra-gtk-module"

I followed a variation on this command - which solved my very similar problem.

Thank you to the various contributors in this thread.

J.


All times are GMT -5. The time now is 02:29 AM.