I lost the sound on my Ubuntu desktop earlier tonight. I’m not exactly sure what caused it to stop suddenly. Anyhow, here’s the fix. I’m running Ubuntu 10.04 LTS. I did a little digging around and found one great solution that I would like to share. I’m sharing it, so others can benefit as well.
The solution needs the help of module-assistant, a command-line tool for handling module-source packages specifically for Debian-based distros, which Ubuntu is. Module-assistant will help users build and install module packages for custom kernels.
To apply the fix, you must first install Module Assistant. The command line is abbreviated as m-a. You will need to run update first, followed by prepare, and then run the auto-install of the alsa sound drivers. The series of commands below should do the trick. You will need to reboot after the install.
sudo apt-get install module-assistant sudo m-a update sudo m-a prepare sudo m-a a-i alsa