An obvious remedy is to prolongue the life of our star, e.g., by insertion of a small artificial black hole (which, I take for granted, we shall be able to prepare a few hundred thousand, or million, years down the road) into the heart of the Sun. Yet another solution is to reposition Earth into the system of another star nearby, or even inside another arm of the Galaxy, provided that we'll have much attention to the cradle of humanity then. But, whichever treatment may be deemed necessary, I reckon Earth and Moon deserving a special status in the future history of the race. ;)