lördag 8 december 2012

How To Upgrade From Linux Mint 13 (Maya) To 14 (Nadia) With apt

HowtoForge - Linux Howtos and Tutorials Logo

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Follow me on Twitter
Last edited 11/27/2012
This tutorial shows how you can upgrade from Linux Mint 13 (Maya) to Linux Mint 14 (Nadia) with apt. Please note that this is not the recommended way, and it might break your system, however, for me it worked fine.
I do not issue any guarantee that this will work for you!



1 Preliminary Note

As mentioned before, this is not the recommended way of upgrading and might break your system, so make sure you have backups and can revert to your previous system if things go wrong (for example, if you use btrfs, you can use apt-btrfs-snapshot to create a snapshot and roll back to the working version if things go wrong).
The recommended way of doing an upgrade is described here: http://community.linuxmint.com/tutorial/view/2

2 Doing The Upgrade

Open a terminal (Accessories > Terminal)...

... and open /etc/apt/sources.list:
sudo gedit /etc/apt/sources.list
This is how the file looks for Linux Mint 13:
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free

#deb http://archive.getdeb.net/ubuntu precise-getdeb apps
#deb http://archive.getdeb.net/ubuntu precise-getdeb games
Now replace maya with nadia and all occurrences of precise with quantal - this is how the modified file must look:
deb http://packages.linuxmint.com/ nadia main upstream import
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ quantal partner
deb http://packages.medibuntu.org/ quantal free non-free

#deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
#deb http://archive.getdeb.net/ubuntu quantal-getdeb games
Then update the packages database...
sudo apt-get update
... and do the distribution upgrade:
sudo apt-get dist-upgrade
There will be configuration files that have changed between the distributions, and apt will ask you if you want to keep the old file or go with the new one. I always type in Y to accept the new file. This is no problem as the old configuration file will be saved in the same directory with the appendix .dpkg-old, so if your customizations get overwritten, you can port them back to the new file.
Afterwards make sure all packages are up-to-date...
sudo apt-get upgrade
... and then reboot:
sudo reboot
That's it! Now when the system boots again, click on the Session icon on the login screen...

... and select your preferred desktop environment (one of the Cinnamon or GNOME options) - just make sure you don't select Last session or Run Xclient script because this will give you a black screen after login, while the Cinnamon and GNOME options work fine:

You can now select to make your selection the default desktop or to use it just for this session (in the latter case, you'd have to make the desktop selection again when you reboot the system):

Although the wallpaper still displays Maya, the welcome screen shows that it's Linux Mint 14 (Nadia). You can verify this by opening a terminal and displaying the contents of /etc/issue:
cat /etc/issue


3 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by yzw (not registered) on Thu, 2012-12-06 03:25.
plz help, after upgrading to nadia why i can't connect to internet.. in the network manager it say establish connection (LAN connection). thanx..
Submitted by Spook74 (not registered) on Wed, 2012-12-05 16:17.
   I got through the
sudo apt-get dist-upgrade
step and went to reboot, and got a black screen.  Make sure you have backed up your data!
I'm going to download Mint and reinstall that way to see if I can recover anything.  (Most of my data is on a separate partition, but the stuff on my Desktop will be missed!)
Spook
Submitted by Anonymous (not registered) on Sun, 2012-12-02 13:15.
 Replace:
sudo gedit /etc/apt/sources.list
with:
sudo pluma /etc/apt/sources.list
Submitted by Spook74 (not registered) on Wed, 2012-12-05 16:11.
(Pluma replaced gedit in Mint.  If you still have gedit, it will update the file fine.)
Submitted by Mark (not registered) on Sat, 2012-12-01 15:54.
It sounds simple like this and I decided (before reading about it here) to give it a go.
First off, since it might seriously break your system, it is wise to make a back-up of your data (all your data, your home directory and more). Any serious system-upgrade should start with that advice: Backup now!
Second: disable all PPA's you may be using. They will need to be upgraded as well, but that's for later. I suggest you install Y PPA manager to use it to update the release name (precise -> quantal), unless you want to do it by hand
Then, as from my experience, it takes a couple more sudo apt-get update; sudo apt-get upgrade commands to complete the system upgrade. There will be errors, held-back packages etc. But it can and will be done in the end.
Now, update the repositories (PPA's) and see which ones are available for your new release. The ones  the Y PPA doesn't update may (or may not) be up to date.
Finish the upgrade process by re-enabling the PPA's and update again.
Good luck!
Submitted by Anonymous (not registered) on Sat, 2012-12-01 14:43.
A lot of users of Maya installed it because they want extended support precisely without updating the OS every few months, either as described here or by completely fresh install.  I read good things about the Cinnamon upgrade to v1.6 in Mint 14 - that may be the main or only reason to be interested in it - but don't find Cinnamon 1.6 in the Mint 13 repositories.  I'd suggest that when Mint thinks a desktop environment or software package is good enough for release in a new version that it should update the repositories for its active LTS versions a.s.a.p.  That's what I would call "long term support" in practice not theory.
Submitted by geospart (not registered) on Sat, 2012-12-01 07:27.
I ran this update on my Asus 904HA Netbook (hackbox) which had LM13 Maya / Mate. It's old but loves Mint, The update took about an hour and a half. There where a few instances where the update paused and wanted me to authorize the update of a few files. I used Hardinfo to verify that the system showed LM14 Nadia.

Specs:

N270 Atom 1.60 GHz
2 GB of Ram (came with 1GB) - Maxed unfortunately
250 GB Samsung HD (came with 120GB)
and one nifty aftermarket hand stand extended life battery (nice to hold the netbook when wardriving)

- Note: I strayed from the instructions a tad I did an alt+f2 gksu pluma instead of gedit to edit the  /etc/apt/sources.list file. ?

Posted here: https://plus.google.com/u/0/107899136794765613166/posts/Um78H1AfRuX

http://techandcoffee.info

Inga kommentarer: