DapperUpgrades

Differences between revisions 34 and 35
Revision 34 as of 2006-06-07 21:23:48
Size: 8263
Editor: tarsier
Comment: Minor formatting tweaks for that EXTREMELY IMPORTANT warning... explanation?
Revision 35 as of 2006-06-08 11:22:10
Size: 9061
Editor: CPE-144-133-223-44
Comment: Additions, changes, tidies. Need still to reorg: 1."how to do it" 2."sources".
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents]]||
Line 3: Line 4:
Ubuntu 6.06 LTS is the currrent version of the Ubuntu operating system, which was released June 1st, 2006. Ubuntu 6.06 LTS is the current version of the Ubuntu operating system. It was released June 1st, 2006. The common name given this release from the time of its early development was "Dapper Drake".
Line 7: Line 8:
= Upgrading from Ubuntu Dapper betas =

If you are a tester or have been tracking updates to pre-release Dapper via APT then congratulations, your updates after June 1 will now bring you up to date with Ubuntu 6.06 LTS "Dapper" final.
Line 13: Line 10:
There are a few ways you can get Dapper: There are a few ways you can upgrade to Dapper:
Line 15: Line 12:
 1. Upgrading with the Update Manager
 2. Upgrading by changing sources and the command line
 3. Downloading an ISO and burning a CD. You must use the ''alternate'' CD, not the ''desktop'' one, in order to upgrade. Torrents: http://torrent.ubuntu.com:6969/
 * with the "Update Manager" application
 * by changing sources and the command line
 * from an Ubuntu 6.06 CD
Line 19: Line 16:
== Upgrading with the Update Manager == == Upgrading with the Update Manager application ==
Line 21: Line 18:
A new version of the Update Manager application has entered
breezy-updates which can upgrade your entire system in a few simple steps.
 1. First, update your system to ensure that you have the latest version of "Update Manager" and associated packages. A new version of "Update Manager" that can upgrade your entire system from Breezy to Dapper in a few simple steps is released, and available from the "Breezy-Updates" package repository.
    * Make sure your system is using this repository. Confirm that you have version "0.42.2ubuntu12~breezy1" or newer of Update-manager installed, using the "Synaptic Package Manager" application. You need to ensure that your system is aware of what the latest versions are. If your system is not automatically checking for the latest updates, turn it on or do it manually. (In Synaptic go to menu "Settings -> Repositories", then the "Settings" button.
      * If the check box "Automatically check for software updates" is off,
        * turn it on, or
        * do it manually via either the "Reload" button or menu "Edit -> Reload Package Information").
    * Then, still in "Synaptic Package Manager", update "Update Manager" to the latest version and quit "Synaptic Package Manager".
 1. Open the Update Manager from the System/Administration menu, or run the following command (either via ALT-F2 or a terminal):
 {{{
 gksudo "update-manager" }}}
 Click the "Check" button.
Line 24: Line 29:
To perform the upgrade:

 First, update your system to ensure that you have the latest version of Update Manager and associated packages. You can do this using Update Manager itself, to be found under the System/Administration menu.

 The necessary versions are available from the `breezy-updates` repository. Confirm that you have version `0.42.2ubuntu12~breezy1` or newer of `update-manager` installed by using the Synaptic Package Manager .

Then follow the steps below:

1. Open the Update Manager from the System/Administration menu, or run the following command (either via ALT-F2 or a terminal):
 {{{
 gksudo "update-manager"
 }}}
2. Click the "Check" button.

If you have a working network connection, it should then inform you about a new release and offer to upgrade your system.
If you have a working network connection, it should then inform you about the new release of Dapper, and offer to upgrade your system to it.
Line 44: Line 35:
1. Make sure that you have ubuntu-desktop, kubuntu-desktop, or edubuntu-desktop installed (depending on which distribution you are using). This is vital for apt to perform the upgrade successfully.  1. Make sure that you have ubuntu-desktop, kubuntu-desktop, or edubuntu-desktop installed (depending on which distribution you are using). This is vital for apt to perform the upgrade successfully.
Line 46: Line 37:
2. Edit your /etc/apt/sources.list as root:  1. Edit your /etc/apt/sources.list as root:
Line 48: Line 39:
  kdesu kate /etc/apt/sources.list
}}}
  kdesu kate /etc/apt/sources.list }}}
