个人工具

“UbuntuHelp:EOLUpgrades/Gutsy”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '{{From|https://help.ubuntu.com/community/EOLUpgrades/Gutsy}} {{Languages|UbuntuHelp:EOLUpgrades/Gutsy}} #title Upgrading Gutsy to Hardy << [[UbuntuHe...')
 
 
第25行: 第25行:
 
=== The upgrade ===
 
=== The upgrade ===
 
* Make sure your sources.list is correct (see requirements)
 
* Make sure your sources.list is correct (see requirements)
* Update the package list and get fully upgrade all packages
+
* Update the package list and upgrade all the installed packages
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude update && sudo aptitude safe-upgrade
 
sudo aptitude update && sudo aptitude safe-upgrade
第42行: 第42行:
 
You can make use of -backports, -proposed repositories if you want.
 
You can make use of -backports, -proposed repositories if you want.
 
For more information about repositories see [[UbuntuHelp:Repositories/Ubuntu|Repositories/Ubuntu]].
 
For more information about repositories see [[UbuntuHelp:Repositories/Ubuntu|Repositories/Ubuntu]].
 +
* Update the package list
 +
<pre><nowiki>
 +
sudo aptitude update
 +
</nowiki></pre>
 
* Perform the release upgrade.
 
* Perform the release upgrade.
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo do-release-upgrade
 
sudo do-release-upgrade
 +
</nowiki></pre>
 +
* IDE disk notation in fstab
 +
You may need to edit the file /etc/fstab to change "hda" old IDE disk notation by "sda" new disk notation, eg /dev/hda1 becomes /dev/sda1. You can use the following one-liner to do this:
 +
<pre><nowiki>
 +
sudo perl -p -i.ORIG -e 's#^(/dev/)hda(\d+)#$1sda$2 /etc/fstab
 
</nowiki></pre>
 
</nowiki></pre>
 
* Check your new version
 
* Check your new version
 
Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu.
 
Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu.
[[UbuntuHelp:EOLUpgrades| <<]] [[UbuntuHelp:EOLUpgrades/Feisty| < Feisty]]
+
[[UbuntuHelp:EOLUpgrades| <<]] [[UbuntuHelp:EOLUpgrades/Feisty| < Feisty]] [[UbuntuHelp:EOLUpgrades/Hardy| Hardy >>]]
[[UbuntuHelp:EOLUpgrades/Hardy| Hardy >>]]
+
 
----
 
----
 
[[category:CategoryUpgrade]]
 
[[category:CategoryUpgrade]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 22:16的最新版本

  1. title Upgrading Gutsy to Hardy

<< < Feisty Hardy >>

7.10 to 8.04 (Gutsy to Hardy)

Before you start

Please make sure you've read and understood the main EOLUpgrade page. I would recommend using clonezilla for backing up your current installation. It is very easy to backup and restore your partitions with clonezilla. It takes less then 30 minutes to backup/restore a 20Gb root filesystem which has 4-5 Gb used space. Known upgrade issues:: The upgrade will freeze on the locales package if you are using the (current) Gutsy kernel, 2.6.22-15. Reboot into 2.6.22-14 before upgrading. See the bug report on Launchpad for full details. . You can also use the 2.6.22-16 kernel.

Requirements

  • /etc/apt/sources.list

Please make sure you have the following sources.list.

# Required
deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

You can make use of -backports, -proposed repositories if you want. For more information about repositories see Repositories/Ubuntu.

The upgrade

  • Make sure your sources.list is correct (see requirements)
  • Update the package list and upgrade all the installed packages
sudo aptitude update && sudo aptitude safe-upgrade

Please be aware that you are NOT running on kernel 2.6.22-15, other kernels, 2.6.22-14, 2.6.22-16 are OK to use.

  • Change your sources.list

Your sources.list should contain the following entries.

deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse

# Optional
#deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

You can make use of -backports, -proposed repositories if you want. For more information about repositories see Repositories/Ubuntu.

  • Update the package list
sudo aptitude update
  • Perform the release upgrade.
sudo do-release-upgrade
  • IDE disk notation in fstab

You may need to edit the file /etc/fstab to change "hda" old IDE disk notation by "sda" new disk notation, eg /dev/hda1 becomes /dev/sda1. You can use the following one-liner to do this:

sudo perl -p -i.ORIG -e 's#^(/dev/)hda(\d+)#$1sda$2 /etc/fstab
  • Check your new version

Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu. << < Feisty Hardy >>