个人工具

UbuntuHelp:KarmicUpgrades

来自Ubuntu中文

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

This document provides instructions and notes on upgrading to Ubuntu 9.10 (code name "Karmic Koala"), the most recent release of Ubuntu, released on the 29th of October 2009.

Before You Start

  • You can only directly upgrade to Ubuntu 9.10 from Ubuntu 9.04 (see UpgradeNotes).
  • Be sure that you have all updates applied to Ubuntu 9.04 before you upgrade.
  • Before upgrading it is recommended that you read the release notes for Ubuntu 9.10, which document caveats and workarounds for known issues in this version.
  • Significant numbers of people with NVIDIA and ATI graphics boards have been seeing problems, so you might want to delay your upgrade until the following issue is resolved: https://bugs.launchpad.net/ubuntu/+bug/464591

If you have a version of Ubuntu which was released before Ubuntu 9.04, please see UpgradeNotes for information on how to upgrade.

Network Upgrade for Ubuntu Desktops (Recommended)

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

  1. Start System/Administration/Update Manager
  2. Click the Check button to check for new updates.
  3. If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
  4. A message will appear informing you of the availability of the new release. KarmicUpgrades?action=AttachFile&do=get&target=um1.png
  5. Click Upgrade.
  6. Follow the on-screen instructions.

KarmicUpgrades?action=AttachFile&do=get&target=um5.png

Network Upgrade for Kubuntu Desktops (Recommended)

Direct upgrades to Kubuntu 9.10 are supported from either Kubuntu 9.04 or Kubuntu 8.04. Upgrade Kubuntu 9.04 to 9.10 Upgrade Kubuntu 8.04 to 9.10

Network Upgrade 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.

<<Anchor(AlternateUpgrade)>>

Upgrading Using the Alternate CD/DVD

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

  1. Download the alternate installation CD
  2. Burn the ISO to a CD and insert it into the CD-ROM drive of the computer to be upgraded.

sudo mount -o loop ~/Desktop/ubuntu-9.10-alternate-i386.iso /media/cdrom0

  1. A dialog will be displayed offering you the opportunity to upgrade using that CD.

KarmicUpgrades?action=AttachFile&do=get&target=umcd1.png

  1. 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 /media/cdrom0/cdromupgrade"
Or in Kubuntu run the following command using `Alt+F2`:
kdesudo "sh /media/cdrom0/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 beneficial on release days when the server overload causes problems. Just visit http://releases.ubuntu.com/karmic/, and download the appropriate torrent file for the alternate installation CD, found in the list towards the bottom of the page. (It will have a filename like ubuntu-9.10-alternate-i386.iso.torrent.) Load it into your BitTorrent client, and after it is done downloading the ISO, follow the [[UbuntuHelp:[AlternateUpgrade|alternate CD upgrade instructions]]]. Detailed instructions here and here.

See Also

Troubleshooting

Unable to Load Linux Drive

One of the popular problem that some people faces when they upgraded to Karmic Koala is that Karmic is unable to load their Linux Drive. Ubuntu will prompt an error message:

Gave up waiting for root device. Common Problems:

- boot args (cat /proc/cmdline)

- Check root delays (Did the system wait long enough ?)

- Check root : (did the system wait for the right device?)

- missing modules ( cat /proc/module; /ls/dev)

- Alert /dev/disk/by-uuid=[XXX] does not exist. Dropping to a shell.

A work around for this problem is to tell Grub to load our Linux drive using the absolute drive path and not its UUID. In order to so this, we need to determine whether our Ubuntu is using the legacy Grub or Grub 2. Check your /boot/grub. If this folder contains grub.cfg this means we are running Grub 2. If not then you will are running a legacy Grub.

Legacy Grub

If you are still running the legacy grub then you need to edit your /boot/grub/menu.lst file. Replace the UUID for your Linux drive to the absolute path of your Linux drive. In the following example we tell Grub to find our Linux drive using its full path instead of this UUID /boot/vmlinuz-2.6.31-14-generic root=/dev/sda3

title       Ubuntu 9.10, kernel 2.6.31-14-generic
root        (hd0,2)
kernel      /boot/vmlinuz-2.6.31-14-generic root=/dev/sda3
initrd      /boot/initrd.img-2.6.31-14-generic
quiet

Reboot your Ubuntu after you save menu.lst.

Grub 2

Open /etc/default/Grub. Uncomment the following line:

GRUB_DISABLE_LINUX_UUID=true

Run update-grub in your command line to update your Grub configuration. Now reboot your system.

MySQL

To use your existing tables from a previous MySQL installation, you need to perform a 'check tables' function. After upgrade to Karmic, run from the command line the following:

sudo mysql_upgrade --force -uroot -p

At the prompt, enter the MySQL root password. MySql will then execute a series of steps to upgrade the data tables for compatibility to the current installed MySQL version. When completed, restart the mysql service for changes to be effective by entering the following:

sudo service mysql restart

Refer to the MySQL Reference Manual - section 4.4.8. 'mysql_upgrade' for details of the steps performed.

NVIDIA and ATI

People NVIDIA and ATI graphics cards have been seeing problems. Some people have remove the Ubuntu NVIDIA drivers and loaded the ones from nvidia.com. Alternatively, you can switch from using the 'nvidia' drivers to 'nv' drivers, editing /etc/X11/xorg.conf. Bug report is here: https://bugs.launchpad.net/ubuntu/+bug/464591