Line 53: Line 43:
  gksudo "gedit /etc/apt/sources.list"
}}}
  gksudo "gedit /etc/apt/sources.list" }}}
Line 82: Line 71:
  sudo apt-get update && sudo apt-get dist-upgrade
}}}
  sudo apt-get update && sudo apt-get dist-upgrade }}}
Line 90: Line 78:
Note that you cannot upgrade from the Desktop CD, only the Alternate CD! Note that you cannot upgrade from the Desktop CD, only the Alternate CD! Torrents: http://torrent.ubuntu.com:6969/
Line 92: Line 80:
1. Make sure that you have ubuntu-desktop, kubuntu-desktop, or edubuntu-desktop installed (depending on the distribution you are using).
2. Edit your /etc/apt/sources.list as root:
 1. Make sure that you have ubuntu-desktop, kubuntu-desktop, or edubuntu-desktop installed (depending on the distribution you are using).
 1. Edit your /etc/apt/sources.list as root:
Line 97: Line 85:
  gksudo "gedit /etc/apt/sources.list"
}}}
  gksudo "gedit /etc/apt/sources.list" }}}
Line 102: Line 89:
  kdesu kate /etc/apt/sources.list
}}}
  kdesu kate /etc/apt/sources.list }}}
Line 107: Line 93:
3. Run:  1.#3 Download the ISO image for the "Alternate install CD", (not the "Alternate install CD" nor the "Server install CD") and burn it to CD.
 1. Run:
Line 109: Line 96:
  sudo apt-cdrom add
}}}
  sudo apt-cdrom add }}}
Line 114: Line 100:
4. Run:  1. Run:
Line 116: Line 102:
  sudo apt-get update && sudo apt-get dist-upgrade
}}}
  sudo apt-get update && sudo apt-get dist-upgrade }}}
Line 122: Line 107:
 2. Follow the above instructions for upgrading from 5.10  1. Follow the above instructions for upgrading from 5.10

= Upgrading from Ubuntu Dapper betas =

