Introduction to Linux - A Hands on Guide | Linux Bible | Linux From Scratch | A Newbie's Getting Started Guide to Linux | Linux Command Line Cheat Sheet | More Linux eBooks



Sunday, 8 June 2014

How To : Upgrade to Linux Mint 17 (Qiana) from Linux Mint 16 (Petra)

    As we all know, Latest stable version of Linux Mint OS which is Linux Mint 17 having a codename Qiana has been released and is available for download with two desktop environments viz. Cinnamon and Mate. Just like Ubuntu 14.04 Trusty Tahr, Linux Mint 17 (Qiana) will be officially supported till 2019. This tutorial will help you in upgrading to Linux Mint 17 Qiana from Linux Mint 16 Petra.


Highlights:

  • Much Improved Update Manager
  • Driver Manager: Now, one can install the driver packages with no need of internet connection.
  • Login Screen: Improved Multi-Monitor Support, with improved HiDPI support and recovery command.
  • Languages: Easy to select languages and add more of them.
  • Welcome Screen: Now uses very less resources and launches pretty faster.
  • GUI: Cinnamon 2.2 with much consistent looks.
  • Kernel: Linux Kernel 3.13 with Ubuntu 14.04 package base.
  • Added attractive backgrounds and photographs.
  • Menu: "Uninstall" with a right-click.
For more details, please find the release notes here.

Upgrade from Linux Mint 16 (Petra)

1. Make sure that the version of Linux Mint you are using is Linux Mint 16 Petra. You can check this by executing any of the following commands in Terminal.

$ sudo cat /etc/issue
$ sudo cat /etc/issue.net
2. Once you confirm the Linux Mint version you are using, you can proceed to the upgrade procedure. But, before doing so, you are advised to take backup of certain files related to repository sources, so that, if something goes wrong, we can revert back the changes easily. These files are /etc/apt/resources.list, /etc/apt/sources.list.d/official-package-repositories.list and /etc/apt/sources.list.d/official-source-repositories.list.

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bkp
$ sudo cp /etc/apt/sources.list.d/official-package-repositories.list /etc/apt/sources.list.d/official-package-repositories.list.bkp
$ sudo cp /etc/apt/sources.list.d/official-source-repositories.list /etc/apt/sources.list.d/official-source-repositories.list.bkp
3. Now, in all of the above mentioned files along with /etc/apt/sources.list.d/getdeb.list file, replace every occurrence of "saucy" with "trusty" and "petra" with "qiana". For our convenience, we make use of sed command as follows.

$ 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

$ sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-source-repositories.list
$ sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-source-repositories.list

$ sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/getdeb.list
$ sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/getdeb.list
4. Now, it's time to upgrade to Linux Mint 17 Qiana.

$ sudo apt-get update

$ sudo apt-get dist-upgrade

$ sudo apt-get upgrade
During the upgrade process, you will be asked certain questions related to Config files and Services restart, you are advised to type "Y".

After the completion of upgrade process, reboot your system by executing sudo reboot command. The check the OS version installed in your system by issuing any of the commands mentioned in Step 1.


8 comments:

  1. Hi! I followed your update guide, and it upgraded to Mint 17. I keep getting this error though swedish):
    N: Ignorerar "official-package-repositories.list.bkp" i katalogen "/etc/apt/sources.list.d/" eftersom den har en ogiltig filändelse

    Translated, it means something like
    N: Ignore "official-package-repositories.list.bkp" i catalog "/etc/apt/sources.list.d/" because it has an unvalid file end

    Any solution?

    ReplyDelete
    Replies
    1. If you're happy with the upgrade, you could remove it. If you still think you might revert, you can move it.

      To move it (safer option):

      sudo mv /etc/apt/sources.list.d/official-package-repositories.list.bkp ~/.official-package.repositories.list.bkp

      To remove it (slightly riskier)

      sudo rm /etc/apt/sources.list.d/official-package-repositories.list.bkp

      Delete
  2. Hi. Thanks for this easy upgrade guide. However, I intend to continue with Petra for now. How do I only upgrade the update manager within Petra (16)?

    ReplyDelete
  3. Very useful indeed. Thank you. I am not sure if it was intentional but some sed commands above are missing the -i option. I ended up using vim and :%s/.../.../g command before realizing that sed -i means "replace in place"... The upgrade is now happening as we speak...

    ReplyDelete
  4. That third sources.list.d command keeps giving me trouble, saying no such file. I can't figure it out.

    ReplyDelete
    Replies
    1. You don't always have that file, which is fine, just ignore that, and continue with the process.

      If you get a window asking you something about configuration files, choose "Install package manager blablabla"

      Delete
  5. Thanks for the info, saves me a lot of time! One little thing for newbies (like me) which was hard to solve:

    When copy pasting the commands in a textfile (to remove the dollar signs) and then from textfile to terminal you might get the error 'Do you want to continue? [Y/n] y Abort.' when you type 'y' or 'Y' or enter etc. That's because when copy/pasting from textfile there is hidden 'break' code.

    To solve this just copy/past 1 code at a time.

    ReplyDelete