r/Ubuntu•
Mallen

How do you update (to a new release) your system?

After 5 years of playing around with Ubuntu I have finally been able to make the switch full time. Now that my system is perfect I really don't want to reinstall when the next release comes out and have heard that doing it through updates is bad and can harm your install. How do you update you system?

Edit: Clean install it is.

Posted Jun 22, 2010, 2:27 PM UTC · edited

1933
vertagano•

I use the Update Manager: it alerts me that a new distribution upgrade is available. I wait a couple weeks (to let any horror stories and solutions get plastered on the 'net), then I click the button and enter my password. This has worked well for me, upgrading from 6.10 to 7.4 and all the way to 10.4.

I once tried sudo apt-get dist-upgrade, but that failed mid stream, so I haven't tried it again. I stick with what works.

11
Nhdb•

Yep. The update manager is the only supported upgrade method.

6
MallenOP•

Really, I heard from somewhere that doing this was unstable and could cause problems down the road.

2
hearforthepuns•

It often does. For me an upgrade from 9.10 to 10.04 went fine, but lots of people have had a different experience.

As others have said, it's best to just keep your /home on its own partition, and do a clean install.

4
jherazob•

I have successfully upgraded this install i'm in right now all the way from 7.10 to 10.04. I'm no longer afraid of ubuntu updates, but i do them through the update manager. YMMV, of course, but in general the updates from the update manager have worked well for me. Do heed the advice of not upgrading right away after the distro is out though, wait at least a couple of weeks.

1
jasonhaley•

Back up everything you do. Updating Ubuntu is easy but just as different as switching from Vista to Win 7, in that you should expect to back up your files and not all the tweaks/features/keybinds will be the same.

0
pluviosity•

/home partition....reinstall to my heart's content.

I do keep copies of files like .bashrc and any edited non-/home config files just in case I need them. Also have been using unetbootin to make bootable liveUSBs instead of wasting another CD-R.

8
usrlib•

Agreed. Well, actually, I don't bother with separate partitions. I use dm-crypt to make one partition, but use a USB drive for backups. I backup /usr/local, /etc, /home, and /var/www. Then, I can do whatever and have my system back in a few minutes. I've changed from Ubuntu to Debian and Arch and had 'my system' back in no time.

1
knellotron•

The majority of your configuration is preserved when doing an upgrade, and I've never had a problem with it. In fact, whenever I do that reboot after a system upgrade, it's always anticlimactic for me that my old desktop comes up and it's exactly the same as it was before.

I think insisting on a clean install every time is rather paranoid. Every 3-5 years it's okay, but every six months is silly.

Ubuntu has made some mistakes on the upgrading process in the past that some users will never forgive, but it's a fixed problem with the last couple releases.

5
Zenie•

Honestly, ubuntu is sucha quick and easy install I just move my home folder to an external drive or use back in time. Then reinstall doing a fresh install. If an install is really working for me and I have a lot of customizations and tweaks done. I usually update every .04 release over updating every 6 months. Unless there is some super cool new feature I really want.

3
anechoic•

Back in Time is a very cool app -- I use it in addition to JungleDisk

1
keito•

I have had a seperate /home partition for years, at first I thought it was great, but have grown increasingly more annoyed with the fact that, as well as the users documents been stored within /home... the settings are too. It is great until you want to multi-boot or upgrade and find that certain changes have left your system less than perfect. Sharing settings is a nightmare unless you use different usernames for each distro|version you install.

I would love to have a new filesystem folder designated /settings, meaning I can have different partitions mounted for different distro's or versions.

With the fact that there is no such thing as a /settings entry I have to make do with a seperate data partition instead of a seperate /home partition. This means I can then mount this in every distro I choose and symlink to the various folders (Documents, Downloads, Pictures, Videos, etc) whilst still retaining seperate settings for each distro installed.

Every upgrade I have done:

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

has left me unsatisfied, with something somewhere getting pwned.

It has been a while since I've given it a go though, and things may have changed. Cory Doctorow seems to have only good things to say about his last upgrade.

3
DerKommissar•

Check out LLVM. Makes stuff like this easier and you can have all the folders as real mount points with no wasted space.

edit: That would be LVM

1
immrlizard•

I quit trying. There was always something that I had to customize to get it to work that would quit working when I did the upgrade. When I did the clean install it worked then.

I have been clean install since ubuntu 7.04. Not going back now.

2
vertagano•

The first couple years, I did have to fix things (usually removing Pulseaudio, and re-installing and configuring Alsa), but with the upgrade from 9.10 to 10.4, I haven't had to tinker. (And, I even experienced a power loss mid-upgrade and had to recover my system before finishing the upgrade!)

2
anechoic•

yeah same here...I did an upgrade a while back which hosed my system entirely and although I'm sure things are better now with the upgrade procedure I'm staying safe with doing a clean install

1
[deleted]•

[deleted]

2
vertagano•

Most of your settings. Things that are system-wide and configured in /etc, for example, wouldn't be saved.

3
[deleted]•

Good reason to do an upgrade instead of reinstall.

1
vertagano•

The upgrade isn't much better: any configuration file that is different from the default will be prompted for permission to replace, but often you need to merge new settings with old settings, so you have to pay close attention (or at least note down which ones you were asked about so when a problem crops up later, you have some clues).

2
[deleted]•

Well, for me, I usually can quickly identify my changes, because they are normally commented and localized. Plus, I usually know what settings I've changed. If I haven't made any custom settings, I just replace the old one. Mostly, my changes are to the hosts file, which I keep, and the Apache directory.

The settings in /etc are normally not very extensive, and are system changes. Most apps that have a lot of personal settings save those in the home directory, which I always back up using the simple backup program, which automatically makes backups to my alternate drive.

1
gnimsh•

I have 4 partitions in my system: home, root, swap, and windows. Home is the largest partition, and it's where all my personal settings and files stay. Root is where ubuntu gets installed to. When I upgrade I just install it to the root partition, overwriting the previous OS, and tell it to use my home partition without formatting (done through the advanced partitioner menu) and then once it's up and running I have all my program settings back as if nothing happened. However you will have to install program and reapply repos, but ubuntu tweak makes this super easy.

2
MallenOP•

So far I've just done a full reinstall and backed up my /home folder. I worry because this is my main machine and I hate bringing it into work to upgrade the thing (I have unbearable slow internet with a 10gb dl/ul cap)

2
greendude•

IMO it is best to reinstall always.

I just do a standard backup - all my files, and the config folders of the few apps whose data I need saved - and then do a netboot install, which is really useful, because it downloads files from the ubuntu servers as it needs them, rather then downloading everything to a CD rom, and then re-downloading 100s of megs of updates.

2
[deleted]•

Personally, I always at least try the upgrade first, since you can always delete it and do a clean install, but not vice versa. I have extra space on my HD, so I sometimes can try both by saving the old install; I've rarely found that a clean install was better. The last upgrade, to 10.04 seemed to be problematic for me for a couple of systems, but nothing that wasn't fixable, except one that was partially my fault. I have a USB switch for my keyboard and mouse, and I switched it out during the install to use a different system. When I went back, the install was waiting for input, but the system would not seem to see the kb/mouse, so I had to reboot. Things weren't too good after that, to say the least.

I think reinstalling is a Windows thing, where the registry gets so overloaded that it pays to do a clean install. I don't think it's the Linux/Unix way to do things, unless you just like screwing around with settings all the time.

2
anechoic•

After an 'upgrade' left my system hosed I've learned to only do fresh clean installs

I have two partitions: '/' and '/home'

I do a clean install over the '/'

leaving my '/home' part untouched

but of course I need to reinstall all my apps

here is a page that contains some useful tips and tricks:

http://linuxologist.com/linuxhowto/howto-fresh-ubuntu-install-without-losing-your-current-settings/

2
[deleted]•

[deleted]

2
chevron_colon_3•

I personally prefer a fresh install. I spend a lot of time playing with things, and often breaking things that I don't know how to fix. And I kind of enjoy re-customising my system.

  • I have a Data partition for ~/Documents, ~/Music, ~/Pictures, ~/Videos, ~/.purple, and ~/.WorldOfGoo which I symbolically link my /home folder to
  • I've created a Bash Script to install frequently used programs via apt-get update and use gconf-editor to customise my system automatically. This is working out wonderfully for me, and I've even created another script to make fstab easier.
  • I have 3x20 GB / partitions, and intend to triple boot between 3 versions of Ubuntu, which allows for things to go wrong.

tl;dr Bash Script and Separate Partition for Data with symbolic links instead of a whole home partition maintains Data and most settings, but still resets things you break.

2
[deleted]•

[deleted]

1
ddavev•

Personally, I like:

sudo do-release-upgrade

I've never had any issues upgrading via the command line.

1
kupoforkuponuts•

update-manager -d

(around beta time, or the alpha before it)

1
thalin•

sudo do-release-upgrade

1
mikeyduhhh•

I partitioned the hard drive on my laptop: ~300G for Win7, ~180 for Ubuntu, the rest for windows backup. I haven't booted Win7 since I downloaded and installed Ubuntu 9.04, so I could probably delete it, but I haven't.

Then I created a logical partition for /home thinking that would save me in a crunch. (It didn't and doesn't.) But then I copied home to C: just in case.

About a week later, I accidentally started Windows Recovery mode with grub, and almost let it go until I realized the screen looked funny. So I shut down the laptop. On reboot, there was no grub, no Ubuntu. So I pulled out the CD and reinstalled, and copied everything over from C:\home and all was right except that I had to re-install a few programs.

Moral of the story is backup, backup, backup. I copy home over at least twice a week, and if I have critical work on it, I back up every time I finish with the new data.

1
isaaclaughter•

clean install baby!!!

1