特殊:Badtitle/NS100:EOLUpgrades/Warty:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/EOLUpgrades/Warty}} {{Languages|UbuntuHelp:EOLUpgrades/Warty}} #title Upgrading Warty to Hoary << Main [[Ubu...' |
小无编辑摘要 |
||
第6行: | 第6行: | ||
== 4.10 to 5.04 (Warty to Hoary) == | == 4.10 to 5.04 (Warty to Hoary) == | ||
=== Before you start === | === Before you start === | ||
Please make sure you've read and understood the [[UbuntuHelp:EOLUpgrades| main EOLUpgrade page]] | Please make sure you've read and understood the [[UbuntuHelp:EOLUpgrades| main EOLUpgrade page]]. | ||
I would recommend using [http://www.clonezilla.org 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. | I would recommend using [http://www.clonezilla.org 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. | ||
From version 4.10 to 5.04 I did not have a graphical interface to work with only the command line. I didn't figure out why, because the graphical interface is/was not needed to perform the upgrade. Ubuntu used the xfree86 binaries in the 4.10 release and since 5.04 they used the xorg binaries. For more information about this please have a read [http://en.wikipedia.org/wiki/X11 here] and [[UbuntuHelp: http://ubuntuforums.org/showthread.php?t=80156| here]]. The guide will explain how to convert from xfree to xorg. | From version 4.10 to 5.04 I did not have a graphical interface to work with only the command line. I didn't figure out why, because the graphical interface is/was not needed to perform the upgrade. Ubuntu used the xfree86 binaries in the 4.10 release and since 5.04 they used the xorg binaries. For more information about this please have a read [http://en.wikipedia.org/wiki/X11 here] and [[UbuntuHelp: http://ubuntuforums.org/showthread.php?t=80156| here]]. The guide will explain how to convert from xfree to xorg. | ||
=== | === The upgrade === | ||
* | * Make sure your sources.list is correct | ||
For the upgrade you only need this list, comment your original sources or remove them. | |||
<pre><nowiki> | <pre><nowiki> | ||
# Required | # Required | ||
第24行: | 第24行: | ||
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 and upgrade all installed packages | |||
* Update the package list and | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude update && sudo aptitude upgrade | sudo aptitude update && sudo aptitude upgrade | ||
</nowiki></pre> | |||
If packages were held back you may want to run: | |||
<pre><nowiki> | |||
sudo aptitude dist-upgrade | |||
</nowiki></pre> | </nowiki></pre> | ||
* If you run a -desktop version of ubuntu, please reinstall this package: | * If you run a -desktop version of ubuntu, please reinstall this package: |
2010年5月19日 (三) 22:17的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/EOLUpgrades/Warty }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/af | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Afrikaans| [[::EOLUpgrades/Warty/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ar | • {{#if: UbuntuHelp:EOLUpgrades/Warty|العربية| [[::EOLUpgrades/Warty/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/az | • {{#if: UbuntuHelp:EOLUpgrades/Warty|azərbaycanca| [[::EOLUpgrades/Warty/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/bcc | • {{#if: UbuntuHelp:EOLUpgrades/Warty|جهلسری بلوچی| [[::EOLUpgrades/Warty/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/bg | • {{#if: UbuntuHelp:EOLUpgrades/Warty|български| [[::EOLUpgrades/Warty/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/br | • {{#if: UbuntuHelp:EOLUpgrades/Warty|brezhoneg| [[::EOLUpgrades/Warty/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ca | • {{#if: UbuntuHelp:EOLUpgrades/Warty|català| [[::EOLUpgrades/Warty/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/cs | • {{#if: UbuntuHelp:EOLUpgrades/Warty|čeština| [[::EOLUpgrades/Warty/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/de | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Deutsch| [[::EOLUpgrades/Warty/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/el | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Ελληνικά| [[::EOLUpgrades/Warty/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/es | • {{#if: UbuntuHelp:EOLUpgrades/Warty|español| [[::EOLUpgrades/Warty/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/fa | • {{#if: UbuntuHelp:EOLUpgrades/Warty|فارسی| [[::EOLUpgrades/Warty/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/fi | • {{#if: UbuntuHelp:EOLUpgrades/Warty|suomi| [[::EOLUpgrades/Warty/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/fr | • {{#if: UbuntuHelp:EOLUpgrades/Warty|français| [[::EOLUpgrades/Warty/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/gu | • {{#if: UbuntuHelp:EOLUpgrades/Warty|ગુજરાતી| [[::EOLUpgrades/Warty/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/he | • {{#if: UbuntuHelp:EOLUpgrades/Warty|עברית| [[::EOLUpgrades/Warty/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/hu | • {{#if: UbuntuHelp:EOLUpgrades/Warty|magyar| [[::EOLUpgrades/Warty/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/id | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Bahasa Indonesia| [[::EOLUpgrades/Warty/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/it | • {{#if: UbuntuHelp:EOLUpgrades/Warty|italiano| [[::EOLUpgrades/Warty/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ja | • {{#if: UbuntuHelp:EOLUpgrades/Warty|日本語| [[::EOLUpgrades/Warty/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ko | • {{#if: UbuntuHelp:EOLUpgrades/Warty|한국어| [[::EOLUpgrades/Warty/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ksh | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Ripoarisch| [[::EOLUpgrades/Warty/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/mr | • {{#if: UbuntuHelp:EOLUpgrades/Warty|मराठी| [[::EOLUpgrades/Warty/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ms | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Bahasa Melayu| [[::EOLUpgrades/Warty/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/nl | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Nederlands| [[::EOLUpgrades/Warty/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/no | • {{#if: UbuntuHelp:EOLUpgrades/Warty|norsk| [[::EOLUpgrades/Warty/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/oc | • {{#if: UbuntuHelp:EOLUpgrades/Warty|occitan| [[::EOLUpgrades/Warty/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/pl | • {{#if: UbuntuHelp:EOLUpgrades/Warty|polski| [[::EOLUpgrades/Warty/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/pt | • {{#if: UbuntuHelp:EOLUpgrades/Warty|português| [[::EOLUpgrades/Warty/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ro | • {{#if: UbuntuHelp:EOLUpgrades/Warty|română| [[::EOLUpgrades/Warty/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/ru | • {{#if: UbuntuHelp:EOLUpgrades/Warty|русский| [[::EOLUpgrades/Warty/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/si | • {{#if: UbuntuHelp:EOLUpgrades/Warty|සිංහල| [[::EOLUpgrades/Warty/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/sq | • {{#if: UbuntuHelp:EOLUpgrades/Warty|shqip| [[::EOLUpgrades/Warty/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/sr | • {{#if: UbuntuHelp:EOLUpgrades/Warty|српски / srpski| [[::EOLUpgrades/Warty/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/sv | • {{#if: UbuntuHelp:EOLUpgrades/Warty|svenska| [[::EOLUpgrades/Warty/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/th | • {{#if: UbuntuHelp:EOLUpgrades/Warty|ไทย| [[::EOLUpgrades/Warty/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/tr | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Türkçe| [[::EOLUpgrades/Warty/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/vi | • {{#if: UbuntuHelp:EOLUpgrades/Warty|Tiếng Việt| [[::EOLUpgrades/Warty/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/yue | • {{#if: UbuntuHelp:EOLUpgrades/Warty|粵語| [[::EOLUpgrades/Warty/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/zh | • {{#if: UbuntuHelp:EOLUpgrades/Warty|中文| [[::EOLUpgrades/Warty/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/zh-hans | • {{#if: UbuntuHelp:EOLUpgrades/Warty|中文(简体)| [[::EOLUpgrades/Warty/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades/Warty | UbuntuHelp:EOLUpgrades/Warty | {{#if: | :}}EOLUpgrades/Warty}}/zh-hant | • {{#if: UbuntuHelp:EOLUpgrades/Warty|中文(繁體)| [[::EOLUpgrades/Warty/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:EOLUpgrades/Warty|:EOLUpgrades/Warty|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :EOLUpgrades/Warty/zh | | {{#ifexist: EOLUpgrades/Warty/zh | | {{#ifeq: {{#titleparts:EOLUpgrades/Warty|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EOLUpgrades/Warty|1|-1|}} | zh | | }}
- title Upgrading Warty to Hoary
4.10 to 5.04 (Warty to Hoary)
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. From version 4.10 to 5.04 I did not have a graphical interface to work with only the command line. I didn't figure out why, because the graphical interface is/was not needed to perform the upgrade. Ubuntu used the xfree86 binaries in the 4.10 release and since 5.04 they used the xorg binaries. For more information about this please have a read here and here. The guide will explain how to convert from xfree to xorg.
The upgrade
- Make sure your sources.list is correct
For the upgrade you only need this list, comment your original sources or remove them.
# Required deb http://old-releases.ubuntu.com/ubuntu/ warty main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ warty-updates main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ warty-security main restricted universe multiverse # Optional #deb http://old-releases.ubuntu.com/ubuntu/ warty-backports main restricted universe multiverse #deb http://old-releases.ubuntu.com/ubuntu/ warty-proposed 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 and upgrade all installed packages
sudo aptitude update && sudo aptitude upgrade
If packages were held back you may want to run:
sudo aptitude dist-upgrade
- If you run a -desktop version of ubuntu, please reinstall this package:
sudo aptitude reinstall ubuntu-desktop # or kubuntu, xubuntu, edubuntu, etc
NOTE: It could be that you just upgraded your kernel, if this is the case, please reboot!
- Change your repositories
$ sudo perl -p -i.410 -e 's/warty/hoary/' /etc/apt/sources.list
- Update the package list and perform a dist-upgrade
sudo aptitude update && sudo aptitude dist-upgrade
- Remove obsolete packages
sudo aptitude
Now you will enter aptitude in interactive mode, select Obsolete and locally installed packages menu and press '_', then press 'g'. It could be that you will get messages that aptitude wants to remove your current kernel, do NOT remove it, leave it, we can remove it later on.
- Get a GUI
This step is optional, you only need to do this when you have xfree86 packages installed. You can find out by running
dpkg -l | grep xfree
If you get output, then you can assume you will need to execute this step. In order to get a GUI on 5.04 I will install the x-window-system-core package. This will remove the xfree86 packages and install the xorg packages for you. The x-window-system-core package is a meta package which will make sure all correct packages are installed. It is a dependency for ubuntu-desktop, kubuntu-desktop, xubuntu-desktop. If you want a different GUI, make sure you have a terminal emulator installed (eg xterm) and a windowmanager (eg WindowMaker or FVWM). I also had to (re)install gdm because it was not properly installed.
sudo aptitude install x-window-system-core gdm
- Check your new version
Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu. << Main Hoary >>