特殊:Badtitle/NS100:EOLUpgrades:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/EOLUpgrades}} {{Languages|UbuntuHelp:EOLUpgrades}} == Introduction == This upgrade guide will explain how to upgrade an EOL release of U...' |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/EOLUpgrades}} | {{From|https://help.ubuntu.com/community/EOLUpgrades}} | ||
{{Languages|UbuntuHelp:EOLUpgrades}} | {{Languages|UbuntuHelp:EOLUpgrades}} | ||
#title Upgrading End of Life releases | |||
== Introduction == | == Introduction == | ||
This | This page will explain how to upgrade an [http://en.wikipedia.org/wiki/End-of-life_(product) End of Life (EOL)] release of Ubuntu to a supported system. This guide is not limited to Ubuntu (with the Gnome desktop), any Ubuntu flavor (Kubuntu/Edubuntu and/or server installation and others) can use this guide. | ||
If you want to know | For upgrading supported releases please refer to [[UbuntuHelp:Upgrades| this document]]. | ||
If you want to know whether your release is EOL please have a look at the following resources: | |||
* http://en.wikipedia.org/wiki/List_of_Ubuntu_releases | |||
* http://www.ubuntu.com/products/ubuntu/release-cycle | |||
These guides assumes that the user knows his way on the terminal, as no graphical tools are used. This said, the steps for executing all the commands are actually copy/paste-able so everyone, from beginner to advanced user running EOL releases of Ubuntu can execute the upgrade(s). | |||
In case of problems you should be aware that most (if not all) of the releases which are mentioned in this guide are UNSUPPORTED, and getting help may be a bit tricky since most of us have already upgraded to a more recent version of Ubuntu. You could always try to run the upgrade path first in a virtual machine (vmware/virtualbox/qemu or others). All the upgrades of this guide were performed and tested in virtual machines (except for 6.10 to 7.10 which were executed on a Compaq/HP laptop NC6000). You can make a backup of your disks/partitions using [http://www.clonezilla.org clonezilla]. | |||
=== Why upgrade? === | |||
Why should you upgrade in stead of performing a clean install of a supported version? Some don't like to perform new installations when there is a possibility to upgrade. The advantage of this is that you can keep your current configuration without having to change much. This is often the case in production environments where you don't want to lose a machine just because it needs a higher OS version. | |||
The scientific approach. It is possible to do, so why wouldn't we give it a shot? | |||
This is how I started out writing this guide. I had to help someone else, who was in another timezone and I thought my sleep was precious so I wrote a guide telling him how to upgrade to 8.04. When I was finished I decided it was fun to see if I could upgrade from 4.10 to the most current version (I admit, I took a shortcut when I arrived at 6.06, I upgraded directly to 8.04). | |||
The last reason is a more flame oriented one, why would we do it the Microsoft way? If we don't know, just restart... Why don't we try to fix the issue, even if it takes a bit more time. The time it takes per upgrade is dependent on your installation. | |||
== Upgrade == | |||
This guide consists out of three main parts. | |||
The first part will be about upgrading 4.10 to 6.06.2 LTS. We will do the following upgrades, 4.10 to 5.04 to 5.10 to 6.06.2 LTS. | |||
The second part covers upgrading from 6.06 LTS to 8.04.3 LTS. This is the preferred way of upgrading to 8.04.3 from 6.06. You will not need to upgrade to 7.x. At the time of writing this is not an EOL upgrade. | |||
The third part will cover upgrading from 6.10 to 8.04.3 LTS. We will do the following upgrades, 6.10 to 7.04 to 7.10 to 8.04.3 LTS. | |||
Note:: Ubuntu 6.06's support has ended in June 2009 for desktops and will end June 2011 for servers. This will mean a lot of desktop applications are not supported/updated anymore. See [http://people.canonical.com/~ubuntu-security//dapper/supported.txt this list] of supported packages. Upgrading 6.06.x to 8.04 is regarded as a regular upgrade. Please see [[UbuntuHelp:DapperUpgrades|DapperUpgrades]] or [[UbuntuHelp:HardyUpgrades|HardyUpgrades]] for more information. | |||
=== Requirements === | |||
==== /etc/apt/sources.list ==== | |||
Please make sure you have the following sources.list, change CODENAME to your release, e.g. breezy. | |||
<pre><nowiki> | <pre><nowiki> | ||
deb http:// | # Required | ||
deb | deb http://old-releases.ubuntu.com/ubuntu/ CODENAME main restricted universe multiverse | ||
deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-updates main restricted universe multiverse | |||
deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-security main restricted universe multiverse | |||
# Optional | |||
deb | #deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-backports main restricted universe multiverse | ||
</nowiki></pre> | </nowiki></pre> | ||
You can make use of -backports if you want, or -proposed. | |||
For more information about repositories https://help.ubuntu.com/community/Repositories/Ubuntu | |||
==== Dependencies ==== | |||
You should also make sure some meta-packages are installed so the upgrade can continue without problems: | |||
===== Ubuntu-desktops ===== | |||
If you run a particular desktop version, you might want to reinstall this package to resolve any issue with dependencies of that package. You can (re)install these -desktop packages before or after your upgrade. | |||
* [[UbuntuHelp:apt:edubuntu-desktop|edubuntu-desktop]] | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo aptitude reinstall edubuntu-desktop | ||
</nowiki></pre> | </nowiki></pre> | ||
* [[UbuntuHelp:apt:edubuntu-desktop-kde|edubuntu-desktop-kde]] | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude reinstall edubuntu-desktop-kde | |||
</nowiki></pre> | </nowiki></pre> | ||
* [[UbuntuHelp:apt:kubuntu-desktop|kubuntu-desktop]] | |||
* | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo aptitude reinstall kubuntu-desktop | ||
</nowiki></pre> | </nowiki></pre> | ||
* [[UbuntuHelp:apt:mythbuntu-desktop|mythbuntu-desktop]] | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude reinstall mythbuntu-desktop | |||
</nowiki></pre> | </nowiki></pre> | ||
* [[UbuntuHelp:apt:ubuntu-desktop|ubuntu-desktop]] | |||
* | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo aptitude reinstall ubuntu-desktop | ||
</nowiki></pre> | </nowiki></pre> | ||
* [[UbuntuHelp:apt:xubuntu-desktop|xubuntu-desktop]] | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude reinstall xubuntu-desktop | |||
</nowiki></pre> | </nowiki></pre> | ||
===== Kernels ===== | |||
* 4.10: linux-image-386 and linux-kernel-headers | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo aptitude install linux-image-386 linux-kernel-headers | ||
</nowiki></pre> | </nowiki></pre> | ||
* | * 5.04: linux-image-386 and linux-headers-386 | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude install linux-image-386 linux-headers-386 | |||
sudo | |||
</nowiki></pre> | </nowiki></pre> | ||
* 8.04 and up: [[UbuntuHelp:apt:linux-image-generic,linux-headers-generic|apt:linux-image-generic,linux-headers-generic]], [[UbuntuHelp:apt:linux-image-server,linux-headers-server|apt:linux-image-server,linux-headers-server]] or [[UbuntuHelp:apt:linux-image-virtual,linux-headers-virtual|apt:linux-image-virtual,linux-headers-virtual]] | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude install linux-image-generic linux-headers-generic | |||
# or | |||
sudo aptitude install linux-image-server linux-headers-server | |||
# or | |||
sudo aptitude install linux-image-virtual linux-headers-virtual | |||
</nowiki></pre> | </nowiki></pre> | ||
== | ===== Update-manager ===== | ||
From version 6.06 and up you will need to install the [[UbuntuHelp:apt:update-manager-core,update-manager|update-manager and update-manager-core]] packages. | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo aptitude install update-manager update-manager-core | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Known issues === | |||
Some issues are related to apt-get upgrade and dist-upgrade commands. If you get calculation errors when running do-release-upgrade you can resolve this issue by running `do-release-upgrade -m desktop` or you can remove the ubuntu-desktop package. When aptitude is used there is no need for this. Please follow the guide exactly, when this guide wants to use apt-get, it will tell you :) | |||
If you run into individual dependency issues you need to resolve these individually. You can use `sudo apt-get -f install` for this. And then continue by running e.g. `sudo ./feisty --frontend DistUpgradeViewTextm -mode=server`. Replace feisty with the release where you upgrade to, this will continue the do-release-upgrade process. | |||
== 4.10 to 6.06 (Warty to Dapper) == | |||
This upgrade exercise has been executed on a fresh install of Ubuntu 4.10 and we will upgrade to 6.06.2 LTS. | |||
Warty 4.10 to Hoary 5.04:: [[UbuntuHelp:EOLUpgrades/Warty|EOLUpgrades/Warty]] | |||
Hoary 5.04 to Breezy 5.10:: [[UbuntuHelp:EOLUpgrades/Hoary|EOLUpgrades/Hoary]] | |||
Breezy 5.10 to Dapper 6.06.2:: [[UbuntuHelp:EOLUpgrades/Breezy|EOLUpgrades/Breezy]] | |||
== 6.06 to 8.04.3 (Dapper to Hardy) == | |||
Dapper 6.06 to Hardy 8.04.3:: [[UbuntuHelp:EOLUpgrades/Dapper|EOLUpgrades/Dapper]] | |||
== 6.10 to 8.04 (Edgy to Hardy) == | |||
This upgrade exercise has been executed on a fresh install of Ubuntu 6.10 and we will upgrade to 8.04.3 LTS. | |||
Edgy 6.10 to Feisty 7.04:: [[UbuntuHelp:EOLUpgrades/Edgy|EOLUpgrades/Edgy]] | |||
Feisty 7.04 to Gutsy 7.10:: [[UbuntuHelp:EOLUpgrades/Feisty|EOLUpgrades/Feisty]] | |||
Gutsy 7.10 to Hardy 8.04:: [[UbuntuHelp:EOLUpgrades/Gutsy|EOLUpgrades/Gutsy]] | |||
== See Also == | == See Also == | ||
Upgrade path: | Upgrade path: | ||
* https://help.ubuntu.com/community/ | * https://help.ubuntu.com/community/HardyUpgrades - Upgrade process from Breezy (6.06) and Gutsy (7.10) to Hardy (8.04) | ||
Bugs: | Bugs: | ||
* https://bugs.launchpad.net/bugs/264181 - Bug where EOL to supported version upgrade fails (FIXED) | * https://bugs.launchpad.net/bugs/264181 - Bug where EOL to supported version upgrade fails (FIXED) | ||
第165行: | 第108行: | ||
== Comments == | == Comments == | ||
If you think something is incorrect on this page please contact me. My contact details can be found on launchpad: https://launchpad.net/~wesleys | If you think something is incorrect on this page please contact me. My contact details can be found on launchpad: https://launchpad.net/~wesleys | ||
I would also like to hear from you if this guide didn't help you, the more feedback I get, the better this guide will get. | |||
---- | ---- | ||
[[category:CategoryUpgrade]] | [[category:CategoryUpgrade]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 19:04的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/EOLUpgrades }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/af | • {{#if: UbuntuHelp:EOLUpgrades|Afrikaans| [[::EOLUpgrades/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ar | • {{#if: UbuntuHelp:EOLUpgrades|العربية| [[::EOLUpgrades/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/az | • {{#if: UbuntuHelp:EOLUpgrades|azərbaycanca| [[::EOLUpgrades/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/bcc | • {{#if: UbuntuHelp:EOLUpgrades|جهلسری بلوچی| [[::EOLUpgrades/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/bg | • {{#if: UbuntuHelp:EOLUpgrades|български| [[::EOLUpgrades/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/br | • {{#if: UbuntuHelp:EOLUpgrades|brezhoneg| [[::EOLUpgrades/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ca | • {{#if: UbuntuHelp:EOLUpgrades|català| [[::EOLUpgrades/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/cs | • {{#if: UbuntuHelp:EOLUpgrades|čeština| [[::EOLUpgrades/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/de | • {{#if: UbuntuHelp:EOLUpgrades|Deutsch| [[::EOLUpgrades/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/el | • {{#if: UbuntuHelp:EOLUpgrades|Ελληνικά| [[::EOLUpgrades/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/es | • {{#if: UbuntuHelp:EOLUpgrades|español| [[::EOLUpgrades/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/fa | • {{#if: UbuntuHelp:EOLUpgrades|فارسی| [[::EOLUpgrades/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/fi | • {{#if: UbuntuHelp:EOLUpgrades|suomi| [[::EOLUpgrades/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/fr | • {{#if: UbuntuHelp:EOLUpgrades|français| [[::EOLUpgrades/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/gu | • {{#if: UbuntuHelp:EOLUpgrades|ગુજરાતી| [[::EOLUpgrades/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/he | • {{#if: UbuntuHelp:EOLUpgrades|עברית| [[::EOLUpgrades/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/hu | • {{#if: UbuntuHelp:EOLUpgrades|magyar| [[::EOLUpgrades/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/id | • {{#if: UbuntuHelp:EOLUpgrades|Bahasa Indonesia| [[::EOLUpgrades/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/it | • {{#if: UbuntuHelp:EOLUpgrades|italiano| [[::EOLUpgrades/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ja | • {{#if: UbuntuHelp:EOLUpgrades|日本語| [[::EOLUpgrades/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ko | • {{#if: UbuntuHelp:EOLUpgrades|한국어| [[::EOLUpgrades/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ksh | • {{#if: UbuntuHelp:EOLUpgrades|Ripoarisch| [[::EOLUpgrades/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/mr | • {{#if: UbuntuHelp:EOLUpgrades|मराठी| [[::EOLUpgrades/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ms | • {{#if: UbuntuHelp:EOLUpgrades|Bahasa Melayu| [[::EOLUpgrades/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/nl | • {{#if: UbuntuHelp:EOLUpgrades|Nederlands| [[::EOLUpgrades/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/no | • {{#if: UbuntuHelp:EOLUpgrades|norsk| [[::EOLUpgrades/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/oc | • {{#if: UbuntuHelp:EOLUpgrades|occitan| [[::EOLUpgrades/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/pl | • {{#if: UbuntuHelp:EOLUpgrades|polski| [[::EOLUpgrades/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/pt | • {{#if: UbuntuHelp:EOLUpgrades|português| [[::EOLUpgrades/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ro | • {{#if: UbuntuHelp:EOLUpgrades|română| [[::EOLUpgrades/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/ru | • {{#if: UbuntuHelp:EOLUpgrades|русский| [[::EOLUpgrades/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/si | • {{#if: UbuntuHelp:EOLUpgrades|සිංහල| [[::EOLUpgrades/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/sq | • {{#if: UbuntuHelp:EOLUpgrades|shqip| [[::EOLUpgrades/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/sr | • {{#if: UbuntuHelp:EOLUpgrades|српски / srpski| [[::EOLUpgrades/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/sv | • {{#if: UbuntuHelp:EOLUpgrades|svenska| [[::EOLUpgrades/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/th | • {{#if: UbuntuHelp:EOLUpgrades|ไทย| [[::EOLUpgrades/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/tr | • {{#if: UbuntuHelp:EOLUpgrades|Türkçe| [[::EOLUpgrades/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/vi | • {{#if: UbuntuHelp:EOLUpgrades|Tiếng Việt| [[::EOLUpgrades/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/yue | • {{#if: UbuntuHelp:EOLUpgrades|粵語| [[::EOLUpgrades/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/zh | • {{#if: UbuntuHelp:EOLUpgrades|中文| [[::EOLUpgrades/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/zh-hans | • {{#if: UbuntuHelp:EOLUpgrades|中文(简体)| [[::EOLUpgrades/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EOLUpgrades | UbuntuHelp:EOLUpgrades | {{#if: | :}}EOLUpgrades}}/zh-hant | • {{#if: UbuntuHelp:EOLUpgrades|中文(繁體)| [[::EOLUpgrades/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:EOLUpgrades|:EOLUpgrades|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :EOLUpgrades/zh | | {{#ifexist: EOLUpgrades/zh | | {{#ifeq: {{#titleparts:EOLUpgrades|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EOLUpgrades|1|-1|}} | zh | | }}
- title Upgrading End of Life releases
Introduction
This page will explain how to upgrade an End of Life (EOL) release of Ubuntu to a supported system. This guide is not limited to Ubuntu (with the Gnome desktop), any Ubuntu flavor (Kubuntu/Edubuntu and/or server installation and others) can use this guide. For upgrading supported releases please refer to this document. If you want to know whether your release is EOL please have a look at the following resources:
- http://en.wikipedia.org/wiki/List_of_Ubuntu_releases
- http://www.ubuntu.com/products/ubuntu/release-cycle
These guides assumes that the user knows his way on the terminal, as no graphical tools are used. This said, the steps for executing all the commands are actually copy/paste-able so everyone, from beginner to advanced user running EOL releases of Ubuntu can execute the upgrade(s). In case of problems you should be aware that most (if not all) of the releases which are mentioned in this guide are UNSUPPORTED, and getting help may be a bit tricky since most of us have already upgraded to a more recent version of Ubuntu. You could always try to run the upgrade path first in a virtual machine (vmware/virtualbox/qemu or others). All the upgrades of this guide were performed and tested in virtual machines (except for 6.10 to 7.10 which were executed on a Compaq/HP laptop NC6000). You can make a backup of your disks/partitions using clonezilla.
Why upgrade?
Why should you upgrade in stead of performing a clean install of a supported version? Some don't like to perform new installations when there is a possibility to upgrade. The advantage of this is that you can keep your current configuration without having to change much. This is often the case in production environments where you don't want to lose a machine just because it needs a higher OS version. The scientific approach. It is possible to do, so why wouldn't we give it a shot? This is how I started out writing this guide. I had to help someone else, who was in another timezone and I thought my sleep was precious so I wrote a guide telling him how to upgrade to 8.04. When I was finished I decided it was fun to see if I could upgrade from 4.10 to the most current version (I admit, I took a shortcut when I arrived at 6.06, I upgraded directly to 8.04). The last reason is a more flame oriented one, why would we do it the Microsoft way? If we don't know, just restart... Why don't we try to fix the issue, even if it takes a bit more time. The time it takes per upgrade is dependent on your installation.
Upgrade
This guide consists out of three main parts. The first part will be about upgrading 4.10 to 6.06.2 LTS. We will do the following upgrades, 4.10 to 5.04 to 5.10 to 6.06.2 LTS. The second part covers upgrading from 6.06 LTS to 8.04.3 LTS. This is the preferred way of upgrading to 8.04.3 from 6.06. You will not need to upgrade to 7.x. At the time of writing this is not an EOL upgrade. The third part will cover upgrading from 6.10 to 8.04.3 LTS. We will do the following upgrades, 6.10 to 7.04 to 7.10 to 8.04.3 LTS. Note:: Ubuntu 6.06's support has ended in June 2009 for desktops and will end June 2011 for servers. This will mean a lot of desktop applications are not supported/updated anymore. See this list of supported packages. Upgrading 6.06.x to 8.04 is regarded as a regular upgrade. Please see DapperUpgrades or HardyUpgrades for more information.
Requirements
/etc/apt/sources.list
Please make sure you have the following sources.list, change CODENAME to your release, e.g. breezy.
# Required deb http://old-releases.ubuntu.com/ubuntu/ CODENAME main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-updates main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-security main restricted universe multiverse # Optional #deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-backports main restricted universe multiverse
You can make use of -backports if you want, or -proposed. For more information about repositories https://help.ubuntu.com/community/Repositories/Ubuntu
Dependencies
You should also make sure some meta-packages are installed so the upgrade can continue without problems:
Ubuntu-desktops
If you run a particular desktop version, you might want to reinstall this package to resolve any issue with dependencies of that package. You can (re)install these -desktop packages before or after your upgrade.
sudo aptitude reinstall edubuntu-desktop
sudo aptitude reinstall edubuntu-desktop-kde
sudo aptitude reinstall kubuntu-desktop
sudo aptitude reinstall mythbuntu-desktop
sudo aptitude reinstall ubuntu-desktop
sudo aptitude reinstall xubuntu-desktop
Kernels
- 4.10: linux-image-386 and linux-kernel-headers
sudo aptitude install linux-image-386 linux-kernel-headers
- 5.04: linux-image-386 and linux-headers-386
sudo aptitude install linux-image-386 linux-headers-386
- 8.04 and up: apt:linux-image-generic,linux-headers-generic, apt:linux-image-server,linux-headers-server or apt:linux-image-virtual,linux-headers-virtual
sudo aptitude install linux-image-generic linux-headers-generic # or sudo aptitude install linux-image-server linux-headers-server # or sudo aptitude install linux-image-virtual linux-headers-virtual
Update-manager
From version 6.06 and up you will need to install the update-manager and update-manager-core packages.
sudo aptitude install update-manager update-manager-core
Known issues
Some issues are related to apt-get upgrade and dist-upgrade commands. If you get calculation errors when running do-release-upgrade you can resolve this issue by running `do-release-upgrade -m desktop` or you can remove the ubuntu-desktop package. When aptitude is used there is no need for this. Please follow the guide exactly, when this guide wants to use apt-get, it will tell you :) If you run into individual dependency issues you need to resolve these individually. You can use `sudo apt-get -f install` for this. And then continue by running e.g. `sudo ./feisty --frontend DistUpgradeViewTextm -mode=server`. Replace feisty with the release where you upgrade to, this will continue the do-release-upgrade process.
4.10 to 6.06 (Warty to Dapper)
This upgrade exercise has been executed on a fresh install of Ubuntu 4.10 and we will upgrade to 6.06.2 LTS. Warty 4.10 to Hoary 5.04:: EOLUpgrades/Warty Hoary 5.04 to Breezy 5.10:: EOLUpgrades/Hoary Breezy 5.10 to Dapper 6.06.2:: EOLUpgrades/Breezy
6.06 to 8.04.3 (Dapper to Hardy)
Dapper 6.06 to Hardy 8.04.3:: EOLUpgrades/Dapper
6.10 to 8.04 (Edgy to Hardy)
This upgrade exercise has been executed on a fresh install of Ubuntu 6.10 and we will upgrade to 8.04.3 LTS. Edgy 6.10 to Feisty 7.04:: EOLUpgrades/Edgy Feisty 7.04 to Gutsy 7.10:: EOLUpgrades/Feisty Gutsy 7.10 to Hardy 8.04:: EOLUpgrades/Gutsy
See Also
Upgrade path:
- https://help.ubuntu.com/community/HardyUpgrades - Upgrade process from Breezy (6.06) and Gutsy (7.10) to Hardy (8.04)
Bugs:
- https://bugs.launchpad.net/bugs/264181 - Bug where EOL to supported version upgrade fails (FIXED)
- https://bugs.launchpad.net/bugs/319324 - I suspect this is a follow up bug on 264181
Comments
If you think something is incorrect on this page please contact me. My contact details can be found on launchpad: https://launchpad.net/~wesleys I would also like to hear from you if this guide didn't help you, the more feedback I get, the better this guide will get.