Advertisement
Guest User

Untitled

a guest
Sep 15th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.85 KB | None | 0 0
  1. EOLUpgrades
  2.  
  3.  
  4. Contents
  5.  
  6. Introduction
  7. Why upgrade
  8. Why choosing a fresh install
  9. For both upgrade and a new install
  10. Upgrade
  11. Requirements
  12. Known issues
  13. 8.10 to 9.10 (Intrepid to Karmic)
  14. 6.10 to 8.04 (Edgy to Hardy)
  15. 6.06 to 8.04.3 (Dapper to Hardy)
  16. 4.10 to 6.06 (Warty to Dapper)
  17. See Also
  18. Comments
  19.  
  20. Introduction
  21.  
  22. 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. Mac users may have some difficulty upgrading to the most current release around versions 7.04/7.10.
  23.  
  24. If you want to know whether your release is EOL please have a look at the following resources:
  25.  
  26. https://wiki.ubuntu.com/Releases
  27.  
  28. http://en.wikipedia.org/wiki/List_of_Ubuntu_releases
  29.  
  30. http://www.ubuntu.com/products/ubuntu/release-cycle
  31.  
  32. 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/pasteable so everyone, from beginner to advanced user running EOL releases of Ubuntu can execute the upgrade(s).
  33.  
  34. 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.
  35.  
  36. Why upgrade
  37.  
  38. Why should you upgrade instead 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.
  39.  
  40. 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).
  41.  
  42. Also, if your computer cannot start a live USB for whatever reason, and all you have is a Dapper Drake installation disc, then there's no other choice: you have to download the updates and install them from within Ubuntu.
  43.  
  44. The last reason is more a flame. 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.
  45.  
  46. Why choosing a fresh install
  47.  
  48. There are reasons why one should not upgrade, but rather reinstall. They do not apply equally to all users, but are still worth considering before choosing the approach.
  49.  
  50. From 9.04 (jaunty) ext4 becomes available. If you want to benefit from the new features ext4 has for you then you might just as well reinstall one of the supported releases.
  51.  
  52. The boot loader has been greatly improved. Upgrading Ubuntu does not upgrade GRUB 1 to GRUB 2, which must be done in a separate process. Although the GRUB-upgrade is easy for an experienced user, a beginner might prefer to have this done automatically as part of the new install.
  53.  
  54. Reinstalling might be both easier and faster. If you decide to follow the upgrade path (which could be long, if you want to reach the latest version), it is a good idea for future reference to keep a log of how much time was used. Compare this to the time used for a backup and new install.
  55.  
  56. A series of upgrades often takes more bandwidth. In some parts of the world this is a major concern.
  57.  
  58. An upgrade keeps user settings, but this is not always an advantage. If the settings are a mess, it is sometimes better for a beginner to start on a fresh install which also deletes /home without the risk of bringing problems along.
  59.  
  60. For both upgrade and a new install
  61.  
  62. It is not certain that every release of Ubuntu runs on the hardware in question. Regardless if you are upgrading or doing a new install, it is always a good start to try the new release in a live boot. A live Ubuntu runs from a CD or a USB stick, and it does not change the installation on the hard drive.
  63.  
  64. Upgrade
  65.  
  66. This guide consists of four main parts.
  67.  
  68. The first part will cover upgrading from 8.10 to 9.04 and up (eventually to 10.04). We will do the following upgrades, 8.10 to 9.04 to 9.10 to 10.04 LTS.
  69.  
  70. The second 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.
  71.  
  72. The third 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.
  73.  
  74. The fourth 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.
  75.  
  76. Note
  77.  
  78. 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 or 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.
  79.  
  80. Requirements
  81.  
  82. /etc/apt/sources.list
  83.  
  84. Please make sure you have the following sources.list, change CODENAME to your release, e.g. breezy.
  85.  
  86. ## EOL upgrade sources.list
  87. # Required
  88. deb http://old-releases.ubuntu.com/ubuntu/ CODENAME main restricted universe multiverse
  89. deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-updates main restricted universe multiverse
  90. deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-security main restricted universe multiverse
  91.  
  92. # Optional
  93. #deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-backports main restricted universe multiverse
  94.  
  95. You can make use of -backports if you want, or -proposed. For more information about repositories https://help.ubuntu.com/community/Repositories/Ubuntu
  96.  
  97. Dependencies
  98.  
  99. You should also make sure some meta-packages are installed so the upgrade can continue without problems:
  100.  
  101. Update-manager
  102.  
  103. From version 6.06 and up you will need to install the update-manager and update-manager-core packages.
  104.  
  105. # update-manager is something you don't want to install on cli servers
  106. sudo aptitude install update-manager-core update-manager
  107.  
  108. For upgrading from an LTS release to a non-LTS release, make sure that the update manager is correctly configured to upgrade any release. This is not needed when upgrading from one LTS release to the next LTS release:
  109.  
  110. sudo perl -pi -e 's/^Prompt=.*/Prompt=normal/' /etc/update-manager/release-upgrades
  111.  
  112. Ubuntu-desktops
  113.  
  114. 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. To find out if you which desktop package you want to (re)install: dpkg -l | grep tu-desktop. Or search for one by running aptitude search tu-desktop. The correct commands to (re)install are:
  115.  
  116. # The Kubuntu desktop
  117. sudo aptitude install kubuntu-desktop
  118. # or
  119. sudo aptitude reinstall kubuntu-desktop
  120.  
  121. Kernels
  122.  
  123. 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
  124.  
  125. sudo aptitude install linux-image-generic linux-headers-generic
  126. # or
  127. sudo aptitude install linux-image-server linux-headers-server
  128. # or
  129. sudo aptitude install linux-image-virtual linux-headers-virtual
  130.  
  131. 5.04: linux-image-386 and linux-headers-386
  132.  
  133. sudo aptitude install linux-image-386 linux-headers-386
  134.  
  135. 4.10: linux-image-386 and linux-kernel-headers
  136.  
  137. sudo aptitude install linux-image-386 linux-kernel-headers
  138.  
  139. Known issues
  140.  
  141. 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 Smile :)
  142.  
  143. 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.
  144.  
  145. 8.10 to 9.10 (Intrepid to Karmic)
  146.  
  147. This upgrade exercise has been executed on a fresh install of Ubuntu 8.10 and we will upgrade to 9.10.
  148.  
  149. Intrepid 8.10 to Jaunty 9.04
  150.  
  151. EOLUpgrades/Intrepid
  152. Jaunty 9.04 to Karmic 9.10
  153.  
  154. EOLUpgrades/Jaunty
  155.  
  156. 6.10 to 8.04 (Edgy to Hardy)
  157.  
  158. This upgrade exercise has been executed on a fresh install of Ubuntu 6.10 and we will upgrade to 8.04.3 LTS.
  159.  
  160. Edgy 6.10 to Feisty 7.04
  161.  
  162. EOLUpgrades/Edgy
  163. Feisty 7.04 to Gutsy 7.10
  164.  
  165. EOLUpgrades/Feisty
  166. Gutsy 7.10 to Hardy 8.04
  167.  
  168. EOLUpgrades/Gutsy
  169.  
  170. 6.06 to 8.04.3 (Dapper to Hardy)
  171.  
  172. Dapper 6.06 to Hardy 8.04.3
  173.  
  174. EOLUpgrades/Dapper
  175.  
  176. 4.10 to 6.06 (Warty to Dapper)
  177.  
  178. This upgrade exercise has been executed on a fresh install of Ubuntu 4.10 and we will upgrade to 6.06.2 LTS.
  179.  
  180. Warty 4.10 to Hoary 5.04
  181.  
  182. EOLUpgrades/Warty
  183. Hoary 5.04 to Breezy 5.10
  184.  
  185. EOLUpgrades/Hoary
  186. Breezy 5.10 to Dapper 6.06.2
  187.  
  188. EOLUpgrades/Breezy
  189.  
  190. See Also
  191.  
  192. Upgrade path:
  193.  
  194. https://help.ubuntu.com/community/HardyUpgrades - Upgrade process from Breezy (6.06) and Gutsy (7.10) to Hardy (8.04)
  195.  
  196. Bugs:
  197.  
  198. https://bugs.launchpad.net/bugs/264181 - Bug where EOL to supported version upgrade fails (FIXED)
  199.  
  200. https://bugs.launchpad.net/bugs/319324 - I suspect this is a follow up bug on 264181
  201.  
  202. Comments
  203.  
  204. If you think something is incorrect on this page please contact me. You can find my contact details here. 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.
  205.  
  206. CategoryUpgrade
  207.  
  208. EOLUpgrades (last edited 2011-07-14 13:00:37 by tsimpson)
  209.  
  210. The material on this wiki is available under a free license, see Copyright / License for details
  211. You can contribute to this wiki, see Wiki Guide for details
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement