413
Gtk-Message: Failed to load module "canberra-gtk-module"

but I already have the libcanberra-gtk-module and libcanberra-gtk3-module installed. (i.e. I tried this solution, but it is already installed.)

This happens for instance, when I run ipython --pylab

I'm running Ubuntu 13.04 - raring.

cmo
  • 6,558

5 Answers5

521

install gtk and gtk3 module should solve it.

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
croesus
  • 5,327
  • 1
  • 10
  • 3
117

This problem may occur on a 64-bit machine when one installs 32-bit software that requires canberra-gtk-module. acroread, for example, can cause this problem. In this case, the solution is to install the 32-bit version:

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

One should leave the 64-bit version as well as it is necessary for 64-bit programs which attempt to use it.

R. W. Sinnet
  • 1,286
40

WARNING: User Paparazio reported that this command removed a lot more software than he was expecting. See his question for details. – wjandrea Jun 8 2017 at 20:29


I had the same problem and solve it with the solution given in this launchpad issue.

sudo apt-get install --reinstall libcanberra-gtk-module
Volker Siegel
  • 13,295
Quentin
  • 1,317
8

Maybe too much but this solved my problem:

$ sudo apt-get install libcanberra-gtk*
Mona Jalal
  • 4,695
  • 21
  • 74
  • 102
1

I was specifically getting this error from various Matlab versions, and managed to find a good solution here.

Basically, after installing the library/module, you need to create a gtk-2.0 link to it:

sudo ln -s /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so