upgrade from dapper to hardy using the Ubuntu8.04 installation CD

Asked by Charles

Anyone knows how to use the Ubuntu installation CD to upgrade from Dapper to Hardy without wiping out the system. The reason for this is: i do not want to reinstall all the softwares that are already installed on the system. Since my current system is a server, it does not have the desktop installed on top it. Therefore, I won't be able to use the graphical interface to upgrade(all commands need to be command line only). Furthermore, I need to use just to Ubuntu 8.04 installation CD to do the upgrade. I looked up on the official Ubuntu website, but all it tell me to do is based on the assumption that the system have the desktop installed already. So I am wondering if the upgrade is feasible with my situation. If so, how should I approach??
Thanks for the help
Charles

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dines683 (dines683) said :
#1

I think you can upgrade to a new release from the command line using the following command

apt-get -u dist-upgrade

To my knowledge you can only upgrade to the successor of your release.

Revision history for this message
Charles (charles-zhou) said :
#2

Thanks
Can I run this command on Ubuntu 8.04 Live CD and will it upgrade the system from Ubuntu 6.06 to 8.04?
Thanks

Revision history for this message
Hemanth (hemanth-hm) said :
#3

You can easily upgrade over the network with the following procedure.

      Open System -> Administration -> Update Manager

            update_manager_01.png

      Click the Check button to check for new updates.

      If there are any updates to install, use the Install Updates button to install them, and press

     Check again after that is complete.

       A message will appear informing you of the availability of the new release.

            update-manager-upgrade-804.png

      Click Upgrade.

      Follow the on-screen instructions.

Revision history for this message
Hemanth (hemanth-hm) said :
#4

Use this method if the system being upgraded is not connected to the Internet.

   1.

      Download and burn the alternate installation CD.
   2. Insert it into your CD-ROM drive.
   3. A dialog will be displayed offering you the opportunity to upgrade using that CD.
   4. Follow the on-screen instructions.

If the upgrade dialog is not displayed for any reason, you may also run the following command using Alt+F2:

gksu "sh /cdrom/cdromupgrade"

Or in Kubuntu run the following command using Alt+F2:

kdesu "sh /cdrom/cdromupgrade"

Revision history for this message
Bhavani Shankar (bhavi) said :
#5

Hello

  1. Download the alternate CD image (already done I believe)
   2. Burn the CD image / re-insert the CD OR mount the CD image (sudo mount -o loop ubuntu-8.04-alternate-i386.iso /mnt/)
   3. A dialog should appear on your screen offering to upgrade your system using the CD
   4. If the dialog does not appear (it may not if you use the mount -o loop option), run the following via ALT-F2:
   5. gksudo “sh /media/cdrom/cdromupgrade” OR gksudo “sh /mnt/cdromupgrade”

Regards

Revision history for this message
Charles (charles-zhou) said :
#6

I tried to use the gksudo, it does not work. Shell return the error saying the command can not be found (I am wondering which package installs this command.). then, i tried to use sudo sh /cdrom/cdromupgrade and it somehow does run. However, it stopped right away and following messages have been displayed:

Traceback(most recent call last)
 File "/tmp/tmp.75v5Hx/hardy", line 3, in ?
   from DistUpgradeController import DistUpgradeController
 File "/tmp/tmp75v5Hx/DistUpgradeController.py", line 25 in ?
   import apt
ImportError: No Module named apt

I am wondering how could this happen. I installed apt debian package and above error still happen. Do you know how to get around that?
Thanks
Charles

Revision history for this message
martinmartinez (martin2091-deactivatedaccount) said :
#7

why don't you install ubuntu 8.04 from scratch? it will take less time. be sure you make the /home partition to save your documents the next time you have to upgrade.

Revision history for this message
martinmartinez (martin2091-deactivatedaccount) said :
#8

why don't you install ubuntu 8.04 from scratch? it will take less time. be sure you make the /home partition to save your documents the next time you have to upgrade.
the ubuntu upgrade has many errors and is not always the best option, especially if you have installed software from another places than than the places shown in your /etc/apt/sources.list file

Can you help with this problem?

Provide an answer of your own, or ask Charles for more information if necessary.

To post a message you must log in.