LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2013, 11:11 AM   #1
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 54
Ubuntu Release Upgrade Question


Hello,

Perhaps you guys can shed some light on this for me as it's a little confusing. So I have an Ubuntu 10.04 server that I would like to upgrade to Ubuntu 12.04. I see that there are a few ways I can do this:

1) apt-get dist-upgrade
2) do-release-upgrade
3) install the OS on a different machine and migrate the data over

The difference between options 1 and 2 are not clear to me. Some places say that dist-upgrade is for kernel updates, but I've run it once on a different box and it has actually upgraded my release (it was also 10.04->12.04). I just tried do-release-upgrade on a VM and it seems to do exactly what it says it will do. What are the differences?

My last question is to experienced sys admins out there. I was once told to never do a dist-upgrade or a do-release-upgrade as it is far more likely to break everything than to work. They always recommend installing the OS from scratch. What do you think?
 
Old 01-30-2013, 11:18 AM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,147

Rep: Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159
You are mistaken about #1. 'apt-get dist-upgrade' is for upgrading your existing release, it does not upgrade you to a future release. (It can be used to do so, if you edit your sources.list first, but this is not the recommended Ubuntu method for some reason.)

Ubuntu is a somewhat buggy distro (including the upgrade mechanisms), and as a result many users experience failed upgrades. My experience on UbuntuForums is that the risk of failure is directly proportional to the amount of third-party software, PPA's, proprietary drivers/modules in use, etc. ("Vanilla" installs are most likely to successfully upgrade.) If it's a production machine, it's always prudent to test the upgrade on an identical spare machine.

Last edited by snowpine; 01-30-2013 at 11:19 AM.
 
1 members found this post helpful.
Old 01-30-2013, 11:28 AM   #3
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by snowpine View Post
You are mistaken about #1. 'apt-get dist-upgrade' is for upgrading your existing release, it does not upgrade you to a future release. (It can be used to do so, if you edit your sources.list first, but this is not the recommended Ubuntu method for some reason.)

Ubuntu is a somewhat buggy distro (including the upgrade mechanisms), and as a result many users experience failed upgrades. My experience on UbuntuForums is that the risk of failure is directly proportional to the amount of third-party software, PPA's, proprietary drivers/modules in use, etc. ("Vanilla" installs are most likely to successfully upgrade.) If it's a production machine, it's always prudent to test the upgrade on an identical spare machine.
Ah, I see. I guess that the previous admin had updated the sources.list file on me on that server without mentioning it. I knew something was strange when it updated releases when I didn't expect it to (hence the confusion). Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Does mint upgrade to the next release version like ubuntu does (8.10 to 9.04) ? brjoon1021 Linux Mint 6 07-31-2009 05:00 AM
question on using up2date with --upgrade-to-release jburklow Red Hat 2 08-31-2008 05:16 PM
syntax question on using up2date with --upgrade-to-release jburklow Linux - Newbie 2 08-31-2008 05:14 PM
Another Stu'bie question...upgrade to new release smiley_lauf Linux - Newbie 1 01-22-2006 10:46 AM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration