you didnt get that all correct swinkey, the sun will die out, but it will turn into a red giant and earth will become to hot, oceans will dry and so on, but thats not how the whole solar system dies. Earth also may become too polluted in hundreds of years, too polluted to live.