Linux Mint is a great, stable, friendly distro, but not a rolling release. This how to upgrade to a new release – from Petra to Qiana for instance – without re-installing everything. However, two considerations:
- The recommended way to operate is to backup all personal files, test the new Live ISO and proceed to a fresh install.
- You should have a separate /home partition to avoid copying/restoring your files.
$ cat lsb-release $ cat os-release
And backup your packages sources:
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak $ sudo cp /etc/apt/sources.list.d/official-package-repositories.list /etc/apt/sources.list.d/official-package-repositories.list.bak
Now, first step: modify the Ubuntu and Mint version name in the sources. We’ll use the sed command to replace all ‘saucy’ occurrences with ‘trusty’ and ‘petra’ with ‘qiana’.
$ sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list $ sudo sed -i 's/petra/qiana/' /etc/apt/sources.list $ sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-package-repositories.list $ sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-package-repositories.list
And… that’s about all for files manipulation.
Second step: update and upgrade!
$ sudo apt-get update $ sudo apt-get dist-upgrade
At that point always choose the last software version available (press “Y” when asked) and accept to relaunch any service needed. If you have errors you may need to force install some dependencies. Verify that with:
$ sudo apt-get upgrade $ sudo apt-get -f install
Once again, always choose the last software version available (press “Y” when asked) and accept to install package maintainers version. Once done, finish with a last upgrade:
$ sudo apt-get dist-upgrade
You’re system is now up-to-date and ready to reboot. Check you’re os-release output to see the release version.
Let’s finish with a few desktop screenshots with GTK NumixBlue / Cinnamon Zukitwo Dark.