Failed to load module “canberra-gtk-module”

2019/08/07

Al ejecutar gimp desde consola en debian buster (10) aparece el siguiente mensaje:

$ gimp
Gtk-Message: 01:00:51.060: Failed to load module "canberra-gtk-module"

Esto es debido a que falta instalar el paquete libcanberra-gtk-module. Para corregir el mensaje de error ejecutar:

$ sudo apt-get install -V libcanberra-gtk-module
...
The following NEW packages will be installed:
   libcanberra-gtk-module (0.30-7)
   libcanberra-gtk0 (0.30-7)
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...

Notas

De la descripción del paquete libcanberra0 (apt show libcanberra0):

libcanberra defines a simple abstract interface for playing event sounds.

El sistema por defecto tiene instalado el paquete para gtk-3 (libcanberra-gtk3-module) pero gimp aún utiliza gtk-2 por lo que el mensaje es debido a que falta para dicha versión de gtk (libcanberra-gtk-module).

Los paquetes instalados relacionados a libcanberra se obtienen mediante:

$ dpkg -l libcanberra* | grep ^ii
ii  libcanberra-dev:amd64         0.30-7       amd64        simple interface for playing event sounds (development files)
ii  libcanberra-gtk-common-dev    0.30-7       all          simple interface for playing event sounds (GTK+ shared development files)
ii  libcanberra-gtk-module:amd64  0.30-7       amd64        translates GTK+ widgets signals to event sounds
ii  libcanberra-gtk0:amd64        0.30-7       amd64        GTK+ helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-0:amd64      0.30-7       amd64        GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-dev:amd64    0.30-7       amd64        simple interface for playing event sounds (GTK+ 3 development files)
ii  libcanberra-gtk3-module:amd64 0.30-7       amd64        translates GTK3 widgets signals to event sounds
ii  libcanberra-pulse:amd64       0.30-7       amd64        PulseAudio backend for libcanberra
ii  libcanberra0:amd64            0.30-7       amd64        simple abstract interface for playing event sounds