To turn off the annoying error beep sound in WSL Ubuntu.
assuming you know how to edit/save in vim.
run this.
sudo vim /etc/inputrc/
uncomment
# set bell-style none
so it says
set bell-style none
vim will still beep.
Stop vim beeping by adding set visualbell
to your .vimrc