个人工具

“UbuntuHelp:Upgrades”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '{{From|https://help.ubuntu.com/community/Upgrades}} {{Languages|UbuntuHelp:Upgrades}} #title Upgrading Ubuntu == Introduction == This page is a generic page to upgrade Ubuntu fr...')
 
 
第3行: 第3行:
 
#title Upgrading Ubuntu
 
#title Upgrading Ubuntu
 
== Introduction ==
 
== Introduction ==
This page is a generic page to upgrade Ubuntu from version 6.06 and up, with the exception of [[UbuntuHelp:EOLUpgrades|end of life versions]]. For more information please refer to the [[UbuntuHelp:UpgradeNotes| upgrade notes]].
+
This page is a generic guide to upgrade Ubuntu from version 6.06 and up, with the exception of [[UbuntuHelp:EOLUpgrades|end of life versions]]. For more information please refer to the [[UbuntuHelp:UpgradeNotes| upgrade notes]].
 
== Before you upgrade.. ==
 
== Before you upgrade.. ==
* Please make sure you have a backup of your important data. You can make a backup of your disks/partitions using [http://www.clonezilla.org  clonezilla].
+
=== Backup ===
* Read the release notes before upgrading: http://www.ubuntu.com/getubuntu/releasenotes
+
Please make sure you have a backup of your important data. You can make a backup of your disks/partitions using [http://www.clonezilla.org  clonezilla].
* Check the file `/etc/update-manager/release-upgrades`. `Prompt=normal` is needed when upgrading from any version to a newer version, `Prompt=never` will never upgrade your OS. `Prompt=lts` will make sure you upgrade from LTS to LTS. You need to be root to edit this file.  
+
=== Release Notes ===
 +
Read the release notes before upgrading: http://www.ubuntu.com/getubuntu/releasenotes
 +
=== Upgrade policy ===
 +
Check the file `/etc/update-manager/release-upgrades`. `Prompt=normal` is needed when upgrading from any version to a newer version, `Prompt=never` will never upgrade your OS. `Prompt=lts` will make sure you upgrade from LTS to LTS. You need to be root to edit this file.
 +
=== Upgrading Flash ===
 +
If you want to upgrade flash, please add the following line to your sources.list:
 +
<pre><nowiki>
 +
# Change CODENAME to your release: lsb_release -cs
 +
deb http://archive.canonical.com/ubuntu CODENAME partner
 +
</nowiki></pre>
 +
This will make sure the adobe-flashplugin package will be upgraded.
 
== Network upgrades ==
 
== Network upgrades ==
 
=== Desktop / GUI Upgrade ===
 
=== Desktop / GUI Upgrade ===
第38行: 第48行:
 
</nowiki></pre>
 
</nowiki></pre>
 
== The Debian way of upgrading ==
 
== The Debian way of upgrading ==
Please be aware that this method is valid, yet not advised by the Ubuntu developers.
+
Please be aware that this method is valid, yet not officially advised by the Ubuntu developers.
In this example, jaunty is our current OS and karmic is the release we want to upgrade to.
+
 
<pre><nowiki>
 
<pre><nowiki>
 
# Upgrade all the packages to the latest versions
 
# Upgrade all the packages to the latest versions
第46行: 第55行:
  
 
# Update our sources, save the original as /etc/apt/sources.list.ORIG
 
# Update our sources, save the original as /etc/apt/sources.list.ORIG
sudo perl -p -i.ORIG -e 's/jaunty/karmic/g' /etc/apt/sources.list
+
# This step is REQUIRED, otherwise the instructions below will not upgrade a
 +
# single package.
 +
sudo perl -p -i.ORIG -e 's/karmic/lucid/g' /etc/apt/sources.list
 +
 
 +
# Backup the /etc/apt/sources.list.d/ folder and create an empty one.
 +
# This will disable all Third Party/Launchpad PPA repositories.
 +
# These repositories can be re-enabled after a successful upgrade.
 +
sudo mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.ORIG/
 +
sudo mkdir /etc/apt/sources.list.d/
  
 
# Upgrade your box
 
# Upgrade your box
第55行: 第72行:
 
</nowiki></pre>
 
</nowiki></pre>
 
== Upgrading to development releases ==
 
== Upgrading to development releases ==
Please be aware that development releases are unstable, and not suited for people who do not want to fix/report/triage bugs. If you want a stable Ubuntu version, stick to the official released versions or run an LTS version of Ubuntu.  
+
Please be aware that development releases are unstable, and not suited for people who do not want to fix/report/triage bugs. If you want a stable Ubuntu version, stick to the official released versions or run an LTS version of Ubuntu.
 
Warning:: Please do not advise others to use this method to upgrade other versions of Ubuntu. You'll teach them how to upgrade to a development release!
 
Warning:: Please do not advise others to use this method to upgrade other versions of Ubuntu. You'll teach them how to upgrade to a development release!
 
=== Desktop / GUI Upgrade ===
 
=== Desktop / GUI Upgrade ===
第66行: 第83行:
 
sudo do-release-upgrade -d
 
sudo do-release-upgrade -d
 
</nowiki></pre>
 
</nowiki></pre>
Besides the network upgrades you could upgrade to a development release via an alternate CD or via the Debian way. This is left as an exercise for the user.
+
Beside the network upgrades you could upgrade to a development release via an alternate CD or via the Debian (manual) way. This is left as an exercise for the user.
 
== See Also ==
 
== See Also ==
 
* http://www.ubuntu.com/getubuntu/upgrading - Official upgrade documentation.
 
* http://www.ubuntu.com/getubuntu/upgrading - Official upgrade documentation.
 
* [[UbuntuHelp:UpgradeNotes|UpgradeNotes]] - Upgrade notes for all Ubuntu releases
 
* [[UbuntuHelp:UpgradeNotes|UpgradeNotes]] - Upgrade notes for all Ubuntu releases
* [[UbuntuHelp:EOLUpgrades|EOLUpgrades]] - Upgrading End-of-Life (unsupported) releases.
+
* [[UbuntuHelp:EOLUpgrades|EOLUpgrades]] - Upgrade End-of-Life (unsupported) releases.
 
----
 
----
 
[[category:CategoryUpgrade]]
 
[[category:CategoryUpgrade]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:42的最新版本

  1. title Upgrading Ubuntu

Introduction

This page is a generic guide to upgrade Ubuntu from version 6.06 and up, with the exception of end of life versions. For more information please refer to the upgrade notes.

Before you upgrade..

Backup

Please make sure you have a backup of your important data. You can make a backup of your disks/partitions using clonezilla.

Release Notes

Read the release notes before upgrading: http://www.ubuntu.com/getubuntu/releasenotes

Upgrade policy

Check the file `/etc/update-manager/release-upgrades`. `Prompt=normal` is needed when upgrading from any version to a newer version, `Prompt=never` will never upgrade your OS. `Prompt=lts` will make sure you upgrade from LTS to LTS. You need to be root to edit this file.

Upgrading Flash

If you want to upgrade flash, please add the following line to your sources.list:

# Change CODENAME to your release: lsb_release -cs
deb http://archive.canonical.com/ubuntu CODENAME partner

This will make sure the adobe-flashplugin package will be upgraded.

Network upgrades

Desktop / GUI Upgrade

update-manager

Server / Command line Upgrade

sudo aptitude install update-manager-core
sudo do-release-upgrade

Upgrades via alternate CD

This method will describe an upgrade without actually burning the ISO to a CD. When you have burned the disc, just plug it in and run `./cdromupgrade` from `/media/cdrom`. Please run `./cdromupgrade --help` for more details regarding upgrades via the alternate CD.

Desktop / GUI Upgrade

mkdir /mnt/alternate
sudo mount -o loop /path/to/alternate-cd.iso /mnt/alternate
cd /mnt/alternate
# Gnome
gksudo ./cdromupgrade
# KDE
kdesudo ./cdromupgrade

Server / Command line Upgrade

mkdir /mnt/alternate
sudo mount -o loop /path/to/alternate-cd.iso /mnt/alternate
cd /mnt/alternate
sudo ./cdromupgrade --frontend=DistUpgradeViewText

The Debian way of upgrading

Please be aware that this method is valid, yet not officially advised by the Ubuntu developers.

# Upgrade all the packages to the latest versions
sudo aptitude update
sudo aptitude safe-upgrade

# Update our sources, save the original as /etc/apt/sources.list.ORIG
# This step is REQUIRED, otherwise the instructions below will not upgrade a
# single package.
sudo perl -p -i.ORIG -e 's/karmic/lucid/g' /etc/apt/sources.list

# Backup the /etc/apt/sources.list.d/ folder and create an empty one.
# This will disable all Third Party/Launchpad PPA repositories.
# These repositories can be re-enabled after a successful upgrade.
sudo mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.ORIG/
sudo mkdir /etc/apt/sources.list.d/

# Upgrade your box
sudo aptitude update
sudo aptitude install dpkg apt aptitude
sudo aptitude safe-upgrade
sudo aptitude full-upgrade

Upgrading to development releases

Please be aware that development releases are unstable, and not suited for people who do not want to fix/report/triage bugs. If you want a stable Ubuntu version, stick to the official released versions or run an LTS version of Ubuntu. Warning:: Please do not advise others to use this method to upgrade other versions of Ubuntu. You'll teach them how to upgrade to a development release!

Desktop / GUI Upgrade

update-manager -d

Server / Command line Upgrade

sudo aptitude install update-manager-core
sudo do-release-upgrade -d

Beside the network upgrades you could upgrade to a development release via an alternate CD or via the Debian (manual) way. This is left as an exercise for the user.

See Also