I am new and do not, of course, know a lot about installing and maintaining an Ubuntu release.
One of the "tricks" I have learned to use is sudo apt-get update
followed by sudo apt-get upgrade
to download and install updates for the installed software.
I recently installed beta 2 of Ubuntu 12.04 (precise pangolin ?) to a test disk/partition just to see what it was like. After the install I updated the software using the commands I listed above because, well, that is what I always do.
Was this a mistake? Are the alpha & beta releases of Ubuntu updated in a different way?
I recently saw reference to the dist-upgrade
command for apt-get
and decided I would try using that to update 12.04. A lot of programs were upgraded, including the kernel so I'm wondering if using just sudo apt-get upgrade
was the wrong way to go for a release which is still under development.
Think of
apt-get upgrade
as a safe upgrade while testing candidate releases. You should use it normally for (mostly) daily upgrade process to keep your packages up to date without* breaking your system. The upgrade option is used only to update the packages already installed on your machine to a newer version.apt-get dist-upgrade
will not only upgrade all of the currently installed packages on your system but also handle the dependency changes for new versions of packages. It intelligently** will remove obsolete packages from your system and install any further necessary. During beta use this option with caution. Normally this function needed for upgrading from one distribution release to another.* Without breaking is a big statement, remember, this is alphas or betas we are talking about.
** Intelligently is definition but because all is beta extra caution should be taken.
Precautions to take while upgrading a pre-release
Y
and letting apt do changes to your system.apt-get dist-upgrade
is needed (new kernel, major change on system packages, etc) make sure that you first runapt-get dist-upgrade -s
to simulate and please read all the changes the upgrade will apply. If you see any weird changes (_I remember killing my system after a dist-upgrade asked me to remove some necessary system packages and the Ubuntu Software Center while 12.04 was in alpha 1) abort it and update you packages again in a few days.Y
.When should you use a upgrade compared with a dist-upgrade?
Use a dist-upgrade when you know the pre-release just went from alpha to beta or the next scheduled step or in the "Wont update these packages" list during a
apt-get upgrade
there are new kernels and other major packages, be extra cautious of the list of packages that will be removed. If there is anything there that you are not sure, or that you think it might break your system abort it after the simulation and get your self informed via the forums or on the IRC channels before applying the changes.If you need further help during the update period or just a quick chat to point you in the right direction during an pre-release system read the informationins this post
Don't be hasty and be prepared all times, a backup or 2 are never too much to ask when testing.
Normally you just need to open a terminal and update with
No, this was not a mistake. upgrade will refuse to add or remove packages, and sometimes the new version of a package requires new packages to be installed, or old ones to be removed. When that happens, you will need to use dist-upgrade instead. If dist-upgrade wants to remove a bunch of packages, you may want to say no and try again the next day as the package may simply be in a transition where it can't be correctly installed at the moment.
No they are updated in same way.
Though there is an update manager to do this graphically.
Just tap
Super
key to bring up unity search interface and type "update". Then click on "Update Manager. Then do a check, it will list all updates (basically apt-get update), if any update available you can upgrade (apt-get upgrade)