个人工具

“UbuntuHelp:Installation/UpgradeFromOldVersion”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示2个用户的7个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Installation/UpgradeFromOldVersion}}
 
{{From|https://help.ubuntu.com/community/Installation/UpgradeFromOldVersion}}
 
{{Languages|UbuntuHelp:Installation/UpgradeFromOldVersion}}
 
{{Languages|UbuntuHelp:Installation/UpgradeFromOldVersion}}
This document provides notes on upgrading to Ubuntu 7.04 (Feisty Fawn) from a version of Ubuntu released before Ubuntu 6.10 (Edgy Eft).
+
#title Upgrading Ubuntu installs from older versions
 
+
<<Include(Tag/Duplicate)>>
'''Note:''' Upgrading from 6.10/Edgy to 7.04/Feisty is supported by the ''Update Manager'' application. See FeistyUpgrades for more information.
+
This document provides notes on upgrading to supported releases of Ubuntu from previous releases.
 
+
 
=== Sequential upgrade from an older version of Ubuntu (recommended) ===
 
=== Sequential upgrade from an older version of Ubuntu (recommended) ===
 +
Ubuntu can be upgraded between installed versions without a reinstall. This is done one of two ways: by downloading newer versions of your installed software from the Internet using the ''Update Manager'' application, or by using the alternate install CDs of the upgrade version, which contain newer packages of core software.
 +
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. It is also quicker than a reinstall if doing only one or two upgrades. The disadvantages are that more than one or two upgrades is time consuming and require either several different install CDs or a large amount of data to be downloaded.
 +
Upgrades using this method are documented at [[UbuntuHelp:UpgradeNotes|UpgradeNotes]].
 +
=== Clean Install Upgrade (not recommended) ===
 +
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, and very well may be likely.'''
 +
<ol><li>Obtain an installation CD for the release of Ubuntu you wish to install, and boot from it.
 +
</li><li>Start the installation process. When you reach the ''Prepare disk space'' stage of installation, choose the ''Manual'' option and press '''Forward'''.
 +
</li><li>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.'''
 +
</li><li>Identify your swap partition and set its mount point as 'swap'.
 +
</li><li>Identify your /home partition. Set its mount point as '/home' and make sure that ''Format'' is '''not''' ticked.
 +
</li><li>Continue installation as normal until you reach the ''Who are you?'' stage, enter a username and password which ''exactly match'' your current username and password.
 +
</li><li>Complete the installation as normal.</li></ol>
  
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 7.04/Feisty is from 6.10/Edgy.
+
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.
 
+
==== Troubleshooting ====
In order to follow a supported upgrade path from your current version of Ubuntu to 7.04/Feisty, 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 could first upgrade to 6.10/Edgy and then to 7.04/Feisty. 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 upggrade 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 Ubuntu 7.04/Feisty and 'adopting' the old /home directory.
+
 
+
'''Back-up any important data before following this procedure, as data loss is possible.'''
+
 
+
# Obtain an Ubuntu 7.04/Feisty installation CD 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 7.04/Feisty 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/Dapper with a 7.04/Feisty 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...''
 
* 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:
 
* 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.
+
* 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).
+
* 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:
+
* Type the following commands, pressing ''Return'' after each line and replacing 'username' with your username:
  <pre><nowiki>rm .gnome2_private
+
<pre><nowiki>
 +
rm .gnome2_private
 
sudo mv $HOME /home/old_account
 
sudo mv $HOME /home/old_account
 
sudo mkdir /home/username
 
sudo mkdir /home/username
 
exit</nowiki></pre>
 
exit</nowiki></pre>
** Press ''Ctrl'' + ''Alt'' + ''F6'' (or F3, or F4 etc.) to get back to a graphical login screen, and then log in.
+
* 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.
+
* 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).
+
* 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).
 +
==== See also ====
 +
* [[UbuntuHelp:AptCdrom|AptCdrom]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年12月16日 (二) 18:59的最新版本

  1. title Upgrading Ubuntu installs from older versions

<<Include(Tag/Duplicate)>> This document provides notes on upgrading to supported releases of Ubuntu from previous releases.

Sequential upgrade from an older version of Ubuntu (recommended)

Ubuntu can be upgraded between installed versions without a reinstall. This is done one of two ways: by downloading newer versions of your installed software from the Internet using the Update Manager application, or by using the alternate install CDs of the upgrade version, which contain newer packages of core software. 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. It is also quicker than a reinstall if doing only one or two upgrades. The disadvantages are that more than one or two upgrades is time consuming and require either several different install CDs or a large amount of data to be downloaded. Upgrades using this method are documented at UpgradeNotes.

Clean Install Upgrade (not recommended)

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, and very well may be likely.

  1. Obtain an installation CD for the release of Ubuntu you wish to install, and boot from it.
  2. Start the installation process. When you reach the Prepare disk space stage of installation, choose the Manual option and press Forward.
  3. 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.
  4. Identify your swap partition and set its mount point as 'swap'.
  5. Identify your /home partition. Set its mount point as '/home' and make sure that Format is not ticked.
  6. Continue installation as normal until you reach the Who are you? stage, enter a username and password which exactly match your current username and password.
  7. 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.

Troubleshooting

  • 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).

See also