One very concrete action that requires no political will, would be for the media to stop giving a platform to the shooters.
If any would be shooter clearly sees that their message will go unheard, that they will die in anonymity, I think that could deter at least some.
Your point stands though, that the issue is societal.