If you are a tester or have been tracking updates to pre-release Dapper via APT then congratulations, your updates after June 1 will now bring you up to date with Ubuntu 6.06 LTS "Dapper" final.
Line 141: Line 130:
 2. Mount the partition containing /etc (usually your root filesystem) read-write. A typical command sequence for this would be {{{  1. Mount the partition containing /etc (usually your root filesystem) read-write. A typical command sequence for this would be {{{
Line 144: Line 133:
 3. Move the files {{{ etc/init.d/pcmcia }}} and {{{ etc/init.d/pcmciautils }}} somewhere else (to keep them from executing on startup). A typical command sequence for this would be: {{{  1. Move the files {{{ etc/init.d/pcmcia }}} and {{{ etc/init.d/pcmciautils }}} somewhere else (to keep them from executing on startup). A typical command sequence for this would be: {{{
Line 148: Line 137:
 4. Remove the CD, and boot your computer from the hard disk.
 5. Before logging in, in the bottom left corner, select Options -> Sessions -> GNOME. When asked whether to change this to the default session, say "No". (This step is necessary because the unfinished setup process rendered the default session unusable.)
 6. Open a terminal and run {{{ sudo dpkg --configure -a }}} (you can't use synaptic or the updater for this, they're both broken in the current system state). If you watch the terminal, the attempt to setup the package pcmcia-cs will fail because it can't find the file we moved; this is OK. Wait for the configure to finish; it will take a long time.
 7. (Optional) Move the pcmcia init scripts back with {{{
 1. Remove the CD, and boot your computer from the hard disk.
 1. Before logging in, in the bottom left corner, select Options -> Sessions -> GNOME. When asked whether to change this to the default session, say "No". (This step is necessary because the unfinished setup process rendered the default session unusable.)
 1. Open a terminal and run {{{ sudo dpkg --configure -a }}} (you can't use synaptic or the updater for this, they're both broken in the current system state). If you watch the terminal, the attempt to setup the package pcmcia-cs will fail because it can't find the file we moved; this is OK. Wait for the configure to finish; it will take a long time.
 1. (Optional) Move the pcmcia init scripts back with {{{
Line 154: Line 143:
 8. Reboot the machine. It should boot normally now (into Dapper!). You can now run {{{  1. Reboot the machine. It should boot normally now (into Dapper!). You can now run {{{

What is Ubuntu 6.06 LTS?

Ubuntu 6.06 LTS is the current version of the Ubuntu operating system. It was released June 1st, 2006. The common name given this release from the time of its early development was "Dapper Drake".

http://www.ubuntu.com/news/606released

Upgrading from Ubuntu 5.10 ("Breezy Badger")

There are a few ways you can upgrade to Dapper:

  • with the "Update Manager" application
  • by changing sources and the command line
  • from an Ubuntu 6.06 CD

Upgrading with the Update Manager application

  1. First, update your system to ensure that you have the latest version of "Update Manager" and associated packages. A new version of "Update Manager" that can upgrade your entire system from Breezy to Dapper in a few simple steps is released, and available from the "Breezy-Updates" package repository.
    • Make sure your system is using this repository. Confirm that you have version "0.42.2ubuntu12~breezy1" or newer of Update-manager installed, using the "Synaptic Package Manager" application. You need to ensure that your system is aware of what the latest versions are. If your system is not automatically checking for the latest updates, turn it on or do it manually. (In Synaptic go to menu "Settings -> Repositories", then the "Settings" button.

      • If the check box "Automatically check for software updates" is off,
        • turn it on, or
        • do it manually via either the "Reload" button or menu "Edit -> Reload Package Information").

    • Then, still in "Synaptic Package Manager", update "Update Manager" to the latest version and quit "Synaptic Package Manager".
  2. Open the Update Manager from the System/Administration menu, or run the following command (either via ALT-F2 or a terminal):
     gksudo "update-manager" 
    Click the "Check" button.

If you have a working network connection, it should then inform you about the new release of Dapper, and offer to upgrade your system to it.

Upgrading by changing sources and the command line

If you are using Kubuntu and don't want to download the GTK applications required for the update manager, or you don't wish to use the update manager for any other reason, then follow this process for upgrading to Dapper (Ubuntu 6.06) from Breezy (Ubuntu 5.10).

  1. Make sure that you have ubuntu-desktop, kubuntu-desktop, or edubuntu-desktop installed (depending on which distribution you are using). This is vital for apt to perform the upgrade successfully.
  2. Edit your /etc/apt/sources.list as root:
      kdesu kate /etc/apt/sources.list 

Or if you're using GNOME/XFCE:

  •   gksudo "gedit /etc/apt/sources.list" 

And change every occurrence of "breezy" to "dapper". Your sources.list should look something like this, now:

  • ## All officially supported packages, including security- and other updates
     deb http://archive.ubuntu.com/ubuntu dapper main restricted
     deb http://security.ubuntu.com/ubuntu dapper-security main restricted
     deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
     
     ## The source packages (only needed to recompile existing packages)
     #deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
     #deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
     #deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
     
     ## All community supported packages, including security- and other updates
     deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
     deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
     deb http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
     
     ## The source packages (only needed to recompile existing packages)
     #deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
     #deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse
     #deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse

Then:

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

EXTREMELY IMPORTANT: Make sure you type  dist-upgrade  rather than  upgrade . The process will totally hose your machine and render it completely unbootable otherwise. (Why? This warning would have a lot more impact if someone could explain it!)

Upgrading from an Ubuntu 6.06 CD

Note that you cannot upgrade from the Desktop CD, only the Alternate CD! Torrents: http://torrent.ubuntu.com:6969/

  1. Make sure that you have ubuntu-desktop, kubuntu-desktop, or edubuntu-desktop installed (depending on the distribution you are using).
  2. Edit your /etc/apt/sources.list as root: For Ubuntu/Xubuntu:
      gksudo "gedit /etc/apt/sources.list" 
    or for Kubuntu:
      kdesu kate /etc/apt/sources.list 
    and change every occurrence of "breezy" to "dapper".
  3. Download the ISO image for the "Alternate install CD", (not the "Alternate install CD" nor the "Server install CD") and burn it to CD.
  4. Run:
      sudo apt-cdrom add 
    insert the CD, and press enter.
  5. Run:
      sudo apt-get update && sudo apt-get dist-upgrade 

Upgrading from Ubuntu releases prior to 5.10

  1. Upgrade to Ubuntu 5.10 (see BreezyUpgradeNotes)

  2. Follow the above instructions for upgrading from 5.10

Upgrading from Ubuntu Dapper betas

If you are a tester or have been tracking updates to pre-release Dapper via APT then congratulations, your updates after June 1 will now bring you up to date with Ubuntu 6.06 LTS "Dapper" final.

Troubleshooting

  • In the unlikely event you encouter some problems, double check that your required meta package is installed for your flavor. For Ubuntu this is 'ubuntu-desktop', for Kubuntu 'kubuntu-desktop', etc.
  • Ensure all necessary packages are completely installed and configured by issuing these commands (via ALT+F2 if necessary):

sudo apt-get -f install
sudo dpkg --configure -a
  • Check your /var/log/Xorg.0.log and ~/xsession-errors log files.
  • Check that you have the "breezy-updates" repository enabled. It can be enabled from the Synaptic package manager or by editing /etc/apt/sources.list with a text editor.

PCMCIA Services Hang

There is a bug that causes some upgrades to hang on non-PCMCIA machines while setting up the PCMCIA services. Further, once this happens, the boot process of the machine will always hang at the point of starting PCMCIA services; this happens even when booting in recovery mode. The bug report is [https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/35140 here]

A fix for this problem is in the dapper-updates repository. We strongly recommend that upgraders enable dapper-updates while upgrading. This will make the workaround below unnecessary.

The workaround for this bug is as follows (this worked for me; I can make no guarantees about other computers -- USE AT YOUR OWN RISK):

  1. Reboot using a bootable rescue CD. I recommend the Ubuntu Live CD,[http://sysresccd.org/ System Rescue CD], or [http://www.knopper.net/knoppix/index-en.html Knoppix].

  2. Mount the partition containing /etc (usually your root filesystem) read-write. A typical command sequence for this would be

    mkdir /mnt/hda1
    mount /dev/hda1 /mnt/hda1 -o rw  
  3. Move the files  etc/init.d/pcmcia  and  etc/init.d/pcmciautils  somewhere else (to keep them from executing on startup). A typical command sequence for this would be:

    cd /mnt/hda1/etc
    mv init.d/pcmcia pcmcia.bak
    mv init.d/pcmciautils pcmciautils.bak  
  4. Remove the CD, and boot your computer from the hard disk.
  5. Before logging in, in the bottom left corner, select Options -> Sessions -> GNOME. When asked whether to change this to the default session, say "No". (This step is necessary because the unfinished setup process rendered the default session unusable.)

  6. Open a terminal and run  sudo dpkg --configure -a  (you can't use synaptic or the updater for this, they're both broken in the current system state). If you watch the terminal, the attempt to setup the package pcmcia-cs will fail because it can't find the file we moved; this is OK. Wait for the configure to finish; it will take a long time.

  7. (Optional) Move the pcmcia init scripts back with

    mv /etc/pcmcia.bak /etc/init.d/pcmcia
    mv /etc/pcmciautils.bak /etc/init.d/pcmciautils 
    Now that the setup is finished, they will no longer hang the machine (but if this bug is affecting you, they won't do anything either, so it doesn't matter either way).
  8. Reboot the machine. It should boot normally now (into Dapper!). You can now run

    sudo apt-get -f install
    sudo dpkg --configure -a  
    just to be safe, but they should do nothing. Congratulations, your system is fixed!


CategoryDocumentation

DapperUpgrades (last edited 2008-08-06 16:28:17 by localhost)