tag:blogger.com,1999:blog-11708271.post-69354173999168728022008-04-25T02:04:00.006+08:002008-04-25T02:15:11.004+08:00Fastest way to upgrade to Ubuntu 8.04 within 24 hrs of releaseYes... the long awaited Ubuntu 8.04 is finally out... but everyone is trying to upgrade their system through the <a href="http://www.ubuntu.com/getubuntu/upgrading">Ubuntu Update Manager</a>. Why get stuck with the Ubuntu Update Manager and a sluggish Ubuntu server when there is a faster way? Even, the Ubuntu mirrors take time to get the latest release.<br /><br /><span style="font-style: italic;">Note: This guide is meant for the impatient...</span><br /><ol><li>Get the<span style="font-weight: bold;"> </span><span style="font-weight: bold;">alternate cd</span><span style="font-weight: bold;"> iso </span><span style="font-weight: bold;">bittorent</span> file. <a href="http://releases.ubuntu.com/8.04">Get it</a>. (Note: this ONLY works with the alternate cd, and NOT with the Live CD.)<br /><br /></li><li>Use a bittorent client such as<span style="font-family:courier new;"> transmission</span> to download it.<br />(Tip: <span style="font-family:courier new;">sudo apt-get transmission</span> if you dont have transmission.)<br />This will take anywhere from 30 minutes to 1.5 hours. Depends on your luck.<br /><br /></li><li>Verify the iso file you downloaded using a <a href="http://www.linuxtopia.org/online_books/linux_beginner_books/unofficial_ubuntu_starter_guide/index_094.html">MD5</a> check. (Get the MD5 file from the <a href="http://releases.ubuntu.com/8.04/">same place</a> where you got your bittorent file.) (This step is <span style="font-weight: bold;">optional but recommended</span>.)<br /><br /></li><li>Mount the iso file. E.g.: (note: <span style="font-family:courier new;">/cdrom</span> is similar to <span style="font-family:courier new;">/media/cdrom</span>) [Time saver: no need to burn CD!]<br /><span style="font-family:courier new;">sudo mount -t iso9660 ubuntu-8.04-alternate-i386.iso /cdrom -o loop<br /><br /></span></li><li>Hit Alt-F2, type in and run the following:<br /><span style="font-family:courier new;"><a href="http://linux.about.com/cs/linux101/g/gksu.htm">gksu</a> "<a href="http://en.wikipedia.org/wiki/Bourne_shell">sh</a> /cdrom/cdromupgrade"<br /><br /></span></li><li>Sit back and relax. Go and grab a cup of coffee. Restart your computer at the end of the upgrade. The upgrade takes about 30 mins on a Intel C2D 2.0GHz.<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_O-yBdm0tpwU/SBDEqfuftTI/AAAAAAAAAI4/F2w-dhMI9m4/s1600-h/upgrade2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_O-yBdm0tpwU/SBDEqfuftTI/AAAAAAAAAI4/F2w-dhMI9m4/s320/upgrade2.png" alt="" id="BLOGGER_PHOTO_ID_5192866604708246834" border="0" /></a><span style="font-style: italic;">Enjoy a game of classic minesweeper while the installer runs in the background.</span><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_O-yBdm0tpwU/SBDFyvuftUI/AAAAAAAAAJA/oig13qw_YPI/s1600-h/upgrade3.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_O-yBdm0tpwU/SBDFyvuftUI/AAAAAAAAAJA/oig13qw_YPI/s320/upgrade3.png" alt="" id="BLOGGER_PHOTO_ID_5192867845953795394" border="0" /></a><span style="font-style: italic;"><a href="http://en.wikipedia.org/wiki/Don%27t_Panic_%28Hitchhiker%27s_Guide_to_the_Galaxy%29">Don't panic</a> if your system does not function "normally" during the upgrade.</span><br /><br /><div style="text-align: left; font-style: italic;">Note: if you encounter the "exclusive lock" error associated with aptitude, hit <span style="font-family:courier new;">ctrl-alt-backspace</span> and re-login.<br /></div><br /></div></li><li>Say "hello" to Ubuntu 8.04 LTS! <span style="font-weight: bold;">Congrats</span> for making it through!<br /><span style="font-style: italic;">Note: some programs may appear to "crash" when you first login. <a href="http://en.wikipedia.org/wiki/Don%27t_Panic_%28Hitchhiker%27s_Guide_to_the_Galaxy%29">Don't panic</a>. Simply click away the error messages, logout and re-login and most of your problems will be solved. (For me, I had to coax my wireless to work.)</span><br /><br /></li><li>You may now remove the CD entry to the image found in the file: <span style="font-family:courier new;"> /etc/apt/sources.list </span><br />Tip: Hit Alt-F2 and run <span style="font-family:courier new;">gksu "gedit /etc/apt/sources.lst"</span> and comment the following line:<br /><span style="font-family:courier new;">deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080422.2)]/ hardy main restricted</span> (or something similiar, with the "8.04")<br /><br /></li><li>Total time I took ~ around 2.5 hours.<br /><br /></li></ol><span style="font-style: italic;">Thanks to </span><a style="font-style: italic;" href="http://bicchi.blogspot.com/2007/10/upgrade-ubuntu-from-iso-image.html">Albert Bicchi's guide</a><span style="font-style: italic;"> for insight into this matter.</span>minghanhttp://www.blogger.com/profile/03994451733321468155noreply@blogger.com