Log in

Registration

Online Upgrade to Ubuntu 10.04 at Command Line

Posted: June 9, 2010 / in: Howtos / No comments

ubuntu-upgradeThis article provides details on upgrading to Ubuntu 10.04 (code name “Lucid Lynx”) at command line. Desktop installations of Ubuntu provide tools with graphical user interfaces to perform this job. If you are running server systems without having X11 installed, you have to perform system upgrades via command line.

General upgrade information

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
9.10 (Karmic Koala) 10.04 LTS (Lucid Lynx)
8.04 LTS (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)
7.10 (Gutsy Gibbon) 8.04 (Hardy Heron)
6.06 (Dapper Drake) 8.04 (Hardy Heron)
5.10 (Breezy Badger) 6.06 (Dapper Drake)

Requirements

  • You can only upgrade to Ubuntu 10.04 from Ubuntu 8.04 and 9.10.
  • Be sure that you have all updates applied to Ubuntu 8.04 / 9.10 before you upgrade.
  • Read the release notes for Ubuntu 10.04.
  • Perform a backup of your system! At least all data files, database contents, custom applications, application configurations and custom system configurations should be included. If there are a lot of additional applications installed via apt_get or aptitude, you should consider to dump a list of all software packages installed in your system.

Perform the Upgrade

What is your Unbuntu version?

Use the following command to find out what version of Ubuntu you are runing:

1
2
3
4
5
6
7
8
# print release number of your Ubuntu installation
# this example shows the output from the 9.10 Release
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

Define your upgrade path

The file /etc/update-manager/release-upgrades contains a setting that tells the upgrade manager which upgrade path to use. Normally you should not be required to change this file. But if you are sure, that upgrades are available and the upgrade manager tells you that they are not, you should get back to this file.

This file defines whether the update manager should consider LTS (Long Time Support releases) versions only or all upgrade path’s available.

1
2
3
4
5
6
7
8
9
# default behavior for the release upgrader
#

[DEFAULT]
# default prompting behavior, valid options:
# never - never prompt for a new distribution version
# normal - prompt if a new version of the distribution is available
# lts - prompt only if a LTS version of the distribution is available
Prompt=normal

Start the Upgrade Process

Excecute the following commands to perform the upgrade:

1
2
3
4
5
6
7
8
9
10
11
12
13
# Install update-manager-core 
sudo apt-get install update-manager-core

# update your installation of Ubuntu 9.10
sudo apt-get update
sudo apt-get upgrade

# Launch the upgrade tool
sudo do-release-upgrade

# Follow the on-screen instructions.
...

Do it the hard way

If Ubuntu is complaining that there are problems, it refuses the system upgrade and you are not able to resolve the issues then you may try one of the following options:

  1. upgrade your system with apt-get
  2. reinstall the system with your desired version of Ubuntu
  3. reinstall the base system and retry to upgrade
  4. there are a number of additional options depending on the reason for the upgrade failture …

If you did decide to choose the first option then perform the following steps. Before performing the upgrade make sure to update your sources list of apt repositories (read about it below):

1
2
3
4
5
6
7
8
9
10
#  update your installation of Ubuntu 9.10
sudo apt-get update
sudo apt-get upgrade

# replace the file /etc/apt/sources.list with the attached contents
# at the end of the article

# perform the upgrade
sudo apt-get update
sudo apt-get dist-upgrade

Apt ressources

The following configuration file contains contents for upgrading to and working with Ubuntu 9.10. Please replace the contents of the file /etc/apt/sources.list. by the configurations as follows.

If you have got problems with insufficient permissions try to add sudo to your command (see above).

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Apt sources from http://www.linux-support.com
# ======================================
#
# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release amd64 (20100427.1)]/ lucid main restricted
 
#deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release amd64 (20100427.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
 
deb http://de.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid main restricted
 
## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid universe
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates universe
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
 
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://de.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
 
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner
 
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
 

 

.

Related articles:

Incoming search terms:

© Copyrights and Licenses, 2014 - Linux-Support.com The Professional Linux and OSS Services Portal