How To Update / Upgrade Linux Mint 15 Olivia To Linux Mint 16 Petra

Hello Linux Geeksters. In this article I will show you how to update / upgrade Linux Mint 15 Olivia to Linux Mint 16 Petra, by changing the repositories and fully updating system with apt.

Use these two oneliners to replaceraring” with “saucy” and “olivia” with “petra”, in order to get the needed repos.

$ sudo sed -i 's/raring/saucy/' /etc/apt/sources.list
$ sudo sed -i 's/olivia/petra/' /etc/apt/sources.list

Next, you have to fully update the system:

$ sudo apt-get update && sudo apt-get dist-upgrade

After this happens, your apt manager will ask you if you want to new configuration files, or you prefer to keep the old ones. I usually type Y, to accept the new files. The old ones will be in stored in the same directory as the new ones, but with the appendix .dpkg-old, so if you are not pleased with the new settings, you can restore your old ones.


$ sudo apt-get upgrade


$ sudo shutdown -r now

This is it. Enjoy.

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!
14 comments on “How To Update / Upgrade Linux Mint 15 Olivia To Linux Mint 16 Petra
  1. Richard says:

    The `sed` executions need to be re-coded (not the concept, just the details). Probably, things changed in Mate Olivia since you wrote the article:

    sudo sed -i ‘s/raring/saucy/’ /etc/apt/sources.list.d/official-package-repositories.list
    sudo sed -i ‘s/olivia/petra/’ /etc/apt/sources.list.d/official-package-repositories.list

  2. Tom says:

    Thanks for the info. Seems to work beautifully. But…as always, create a bullet-proof backup of your Olivia install (including a boot CD) just in case.

  3. bobbysamd says:

    Worked for me after I substituted “petra” for “olivia” and “saucy” for “raring.”


  4. Serge says:

    Hey. I am running Mint 15 from a USB drive to give it a spin, and I tried the above but ran out of space …. how can I reverse the terminal command… can I just swap “/raring/saucy/’” and ‘s/olivia/petra/’ ?

  5. neme says:

    Mint 14/15 -> Mint 16

    If you updated from Mint 14 to Mint 15, upgrading to Mint 16 should be :

    $ sudo sed -i ‘s/raring/saucy/’ /etc/apt/sources.list
    $ sudo sed -i ‘s/olivia/petra/’ /etc/apt/sources.list
    $ sudo apt-get update && sudo apt-get dist-upgrade
    $ sudo apt-get upgrade
    $ sudo shutdown -r now

  6. neme says:

    “medibuntu” has been closed, it is better to disable it from /etc/apt/sources.list:

    # deb raring free non-free

  7. Yeah says:

    Anyone having a bit different system setup, than default – don’t even try this. If you are using crypto disks, forget it. If you have LVM, forget it.
    It’s nice to dream that sed + apt-get will work for everyone, but it isn’t so.

  8. Avinash G A says:

    done…. had an issue with login scren. theme not found error….. login using ctrl + alt + f1 and started desktop and changed the theme……

    so far sooo good….

  9. gary says:

    I downloaded lm15 cinnamon x64 in dec and set up dual boot on win 7 dell laptop.everything works except headphones.I am hard of hearing so need headphones to work.I am new at this and found out olivia not supported any more.would like to try sudo-get to upgrade to lm16 cinnamon and see how that works.Thank you in advance. gary

Leave a Reply

Your email address will not be published. Required fields are marked *




Subscribe to get the latest Linux news and how to guides directly on your e-mail!