400
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,338
  • 5
  • 16
  • 14

4 Answers4

506

install gtk and gtk3 module should solve it.

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
croesus
  • 5,177
116

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,276
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,065
  • 5
  • 49
  • 65
Quentin
  • 1,307
8

Maybe too much but this solved my problem:

$ sudo apt-get install libcanberra-gtk*
Mona Jalal
  • 4,545
  • 21
  • 68
  • 99
  • 5
    terrible idea and didn't even get rid of that error when I tried it. – tatsu Mar 03 '18 at 18:36
  • 18
    Please, use apt-get with wildcards with caution - or better: don't use wildcards. This often leads to unexpected results that are not easy to fix for people without in-depth experience of the package management system. – byteborg Mar 01 '19 at 12:03
  • 1
    This answer solved my problem! I'm a little nervous now that I read the comments after the fact but so far so good... thanks @Mona – Robert Houghton Dec 30 '19 at 17:16