March 11, 2009 · General · Email This Post

Sponsored Link
The package libcanberra installed by default in Ubuntu 8.10 (Intrepid) is version 0.6 , it seems to be obsolete and causes the system sound to work ineffectively, the following three steps will solve this problem.

Step 1: Install the newer libcanberra

Edit /etc/apt/sources.list file using the following command

sudo gedit /etc/apt/sources.list

add the following lines at the bottom

# PPA for Gert Kulyk (to fix system sound problem)
deb http://ppa.launchpad.net/gkulyk/ubuntu intrepid main
deb-src http://ppa.launchpad.net/gkulyk/ubuntu intrepid main

Add the GPG key using the following command

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com DBF1CA1622460E60

then update the repository

sudo apt-get update

after that, update manager will prompt updates for libcanberra, just install all of them and reboot.

Step 2: Enable system sound

open System -> Preferences -> Sound Effects -> Sound Effects , check the ‘Play alerts and sound effects', and assign the sounds for every particular sound effects, now the system sound should work normally.

Step 3: Enable shutdown/logout sound

Although we enable the sound effects, however the logout sound is still missing, the solution is:

open /etc/gdm/PostSession/Default

sudo gedit /etc/gdm/PostSession/Default

add the following line before ‘exit 0′ and then save the file

/usr/bin/canberra-gtk-play --id="desktop-logout"

now, you could hear the shutdown/logout sound when you shutdown/logout Ubuntu.

Sponsored Link

Incoming search terms:

Related posts

18 Comments to “Howto Enable system sound in Ubuntu Intrepid”

  1. steven says:

    Hi. I have follow your step-by-step instruction above. It seem that the libcanberra need the GPG key. How to get the key ?

    Secondly, I don’t hear anything when I am logout from system, even I have read the instruction twice. Please help…

    Thanks…

    [Reply]

  2. D. Miles says:

    The following error results:

    GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DBF1CA1622460E60

    [Reply]

  3. tam says:

    yeah, I have the same problem. I have a System76 and using the 64-bit version

    this is the error message:

    W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DBF1CA1622460E60
    W: GPG error: http://packages.medibuntu.org intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
    W: You may want to run apt-get update to correct these problems

    [Reply]

  4. Matthias says:

    Seriously, who wants to actually turn his shutdown sound ON? I’m happy that my system remains silent ;O)

    [Reply]

  5. tmarkee says:

    Public Key Server — Get “0xdbf1ca1622460e60 ”

    —–BEGIN PGP PUBLIC KEY BLOCK—–
    Version: SKS 1.0.10

    mI0ESXglqwEEALv6modIIXh2bKCMap213PYXg5rQ+juOsMHV4Nnjxl0xRLptSKVBPHmGY1jS
    GFKMlulgoL59vRC936XEExwpFmUjAWfWJUWozbcVyOdw1JUsXMOtDN5Y1eWVPDiuWfxoZ5tR
    BM2SflEA5OWP5dGgLBU9FVor5Y/8teL4z6bVnbsRABEBAAG0HExhdW5jaHBhZCBQUEEgZm9y
    IEdlcnQgS3VseWuItgQTAQIAIAUCSXglqwIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJ
    ENvxyhYiRg5gspwEAIy5TXMMYB62z7O0Jb7d0BbDibyRYH3sq45is+sSxWqt2zci3ssqZRAe
    ctwem3CljZAxmLVUe4wzk/lzBGv4x/Bm0C6GQjjBxwxnmk93IDMGP9X8QwLANztC1iQlLN8j
    ln5o20pjcbcHgWWjXalM2ToTdZFkYb5UkMKzxzKkfACi
    =mPGc
    —–END PGP PUBLIC KEY BLOCK—–

    https://edge.launchpad.net/~gkulyk/+archive/ppa

    [Reply]

  6. steven says:

    It is called experiment, making Ubuntu better.There is no harm to make logout/shutdown have a sound.But how to solve the GPG issue NO_PUBKEY DBF1CA1622460E60 ???

    [Reply]

  7. crjackson says:

    Logout / Shutdown sound still doesn’t work. Everything else does now though.

    [Reply]

  8. Pdiddy says:

    I was getting the following error too and so I did a google search and came across this site, it seemed to work for me..hope this helps others.

    GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DBF1CA1622460E60

    Go to: https://help.launchpad.net/Packaging/PPA#Adding%20a%20PPA%20to%20your%20Ubuntu%20repositories

    [Reply]

  9. steven says:

    The GPG things have been solve. But there is no sound either. Anyone can solve this ? There is any success story as far ?

    [Reply]

  10. Gerry says:

    to solve GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DBF1CA1622460E60

    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com DBF1CA1622460E60

    [Reply]

  11. Gerry says:

    for the logout sound

    add the following line before ‘exit 0? in
    /etc/gdm/PostSession/Default

    code:

    /usr/bin/canberra-gtk-play --id=”desktop-logout” --description=”GNOME Logout”

    [Reply]

  12. steven says:

    Hi Gerry, I try to used your code by add the statement before exit 0 with

    /usr/bin/canberra-gtk-play –id=”desktop-logout” –description=”GNOME Logout”

    I try with gnome-terminal to run this statement and don’t get any sound.

    BUT when I try to do the syntax with

    /usr/bin/canberra-gtk-play –id=”desktop-logout” –description=”GNOME Logout”

    It returned a sound.

    BUT either this syntax I don’t hear anything when I logout from system. :(

    Anybody can help ???

    [Reply]

  13. Gertz says:

    It is called experiment, making Ubuntu better.There is no harm to make logout/shutdown have a sound.But how to solve the GPG issue NO_PUBKEY DBF1CA1622460E60 ???

    Yeah right… You wanted to make Ubuntu better when did not even have an idea how to get rid of such a simple error message. Do you have a better joke?

    [Reply]

  14. Emre says:

    to solve GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DBF1CA1622460E60

    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com DBF1CA1622460E60

    [Reply]

  15. tele says:

    After the installation my starnet dictionary have no sound and my logout has no sound to
    how do I uninstall the above fix??

    [Reply]

  16. Gertz says:

    After the installation my starnet dictionary have no sound and my logout has no sound to
    how do I uninstall the above fix??

    Average human beings only use 10% of their brains potentials. In your case, though, less than 0.5%. How unfortunate.

    Read the article from the very beginning, and remove everything that you added.

    [Reply]

  17. Gertz says:

    After the installation my starnet dictionary have no sound and my logout has no sound to
    how do I uninstall the above fix??

    Average human beings only use 10% of their brains potentials. In your case, though, less than 0.5%. How pitiful.

    Read the article from the very beginning, and remove everything that you added.

    [Reply]

  18. Jebtrix says:

    Here is a script to automate the fix:

    ————————————————-
    #!/bin/sh

    if [ $(whoami) = "root" ] ; then
    if !( grep -E ‘/usr/bin/canberra-gtk-play –id=”desktop-logout”’ /etc/gdm/PostSession/Default ) then
    cp -f /etc/gdm/PostSession/Default /etc/gdm/PostSession/Default.bak
    sed ‘/^exit 0/i /usr/bin/canberra-gtk-play –id=”desktop-logout”’ /etc/gdm/PostSession/Default.bak > /etc/gdm/PostSession/Default
    echo
    echo Logout sound fix applied!
    echo
    else
    echo
    echo Logout sound fix already applied!
    echo Nothin done.
    echo
    fi
    else
    echo
    echo Sorry, you must be root to run this script
    echo
    exit 1
    fi
    exit 0

    [Reply]

Leave a Reply