特殊:Badtitle/NS100:Installation/UpgradeFromOldVersion
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Installation/UpgradeFromOldVersion }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/af | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Afrikaans| [[::Installation/UpgradeFromOldVersion/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ar | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|العربية| [[::Installation/UpgradeFromOldVersion/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/az | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|azərbaycanca| [[::Installation/UpgradeFromOldVersion/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/bcc | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|جهلسری بلوچی| [[::Installation/UpgradeFromOldVersion/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/bg | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|български| [[::Installation/UpgradeFromOldVersion/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/br | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|brezhoneg| [[::Installation/UpgradeFromOldVersion/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ca | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|català| [[::Installation/UpgradeFromOldVersion/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/cs | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|čeština| [[::Installation/UpgradeFromOldVersion/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/de | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Deutsch| [[::Installation/UpgradeFromOldVersion/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/el | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Ελληνικά| [[::Installation/UpgradeFromOldVersion/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/es | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|español| [[::Installation/UpgradeFromOldVersion/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/fa | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|فارسی| [[::Installation/UpgradeFromOldVersion/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/fi | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|suomi| [[::Installation/UpgradeFromOldVersion/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/fr | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|français| [[::Installation/UpgradeFromOldVersion/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/gu | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|ગુજરાતી| [[::Installation/UpgradeFromOldVersion/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/he | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|עברית| [[::Installation/UpgradeFromOldVersion/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/hu | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|magyar| [[::Installation/UpgradeFromOldVersion/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/id | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Bahasa Indonesia| [[::Installation/UpgradeFromOldVersion/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/it | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|italiano| [[::Installation/UpgradeFromOldVersion/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ja | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|日本語| [[::Installation/UpgradeFromOldVersion/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ko | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|한국어| [[::Installation/UpgradeFromOldVersion/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ksh | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Ripoarisch| [[::Installation/UpgradeFromOldVersion/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/mr | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|मराठी| [[::Installation/UpgradeFromOldVersion/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ms | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Bahasa Melayu| [[::Installation/UpgradeFromOldVersion/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/nl | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Nederlands| [[::Installation/UpgradeFromOldVersion/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/no | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|norsk| [[::Installation/UpgradeFromOldVersion/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/oc | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|occitan| [[::Installation/UpgradeFromOldVersion/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/pl | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|polski| [[::Installation/UpgradeFromOldVersion/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/pt | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|português| [[::Installation/UpgradeFromOldVersion/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ro | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|română| [[::Installation/UpgradeFromOldVersion/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/ru | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|русский| [[::Installation/UpgradeFromOldVersion/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/si | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|සිංහල| [[::Installation/UpgradeFromOldVersion/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/sq | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|shqip| [[::Installation/UpgradeFromOldVersion/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/sr | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|српски / srpski| [[::Installation/UpgradeFromOldVersion/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/sv | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|svenska| [[::Installation/UpgradeFromOldVersion/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/th | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|ไทย| [[::Installation/UpgradeFromOldVersion/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/tr | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Türkçe| [[::Installation/UpgradeFromOldVersion/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/vi | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|Tiếng Việt| [[::Installation/UpgradeFromOldVersion/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/yue | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|粵語| [[::Installation/UpgradeFromOldVersion/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/zh | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|中文| [[::Installation/UpgradeFromOldVersion/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/zh-hans | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|中文(简体)| [[::Installation/UpgradeFromOldVersion/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion | UbuntuHelp:Installation/UpgradeFromOldVersion | {{#if: | :}}Installation/UpgradeFromOldVersion}}/zh-hant | • {{#if: UbuntuHelp:Installation/UpgradeFromOldVersion|中文(繁體)| [[::Installation/UpgradeFromOldVersion/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Installation/UpgradeFromOldVersion|:Installation/UpgradeFromOldVersion|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Installation/UpgradeFromOldVersion/zh | | {{#ifexist: Installation/UpgradeFromOldVersion/zh | | {{#ifeq: {{#titleparts:Installation/UpgradeFromOldVersion|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Installation/UpgradeFromOldVersion|1|-1|}} | zh | | }}
This document provides notes on upgrading to the current release of Ubuntu from other than the immediately previous release. Note: Upgrading from Ubuntu 6.10 to Ubuntu 7.04, or from Ubuntu 7.04 to Ubuntu 7.10, is supported by the Update Manager application. See FeistyUpgrades or GutsyUpgrades respectively for more information.
Sequential upgrade from an older version of Ubuntu (recommended)
With each new release of Ubuntu, upgrading to the new release is supported only if you are already running the next-most recent release. For example, the only supported upgrade path to Ubuntu 7.10 is from Ubuntu 7.04. In order to follow a supported upgrade path from your current version of Ubuntu to 7.10, you should upgrade in sequence, from your version to the next-most-recent and so on. For example, a user of Ubuntu 6.06 LTS (Dapper Drake) could first upgrade to 6.10, then to 7.04, and then to 7.10. For instructions on how to do this, check the UpgradeNotes page. The advantages of this method are that it minimises the risk of package incompatibilities and breakages, as all steps in the upgrade procedure are supported. The disadvantages are that it is time consuming and would require either several different install CDs or a large amount of data to be downloaded.
Clean install with /home on separate partition
If your /home directory is contained on a separate hard-disk partition you should be able to upgrade by performing a clean install of the current release of Ubuntu and 'adopting' the old /home directory. Back-up any important data before following this procedure, as data loss is possible.
- Obtain an installation CD for the release of Ubuntu 7.04 you wish to install, and boot from it.
- Start the installation process.
- Once you reach the Prepare disk space stage of installation, choose the Manual option and press Forward.
- Identify your current '/' (root) partition. Select '/' as the mount point and ensure that Format is ticked. You will lose all data on this partition and the new version of Ubuntu will be installed there instead.
- Identify your swap partition and set its mount point as 'swap'.
- Identify your /home partition. Set its mount point as '/home' and make sure that Format is not ticked.
- Continue installation as normal.
- When you reach the Who are you? stage, enter a username and password which exactly match your current username and password.
- Complete the installation as normal.
Once the installation has completed, you should be able to log in to Ubuntu and your /home partition with all of your documents and settings should be intact. The above procedure was tested on an Intel/i386 computer running Ubuntu 6.06 LTS with a 7.04 pre-release installation CD. See below for further installation notes, which may or may not apply to your installation and in any case are not fully tested:
- Some panel applets may be unable to start correctly after the upgrade (i.e. the Tomboy applet). It is best to remove these applets if prompted, and then add them again by right-clicking the panel and selecting Add to Panel...
- You may be unable to log in in some circumstances, and may receive a message about being automatically logged out. This seems to be due to GNOME being unable to read an old secret/encrypted file, and also being unable to create a new one. If this happens, use the following instructions as a guide. You may have to perform additional actions besides those listed below:
- Press Ctrl + Alt + F2 (or F3, or F4 etc.) to drop to a Terminal.
- Log-in with your administration account (the username and password specified during installation).
- Type the following commands, pressing Return after each line and replacing 'username' with your username:
rm .gnome2_private sudo mv $HOME /home/old_account sudo mkdir /home/username exit
- Press Ctrl + Alt + F6 (or F3, or F4 etc.) to get back to a graphical login screen, and then log in.
- Hopefully, you should have been able to log in successfully. Now, go to /home/old_account and copy your data back in to your new Home directory.
- You may have to change the permissions of the files after copying them. You can use the chmod command to do this, with the '-R' switch to apply permissions recursively (that is, to all files in a directory).