If you’re looking to get rid of the annoying system beep in Ubuntu, here is how to do it from both the command line, and from the Gnome desktop.
Disable the System Beep from the Command Line
#sudo vi /etc/modprobe.d/blacklist
And then add:
#pc speaker beep
Save and quit the file:
Now, remove the pcspkr module:
sudo rmmod pcspkr
Disable the System Beep in Ubuntu from the Gnome Desktop
This way is much easier. Simply navigate to System -> Preferences -> Sound then navigate to the System Beep tab. Uncheck the box labeled “Enable the System Beep” and click close.