个人工具

UbuntuHelp:HardyUpgrades

来自Ubuntu中文

跳转至: 导航, 搜索
  1. title Upgrading to Ubuntu 8.04 LTS

Introduction

This document provides instructions and notes on upgrading to Ubuntu 8.04 LTS (Hardy Heron), released on the 24th of April 2008.

Before You Start

  • You can directly upgrade to Ubuntu 8.04 LTS ("Hardy Heron") from Ubuntu 7.10 ("Gutsy Gibbon") or from Ubuntu 6.06 LTS ("Dapper Drake"). This page contains instructions for both. (see UpgradeNotes)
  • Be sure that you have all updates applied to your current version of Ubuntu before you upgrade.
  • Before upgrading it is recommended that you read the release notes for Ubuntu 8.04 LTS, which document caveats and workarounds for known issues in this version.

If you have a version of Ubuntu other than 6.06 LTS or 7.10, please see UpgradeNotes for information on how to upgrade.

Upgrade from 7.10 to 8.04 LTS

Known Problems

  1. The upgrade will freeze on the `locales` package if you are using the (current) Gutsy kernel, 2.6.22-15. Reboot into 2.6.22-14 before upgrading. See the bug report on Launchpad for full details.

Network Upgrade from 7.10 for Ubuntu Desktops (Recommended)

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

  1. Open System -> Administration -> Update Manager

HardyUpgrades?action=AttachFile&do=get&target=update_manager_01.png

  1. Click the Check button to check for new updates.
  2. If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
  3. A message will appear informing you of the availability of the new release.

HardyUpgrades?action=AttachFile&do=get&target=update-manager-upgrade-804.png

  1. Click Upgrade.
  2. Follow the on-screen instructions.

Network Upgrade from 7.10 for Kubuntu Desktops (Recommended)

To upgrade from Kubuntu 7.10 to 8.04, over the internet, use the following procedure. For a full graphical presentation of these steps, please review HardyUpgrades/Kubuntu.

  1. From the K-Menu run Adept Manager.
  2. Click Fetch Updates.
  3. The Version Upgrade button will appear. Click it.
  4. Follow the prompts

Network Upgrade from 7.10 for Ubuntu Servers (Recommended)

  1. Install `update-manager-core` if it is not already installed:
    sudo apt-get install update-manager-core
    
  2. Launch the upgrade tool:
    sudo do-release-upgrade
    
  3. Follow the on-screen instructions.

Upgrade from 6.06 LTS to 8.04 LTS

This section describes how to perform 6.06 LTS ("Dapper") -> 8.04 LTS ("Hardy") upgrades.

Network Upgrade from 6.06 for Ubuntu Desktops (Recommended)

  1. Make sure the "dapper-updates" software channel is enabled.
  2. Be sure that you have all updates applied before you upgrade.
  3. Press Alt-F2 and type gksu "update-manager"

HardyUpgrades?action=AttachFile&do=get&target=update_manager_01.png

  1. Click the Check button to check for new updates.
  2. A message will appear informing you of the availability of the new release.

HardyUpgrades?action=AttachFile&do=get&target=update-manager-upgrade-804.png

  1. Click Upgrade.
  2. Follow the on-screen instructions.

Network Upgrade from 6.06 for Kubuntu Desktops (Recommended)

To upgrade from Kubuntu 6.06 to 8.04 over the Internet you can use a special mode in the server upgrade system.

  1. Enable the "dapper-updates" repository.
  2. Install the new "update-manager-core" package - dependencies include python-apt, python-gnupginterface and python2.4-apt.
  3. Run "sudo do-release-upgrade -m desktop" in a terminal window.
  4. Follow the steps on the terminal window.

Network Upgrade from 6.06 for Ubuntu Servers (Recommended)

If you run an Ubuntu server, you should use the new server upgrade system.

  1. Enable the "dapper-updates" repository.
  2. Install the new "update-manager-core" package - dependencies include python-apt, python-gnupginterface and python2.4-apt.
  3. Run "sudo do-release-upgrade" in a terminal window.
  4. Follow the steps on the terminal window.

Upgrading Using the Alternate CD/DVD

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"

Upgrading from a Torrent

If you're familiar with torrents and have an ISP that doesn't limit them, you can download the upgrade much more quickly. You'll also be sharing your bandwidth with other Ubuntu users and helping to reduce the load on the servers, which is especially useful on release days when the server overload causes problems. Basic instructions:

  1. Download the ISO file for the alternate installation CD using the .torrent file found on http://releases.ubuntu.com
  2. Mount the ISO as a drive or burn it to a physical CD
  3. Follow the alternate CD upgrade instructions

Detailed instructions here and here.

Troubleshooting

Unexpected reboot hangs on boot

My experience is based on Xubuntu 6.06 to Xubuntu 8.04 but I think it is the same for Ubuntu. My update stopped suddenly and after reboot Linux kernel did boot but get hung on the process boot. Here there is how I fixed it:

  1. Boot with Ubuntu 6.06 disk (in my case Alternate)
  2. Select: Repair a Broken system
  3. Select: Open a Rescue Shell.
  4. Select: Root Partition for Ubuntu.
  5. Run: dpkg --configure -a
  6. Whenever the process is finished: exit.
  7. Boot again into your system (now it should work)
  8. Run dpkg --configure -a as root from a terminal (Ctrl+alt+f1)
  9. System should be updated.

See Also