373
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.

1
  • 1
    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

4 Answers 4

480

install gtk and gtk3 module should solve it.

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

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.

7
  • 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, 2014 at 1:22
  • It fixed my 32-bits Firefox on Ubuntu 64-bits. Dec 15, 2014 at 17:27
  • 11
    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, 2015 at 11:23
  • 5
    Doesn't work for me.
    – dspacejs
    Nov 15, 2015 at 11:05
  • 3
    Did not solve this error with Polar Bookshelf on Ubuntu 18.04
    – SteveSong
    Oct 20, 2018 at 11:11
36

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
6
  • 1
    Didn't work for me.
    – Dan H
    Aug 9, 2016 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, 2017 at 20:29
  • Didn't work for me Oct 15, 2018 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, 2019 at 17:47
  • worked for me Ubuntu 19.10. Thanks. Jan 28, 2020 at 9:57
8

Maybe too much but this solved my problem:

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

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