Is it better to install Ubuntu completely new or is the upgrade process just as good? In other words, will my computer run just as problem-free and efficiently when I upgrade as opposed to a fresh install?
Typically, upgrades are just fine in Ubuntu. It's not like Windows where you have a huge registry to carry over from your last system. As long as you haven't had to follow many tutorials or done any workarounds to fix problems in a unique way (i.e. using a special application to enable your wireless card or made some major changes to your kernel for whatever reason) you'll be fine.
In fact, I'd say about 90% of people who are asking this question will be fine with the upgrade.
If you want to stay absolutely safe, you can always wait for the vetted point release upgrade, or even maybe wait for the next LTS release in a few years. It's your choice. You'll still be supported for the next three years with updates if you're on 10.04 right now.
That depends what you use Ubuntu for.
- If your installation is only a toy or an appliance (e.g. just for web browsing) and you haven't customized it, reinstall. Make sure you save any personal data (typically you'll want to back up your home directory and restore selected parts).
- If the only customizations you've done on your installation are to install additional drivers or make other tweaks because your hardware was poorly supported under the old version, it may be better to do a clean reinstall.
- If you've customized your installation in any other way (configured system settings, installed more than a couple of additional programs, etc.), upgrade. If you've used Ubuntu actively, this case probably applies (if nothing else, you're likely to have installed a bunch of packages).
At the system level, Ubuntu is very good at smooth upgrades. Upgrades are tested before each release. This is a supported mode of operation, and it's more likely to leave you with the system you want than reinstalling and trying to remember all your customizations.
At the user level, Ubuntu's default interface is Gnome, which is not so good at importing settings from one version to another. Thus the choice is between
- starting from a fresh home directory and restoring all documents and selected settings from a backup; and
- keeping your home directory across the upgrade, and looking into the problem if something goes wrong.
In either case, you might as well do a system upgrade.
Generally a fresh install is preferred for the reason I have seen a lot of issues with the upgrading process. Upgrading process generally ends up going in some crappy graphic driver problem or a GPU one. I even got weird problems, like non availability of shared folders and data loss.
Well its all up to you, as problem also persists when you are going for a clean install. But clean install problems are generally easily understood and recoverable.
Well enjoy installing Ubuntu :)
There are no guarantees in life
You can have crashes in a fresh install or in an upgrade. Most people will not experience a crash. If you are in that unlucky minority it is best to:
- have a backup you can restore or,
- test the install/upgrade on a separate partition.
Clean install advantages and disadvantages
For a clean install all that old garbage you've installed over two years between LTS versions is gone. This however can be a disadvantage as you often forget the good stuff you've added in
Upgrade advantages and disadvantages
In the process of upgrading you are told for each configuration file what each new package version will be changing. You can select to keep the old or take the new version. For example during Ubuntu 16.04 LTS to 18.04 LTS upgrade these changed on my system:
- Scanner configuration -
- Sound override to keep HDMI TV active -
- Grub override to hide menu at boot unless Escape pressed -
- Cron(you would loose all on fresh install!) -
- Total network traffic monitoring utility -
Running the upgrade on May 6, 2018 I was told that 203 packages will be removed. Over time support for more packages will be added so fewer will be dropped during upgrade. It is best to ensure all your critical needs packages are there or you have alternatives from other developers to use.
Backup first or run upgrade on cloned partition
Backing up and restoring is a pain. It's time consuming and often times your restore doesn't proceed as planned. An alternative is to clone your 16.04 LTS (or whichever version) to a new test partition and upgrade to 18.04 LTS (or whichever version) there.
I use a script to clone Ubuntu to a test partition for upgrading: Bash script to clone Ubuntu to new partition for testing 18.04 LTS upgrade
The script will:
rsyncto ensure mirror image from real partition to test partition
- Update test partition
/boot/grub/grub.cfgwith proper UUID's for booting
- Update test partition
/etc/fstabwith proper UUID's for booting
sudo update-grubto add test partition to boot menu
- Allow you now reboot and run upgrade on test partition
After upgrade on test partition you can take your time exploring all the new features and checking for bugs. You still have your original Ubuntu installation for day to day work. If you find bugs in the new version, you can rerun the cloning and upgrade a week or two later after they have been fixed. You would also re-clone and re-upgrade if packages critical to your work were not supported but now support has been added.
For me upgrading always led to problems, sometimes big sometimes small. And most of them was in old config files in home folder.
So my usual flow is like this -
- Backup critical data which may reside on root partition like mysql dbs for example
- Boot into live cd
- Carefully delete hidden files in your home folder, but you may leave some of them like .purple, .VirtualBox, .wine etc
- Format root partition and use old home partition
Do a fresh install if at all possible.
I was presented with this choice last year.
Best of all I had TWO systems to upgrade so I could compare by doing each.
In summary, as others have noted, if you can do a fresh install, that's the best option. It will clear out things that miht otherwise be issues going forward. It'll make you ensure that all your important data and personal programs are not fixed to that machine (obviously you'll be backing them up in this case).
My 'production' machine was the one I upgraded because I was using that for key work stuff.
One thing I would recommend though, as I know hard nerve-wrecking this process can be: Get another machine (you can get a bar bones machine for < $300 now. Set THAT up with your key stuff and then when it's really working ok, do your core machine. That way if something goes wrong, which with an OS install/upgrade can be pretty scary, you can use your other machine while you resolve it. You'll also end up with a physical backup of your data plus a 'go-to' machine if yours fails in the future. Its basically insurance.
A clean install is the best way to insure you're getting the experience the developers intended for the release, whereas upgrading can use old data, configurations, packages, etc. or create scenarios developers didn't anticipate or failed to tolerate correctly.
If you're asking - fresh install. Just copy your home directory to the base and change the name to something not used by the system, then during the installation select that partition as "/" and make sure not to select "format" This will install the operating system, but you'll have access to your data without a re-format or anything.
For an inexperienced Ubuntu user a clean installation of Ubuntu is probably safer than a distribution upgrade assuming that you have the self-discipline to backup all your personal data before upgrading, the same way you would backup all your personal data before completely reinstalling Ubuntu.
If you are prompted for an upgrade, that means it's a supported upgrade, but how do you know that a supported upgrade will be successful? Even upgrading a brand new installation of Ubuntu can go wrong. I've seen this happen, but the error that was caused by this upgrade was petty and easy to fix.
Sometimes the upgraded system will contain many unnecessary files, config files which aren't working with the new system, etc. Config files which aren't working are identified by the Ubuntu installer when upgrading. When I upgraded from Ubuntu 18.04 to Ubuntu 20.04 it took about an hour and I received one notification about a config file that need to be edited. I copy/pasted the suggested edit into a text file and edited the config file after the upgrade was completed. It should be noted that if I hadn't watched the terminal output for the entire hour that it took to upgrade to 20.04 I would have missed the suggested edit which worked perfectly.
For removing unnecessary files from the upgraded system I use the following commands:
deborphan- Install this package management tool with
sudo apt deborphan.
sudo apt autoremove
sudo apt clean
Running these commands after upgrading takes me about 5 minutes. My workstation has a lot of installed software. If I had done a fresh install instead of an upgrade configuring all the installed applications on my workstation would have taken me 2-3 days.
A successful upgrade is almost entirely dependent of your level of understand of the Ubuntu operating system. Problems caused by an upgrade can almost always be solved if you have the required level of skill necessary to solve them. When I am upgrading Ubuntu I keep a 2nd laptop running alongside the computer being upgraded, so that I can immediately search Ask Ubuntu for the solution as soon as something goes wrong. I rely on my own experience and the experience of others to help me to solve problems that are caused by an upgrade. Otherwise you're gambling on any distribution upgrade – especially if you're an inexperienced Linux user.
I've encountered a few problems with upgrading from v11.10 to v12.04-LTS, however I was able to perform first an automated cleanup via ubuntu-tweak, and then later I followed that up with a manual cleanup from the command-line by first running 'updatedb' to update my location database of all items within the filesystem, then 'locate oneiric' to locate any objects that called to the 11.10 distribution specifically, then I simply opened a 2nd terminal and deleted each object tied to oneiric that wasn't obviously something that needed to be handled differently, such as via an uninstall/reinstall, first.
I did have to reinstall my graphics drivers for my laptop's Nvidia Go chipset, and I've encountered a few problems from some of my screenlets that I carried over from oneiric, but overall it's not been a bad deal.
I'll say this about upgrades: If you have a lot of experience with troubleshooting an Ubuntu or other Linux based system, then upgrading is not a bad deal because it doesn't seem to produce any problems that a competent Linux technician cannot sort out fairly quickly. But, if you do not fit into this category of users, then I recommend backing up all of your personal data from the system before you start, along with a package list of everything you have installed on the OS you want to replace, and then do a clean install. Personally, I have 15 years of experience in working with Linux based systems, so for me... working out the problems after an upgrade were pretty simple.
I had done some testing with the Beta 2 release in preparation for the final release so I would know what I would need to adjust for when the final release was available. This has helped immensely. For instance, I knew from my testing that in order to get manual login capability to lightdm, I would have to add "greeter-show-manual-login=true" to /etc/lightdm/lightdm.conf. I also knew that I would have to make a few slight adjustments to /etc/sudoers and /etc/group in order to allow flawless management and login of my system by any member of the "Domain Admins" group in Active Directory, which I require since I run AD on my home LAN for single-sign-on authentication across all of my systems, both Windows & Linux based. Knowing these facts up-front have served me very well, since I'm now running Ubuntu 12.04-LTS final on my laptop that I'd been running Ubuntu 11.10 on the previous day, and for the past 6 to 8 months. With this system-upgrade being a stunning success overall, I have much less in-trepidation about upgrading several of my other systems to Ubuntu 12.04. However... that said, not all of my Ubuntu systems are equally loaded out, so in some cases I will still want to do a clean install and base that install on the particular hardware I'm working with. My Zotac ZboxHD ID-41 Plus will require much more care where the upgrade is concerned, because it's a dual boot system that runs Windows 7 and Ubuntu 10.04-LTS. Fortunately, I'm well versed enough to perform the installation without wrecking the system overall and having to start from scratch. I will simply backup all of my personal data from the Ubuntu partitions and reload after I've wiped those partitions to ensure a clean environment. I also have to take into consideration that each of my systems are configured to be connected to via an xrdp gateway on another system (a virtual server, running Ubuntu 10.04-LTS Server), and so I must have XDMCP capability. But, I've already researched and tested the solution for that, using lightdm, vnc4server, and xinetd. The main thing there is to simply remove 'vino' up front so that port 5900 is freed up for vnc4server. The rest is a standard installation and configuration. I will publish several articles soon in regard to my research and howto's on www.stormnine.net. But, it may be a few weeks before I get around to that, since I have a fairly large group of systems that I want to port to Ubuntu 12.04 first, which could end up leading to my writing a few more articles and howto's based on that experience.
Anyway, I know this response is kinda long winded, but I hope that it gives some insight into the upgrade process from a resulting-experience perspective, coming from a technician that works with multiple operating systems professionally. Good luck, everyone, in your own projects. :)
The AptOnCD software is used to create an offline repository of your downloaded packages in a cd. You can use your AptOnCD (created by you, with all your downloaded packages) as a repository source. It is a useful tool for those with less bandwidth. (I have used this before). You can also have a metapackage which install all the installed packages.
you can get more information about AptOnCD here.
Actually you can restore(install) all the packages in a single AptOnCD compilation with a metapackage, if you choose the 'create a metapackage' option. From the metapackage description: "Auto generated meta-package that contains as dependencies all packages in APTonCD media, previously generated by APTonCD".
But you can backup the list of packages by entering command
dpkg --get-selections > packages_list, where
packages_list is the filename. You can later use this list to install all your packages with the program
dpkg. this may help you. But make sure your newly installed system also has the repository sources which was in your previous installed system. otherwise, it will not work.
To install all the packages using 'Synaptic Package Manager', follow these
- Install synaptic with
sudo apt-get install synaptic
- Open synaptic by typing
synapticin the dash
- Select 'File' from menu, Click 'Read markings'.
- In 'Open Changes' window, select the file which you created using
dpkg --get-selectionscommand. In this context it is
- Then click 'Apply' button.
The upgrade can have some issues on certain software and it definitely isn't full proof against idionsyncries with older packages. For the most you shouldn't have problem but remember to back up any settings or data that is important to you.
For a full proof installation reformatting and installing from scratch is the best option. Though it will take much longer of course to set it all back up correctly.
Both of them should not be (necessarily) true.
Upgrading is always supported from:
- previous to current (for example, from 11.04 to 11.10)
- previous LTS(*) to current LTS (for example, from 10.04 to 12.04)
Updating online: no reason either, except for time and bandwidth. If you download the ISO, and update from the ISO, the update experience would be better than online, if you do not have a fast Internet connection. Of course, I am not counting the time to download the ISO, but this is usually a fire & forget action: we start the download, and go do something else.
This is all supposing you did not install packages from external sources, or manually built & deployed other things. In this case, it is difficult to say if an update will work flawlessly or not -- it depends on what you installed, and where you installed.
(*) Long Term Support
People mess with their systems. Adding this and removing that. A fresh install from a Live CD with the / partition being formatted will start off with clean configuration files. And this sometimes fixes some annoying little problems that are difficult to solve.
Do not forget that when you install from a CD with an internet connection, the install process will update the system as the process moves along. As for danger this is no worse or better than upgrading over the internet.
I have found it quicker to download the iso and upgrade from that with an internet connection than when upgrading directly over the internet. This is just my impression. It is not scientific fact. I also like to have a copy of the latest live CD available in case I mess up my system so much that a fresh install is needed.
At the moment I am in two minds as to whether I upgrade 11.04 to 11.10 or fresh install 11.10. I may wait until 12.04 to do the fresh install. It is a matter of personal preference. People should not make comments that suggest one method is more dangerous than the other. It is misleading.
I'd suggest one of two things:
- Back up critical files and data in Dropbox. This way no matter what you do, ever, you can retrieve them (even on completely new computers)
- Back up critical files and data to a thumb drive. This might be the best option for you, as it will not require a high-bandwidth Internet connection.
I suggest you do (2) in either case. If you upgrade, you risk losing data. If you do a fresh install, you will lose data.
I suggest you wait and see how other upgrades went. Then see what issues they caused, since the release before this was a LTS, no need really to jump ship until your sure, its stable. :)
just my opinion, really! there are some cool features 10.10 though FONTS for example. also something to do with clouds :P
I did a fresh install of 12.04 Beta 2 after backing up my home folder on an external hard drive, then joined the AU community. It was the best learning experience ever. I updated every day and experienced issues others were having and when 26th April came around I was done and the ride was smooth. This way I had the best of both worlds, trouble free and highly recommended.