This article provides details on upgrading to Ubuntu 11.04 (code name “Natty Narwhal”) at command line. To perform the upgrade as described in this article you are required to have an X11 server running Gnome or KDE.
Contents
An upgrade is the process of going from an earlier version of Ubuntu to a newer one. Skipping versions is not advised as it may cause damage to your system.
If you are using an earlier version, and want to ‘skip’ a version, the safest way is to backup your data and do a fresh installation, or to progressively upgrade to each successive version.
The following table contains a list of supported upgrade paths:
| source version | target version |
|---|---|
| 10.10 (Maverick Meerkat) | 11.04 (Natty Narwhal) |
| 10.04 (Lucid Lynx) | 10.10 (Maverick Meerkat) |
| 9.10 (Karmic Koala) | 10.04 (Lucid Lynx) |
| 8.04 (Hardy Heron) | 10.04 LTS (Lucid Lynx) |
| 9.04 (Jaunty Jackalope) | 9.10 (Karmic Koala) |
| 8.04 (Hardy Heron) | 9.10 (Karmic Koala) |
| 8.10 (Intrepid Ibex) | 9.04 (Jaunty Jackalope) |
| 8.04 (Hardy Heron) | 8.10 (Intrepid Ibex) |
Use the following command to find out what version of Ubuntu you are runing:
12345678 |
# print release number of your Ubuntu installation# this example shows the output from the 10.10 Release$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 10.10Release: 10.10Codename: maverick |
The following steps are required to perform the upgrade:
The following session is an exmple how to upgrade your system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# update your installation of Ubuntu 10.10 $ sudo apt-get update $ sudo apt-get upgrade # download iso by webbrowser, wget or other tools (e.g. the 32-bit release) $ sudo apt-get install wget $ wget http://mirror.anl.gov/pub/ubuntu-iso/CDs/maverick/ubuntu-11.04-alternate-i386.iso # to download the 64-bit release use the following link # http://mirror.anl.gov/pub/ubuntu-iso/CDs/maverick/ubuntu-11.04-alternate-amd64.iso # mount the ISO image $ sudo mount -o loop ubuntu-11.04-alternate-i386.iso /cdrom # Now a dialog will be displayed offering you the opportunity to # upgrade using that CD. Follow the on-screen instructions. # If the upgrade dialog is not displayed use one of the following commands: # ...option no.1 $ gksu "sh /cdrom/cdromupgrade" # ...or option no.2 in KDE $ kdesudo "sh /cdrom/cdromupgrade" # unmount the CD image $ umount /cdrom |
Related articles: