If governments were actually serious about electronic voting, they need dedicated committees and bureaucratic entities whose sole responsibility is the maintenance and security of these systems.
I expect the United State to be absolutely crippled by cyber-warfare in the coming decades. On a state level, our government is simply incapable of recognizing the many vulnerabilities their systems have and compensating for them.
While personally I think electronic voting is a trash idea (couldn't we instead still vote via paper, and then read the results via ML? This would give us a "margin of error" of votes, but we would always have the paper ballots to fall back on), I think that tightening IT security is a good thing for governments to do. Especially considering just how poor computer security is for government entities.
[1]. Just want to mention I'm not a security guru. This is just my interpretation after visiting many government websites, reading stories, etc