特殊:Badtitle/NS100:Upgrades
![]() |
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Upgrades }} |
![]() |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/af | • {{#if: UbuntuHelp:Upgrades|Afrikaans| [[::Upgrades/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ar | • {{#if: UbuntuHelp:Upgrades|العربية| [[::Upgrades/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/az | • {{#if: UbuntuHelp:Upgrades|azərbaycanca| [[::Upgrades/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/bcc | • {{#if: UbuntuHelp:Upgrades|جهلسری بلوچی| [[::Upgrades/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/bg | • {{#if: UbuntuHelp:Upgrades|български| [[::Upgrades/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/br | • {{#if: UbuntuHelp:Upgrades|brezhoneg| [[::Upgrades/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ca | • {{#if: UbuntuHelp:Upgrades|català| [[::Upgrades/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/cs | • {{#if: UbuntuHelp:Upgrades|čeština| [[::Upgrades/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/de | • {{#if: UbuntuHelp:Upgrades|Deutsch| [[::Upgrades/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/el | • {{#if: UbuntuHelp:Upgrades|Ελληνικά| [[::Upgrades/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/es | • {{#if: UbuntuHelp:Upgrades|español| [[::Upgrades/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/fa | • {{#if: UbuntuHelp:Upgrades|فارسی| [[::Upgrades/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/fi | • {{#if: UbuntuHelp:Upgrades|suomi| [[::Upgrades/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/fr | • {{#if: UbuntuHelp:Upgrades|français| [[::Upgrades/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/gu | • {{#if: UbuntuHelp:Upgrades|ગુજરાતી| [[::Upgrades/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/he | • {{#if: UbuntuHelp:Upgrades|עברית| [[::Upgrades/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/hu | • {{#if: UbuntuHelp:Upgrades|magyar| [[::Upgrades/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/id | • {{#if: UbuntuHelp:Upgrades|Bahasa Indonesia| [[::Upgrades/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/it | • {{#if: UbuntuHelp:Upgrades|italiano| [[::Upgrades/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ja | • {{#if: UbuntuHelp:Upgrades|日本語| [[::Upgrades/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ko | • {{#if: UbuntuHelp:Upgrades|한국어| [[::Upgrades/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ksh | • {{#if: UbuntuHelp:Upgrades|Ripoarisch| [[::Upgrades/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/mr | • {{#if: UbuntuHelp:Upgrades|मराठी| [[::Upgrades/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ms | • {{#if: UbuntuHelp:Upgrades|Bahasa Melayu| [[::Upgrades/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/nl | • {{#if: UbuntuHelp:Upgrades|Nederlands| [[::Upgrades/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/no | • {{#if: UbuntuHelp:Upgrades|norsk| [[::Upgrades/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/oc | • {{#if: UbuntuHelp:Upgrades|occitan| [[::Upgrades/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/pl | • {{#if: UbuntuHelp:Upgrades|polski| [[::Upgrades/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/pt | • {{#if: UbuntuHelp:Upgrades|português| [[::Upgrades/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ro | • {{#if: UbuntuHelp:Upgrades|română| [[::Upgrades/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/ru | • {{#if: UbuntuHelp:Upgrades|русский| [[::Upgrades/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/si | • {{#if: UbuntuHelp:Upgrades|සිංහල| [[::Upgrades/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/sq | • {{#if: UbuntuHelp:Upgrades|shqip| [[::Upgrades/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/sr | • {{#if: UbuntuHelp:Upgrades|српски / srpski| [[::Upgrades/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/sv | • {{#if: UbuntuHelp:Upgrades|svenska| [[::Upgrades/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/th | • {{#if: UbuntuHelp:Upgrades|ไทย| [[::Upgrades/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/tr | • {{#if: UbuntuHelp:Upgrades|Türkçe| [[::Upgrades/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/vi | • {{#if: UbuntuHelp:Upgrades|Tiếng Việt| [[::Upgrades/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/yue | • {{#if: UbuntuHelp:Upgrades|粵語| [[::Upgrades/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/zh | • {{#if: UbuntuHelp:Upgrades|中文| [[::Upgrades/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/zh-hans | • {{#if: UbuntuHelp:Upgrades|中文(简体)| [[::Upgrades/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Upgrades | UbuntuHelp:Upgrades | {{#if: | :}}Upgrades}}/zh-hant | • {{#if: UbuntuHelp:Upgrades|中文(繁體)| [[::Upgrades/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Upgrades|:Upgrades|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Upgrades/zh | | {{#ifexist: Upgrades/zh | | {{#ifeq: {{#titleparts:Upgrades|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Upgrades|1|-1|}} | zh | | }}
- 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
- http://www.ubuntu.com/getubuntu/upgrading - Official upgrade documentation.
- UpgradeNotes - Upgrade notes for all Ubuntu releases
- EOLUpgrades - Upgrade End-of-Life (unsupported) releases.