Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Is a clean install better than upgrading?

I am currently using Ubuntu 11.10 . In a few weeks I plan to upgrade to 12.04 . However, I have heard that upgrade can result in a broken system. So, I thought to make a clean install without formatting because I have heard that it reinstalls your system files and deletes your programs but your personal files and program preferences, which are in /home, are not deleted. How about upgrading and, if something goes wrong, make a clean install without formatting? What are the differences between upgrade and clean install without formatting?

share|improve this question
    
This isn't a duplicate of askubuntu.com/questions/5466/… . installing without formatting is NOT a clean install. For non-clean install-over-the-top-of-existing-OS, see: askubuntu.com/questions/142925/… –  naught101 Jul 6 '12 at 13:40
add comment

marked as duplicate by fossfreedom May 18 '12 at 19:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

up vote 6 down vote accepted

Well,

Firstly let me explain you what Upgrade means and what Fresh Install means.

UPGRADE -

Upgrade means your system will be updated to the newest resources,applications,libraries,Kernel versions and will have the latest Patches to various software BUT your data that was there in your /home folder will remain intact.

FRESH INSTALL-

Fresh install means your system will be updated to the newest resources,applications,libraries,Kernel versions and will have the latest Patches to various software BUT your data in /home will be completely lost because fresh install is nothing but installing a new OS.

Now,about your doubt about broken packages in upgrades,

This problem generally occurs when you upgrade online using the UPGRADE TOOL.

One way to avoid this is to burn an ISO immage on to a CD/USB making it bootable and then UPGRADING instead of INSTALLING FRESH

When you boot the CD/USB you have created and click on INSTALL on the first screen,next you will get a screen asking for -

  1. REPLACE 11.10 WITH 12.04
  2. UPGRADE 11.10 to 12.04
  3. SOMETHINF ELSE

If you select the 2nd option,you will have the benefit of UPGRADING with very less risk of Broken Packages

Always remember to select to INSTALL 3rd PARTY SOFTWARE and UPDATE DURING INSTALLING when you start the install. This further reduces the risk of broken packages later.

I would recommend UPGRADE USING A LIVE CD over INTERNET UPGRADE or FRESH INSTALL

Needless to tell,backup all your data.

Hope the answer helps you.

share|improve this answer
    
Question: I dual boot Windows 7 and Ubuntu 11.10 . Will the options 1 or 2 change the partitions in any way? –  user64386 May 18 '12 at 10:25
    
NO. the partitions wont change.In both the cases,only the space that 11.10 is currently using will be reused(in case of option1) or updated(for option 2) –  Nirmik May 18 '12 at 10:29
    
Do accept the answer if helps you in the correct direction for ease of further users. –  Nirmik May 18 '12 at 10:36
    
best luck for the upgrade.Happy the answer helped :) –  Nirmik May 18 '12 at 10:42
    
@Nirmik, since only /home remains intact, cmd line tools that are installed on other locations are deleted? Also, what about proprietary drivers? –  latusaki Mar 17 at 20:58
add comment

Upgrading has been causing much trouble to many. The advantage of upgrading is that not only does it preserve your files and folders, but it also upgrades your system as well all the softwares in it to the 12.04 version.

However, doing a clean install without formatting your /home partition (hoping you have a separate partition for it) will not have the softwares of your previous Ubuntu version. Even though it will install cleanly usually without causing much trouble, you will be left with a 'clean' machine.

There is a work around for this however. It is as follows:

  1. First you have to know which all packages are installed in your 10.04. For that you can do

sudo dpkg --get-selections "*" > pack_file

After running that, you will have the names of all the packages in 10.04 in the file called ‘pack_file’.

  1. Transfer that file to 12.04 and run the following commands

sudo apt-get update

sudo dpkg --set-selections < pack_file

sudo apt-get -u dselect-upgrade

This will fetch all the packages as well as their dependencies and install it on your system.

So you have upgraded you system without directly issuing an 'upgrade'! Refer to the following post for details:

http://sosaysharis.wordpress.com/2012/05/02/upgrading-to-ubuntu-12-04-the-way-i-did-it/

share|improve this answer
add comment

As far as I understand, you don't have different partitions for / and /home. The safest way to go, imho, is to just backup your home folder to an external drive and do a clean install (w/ formatting).

There was another answer on a similar question, which you could view here, but I'm not sure that'll actually work, since I never tried it myself.

There's also a question of what happens with all your installed software and configuration files (stored in /etc). On an upgrade they're kept, but on a clean install, you start from scratch. So you have to reinstall and reconfigure everything.

If you didn't do extensive customization of your installed software, I would recommend going for a clean install. It's a lot easier to reinstall whatever apps you are using instead of trying to fix a broken system.

Please note: it's always a good idea to backup your files before doing any system (re)install. If something can go wrong, there's a big chance it actually will.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.