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.

  • Don't forget to choose which answer solved your question. This will help others in the future who struggle with the same problem.
    – Edgecase
    Jan 6 at 19:09

install gtk and gtk3 module should solve it.

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
  • 90
    For me sudo apt-get install libcanberra-gtk-module worked fine
    – NZD
    Mar 3 '17 at 1:54
  • 10
    This should be the accepted answer May 26 '18 at 2:05
  • 4
    This works for Android Studio
    – Gabor
    May 30 '18 at 18:56
  • 13
    This worked for me on Ubuntu 18
    – August
    Jul 3 '18 at 15:40
  • 7
    This worked, but what is canberra-gtk-module anyways? Dec 13 '18 at 15:08

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.

  • I have a 32-bit system so I don't think this applies. Any other ideas? It's the Copy.com client that throws the error.
    – endolith
    Oct 21 '14 at 1:22
  • It fixed my 32-bits Firefox on Ubuntu 64-bits. Dec 15 '14 at 17:27
  • 10
    This did not help for me. I also tried sudo apt-get remove libcanberra-gtk-module before sudo apt-get install libcanberra-gtk-module:i386, still does not work. Jun 18 '15 at 11:23
  • 5
    Doesn't work for me.
    – dspacejs
    Nov 15 '15 at 11:05
  • 3
    Did not solve this error with Polar Bookshelf on Ubuntu 18.04
    – SteveSong
    Oct 20 '18 at 11:11

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

sudo apt-get install --reinstall libcanberra-gtk-module
  • 1
    Didn't work for me.
    – Dan H
    Aug 9 '16 at 20:36
  • 6
    WARNING: User Paparazio reported that this command removed a lot more software than he was expecting. See his question for details.
    – wjandrea
    Jun 8 '17 at 20:29
  • Didn't work for me Oct 15 '18 at 17:55
  • Worked for me, ending in installation of libcanberra-gtk0. Seeing the warning from Paparazio reported by wjandrea, I first check with '-s' as an argument to apt-get : apt-get install -s --reinstall libcanberra-gtk-module then the line given above
    – Laurent G
    Apr 22 '19 at 17:47
  • worked for me Ubuntu 19.10. Thanks. Jan 28 '20 at 9:57

Maybe too much but this solved my problem:

$ sudo apt-get install libcanberra-gtk*
  • 5
    terrible idea and didn't even get rid of that error when I tried it.
    – tatsu
    Mar 3 '18 at 18:36
  • 15
    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 1 '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 Dec 30 '19 at 17:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.