Can we survive the hit
Or it’s curtains ?
I get the vague feeling that you could go a few miles underground and survive the initial blast.
Even if the sun exploded, it would dissapate most of it's energy by the time it hit earth, so the planet itself would probably survive, but it's surface and all atmosphere would be singed off.
It's conceivable that you could take a great deal of biomass and hydrogen underground, and rely on geothermal (instead of solar energy) to survive. Fission would work as well. All those fancy techniques for teraforming mars could be used to live on the surface after the intitial hit too; but at a certain point, moving off world to a gas giant orbit would be better that remaining on earth because both Saturn and Jupiter radiate energy and light (albeit a much lower amount than the sun) that could be used the same way we previously used the sun.
I'm 50/50 on what would happen to existing velocities of the planets afterwards. You'd need some real complex engineering CAD software and a whole lot of differential calc to model exactly what trajectory things would take. But I doubt any of these effects would be instant giving humanity a slight amount of time to plan for the end.