We would need inter-star space travel (better with a FTL engine), or we won't survive.
Don't worry, if the sun explodes, we still will have some time (about 8 minutes) before the explosion hit the earth, so maybe we can arrange something
Emit a lot of fumes and let the greenhouse effect do the rest.
Pretend it's Hallowe'en. Constantly.