There are a number of issues with switching to an electric-only future. The main one is legacy infrastructure and in turn the end cost to individuals. Any move to a new power source needs to take this into account. If not, then the whole process will stall.
If you are a politician and you alienate your voters by placing a large cost burden on them. Then your chance of being voted for the next time around it is low. This will inevitably will cause a pushback.
The best I have seen so far is the move from natural gas to Hydrogen plan. I have attached an extract from a British Gas write-up of the UK government's plans. In essence, it forms a stable staged and a slow move away from natural gas to hydrogen.