How to disable system sounds in Ubuntu 19.04?

Solution 1:

This question has been answered here

To disable alert sounds on Ubuntu 19.04 you could install dconf editor, either from terminal or from activities/software center. From terminal

sudo apt install dconf-editor

Next, launch dconf editor and navigate to org/gnome/desktop/sound/event-sounds and flip the switch to off
alternatively, click on event-sounds and set custom value to False

Solution 2:

If sound files for system events are stored in org/gnome/desktop/sound/event-sounds, you could mv those files to a different location. for example: .../event-sounds-backup. Allowing you to easily put them back where the system expects them to be.

Or just delete the event-sounds directory if you're positive you will NEVER want to hear them, without having to re-install them.

Not an elegant solution, but no sound files means no sound can be played.