{"id":108,"date":"2009-07-10T11:14:08","date_gmt":"2009-07-10T15:14:08","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=108"},"modified":"2013-08-21T12:06:13","modified_gmt":"2013-08-21T17:06:13","slug":"dynamically-upgrade-livecd-packages","status":"publish","type":"post","link":"https:\/\/www.compdigitec.com\/labs\/2009\/07\/10\/dynamically-upgrade-livecd-packages\/","title":{"rendered":"Dynamically upgrade LiveCD packages"},"content":{"rendered":"<p>If you attempt to follow <a href=\"http:\/\/apcmag.com\/how_to_dual_boot_linux_and_windows_xp_linux_installed_first.htm\" rel=\"nofollow\">APCMAG&#8217;s dual boot tutorial<\/a> with an older version of the Ubuntu Live CD, you may unknowingly install an old version of GRUB. This is fine if yournewer Ubuntu installation uses paritions that an older version of GRUB will recognize, but with new partitions like ext4 the old Ubuntu Live CD may cause problems.<\/p>\n<p><a href=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2009\/07\/ext4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-109\" title=\"Old Ubuntu Live CD\" alt=\"Old Ubuntu Live CD\" src=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2009\/07\/ext4.png\" width=\"370\" height=\"178\" \/><\/a><\/p>\n<p>In orderto solve this problem, you need to dynamically upgrade the packages on your Live CD. However, you do not need to butn a new version of the CD or modify the CD. This is because a &#8220;LiveCD system&#8221; is just really a regular Ubuntu system loaded onto a CD and memory and then booted from. Note that upgraded LiveCD packages only last the current session &#8211; they are eased from memory after a restart.<\/p>\n<ol>\n<li>Boot the Live CD (or make sure you are in the Live CD environment).<\/li>\n<li>Open a terminal.<\/li>\n<li>Type in &#8220;<strong>sed &#8216;s\/<em>cdversion<\/em>\/<em>newversion<\/em>\/&#8217; \/etc\/apt\/sources.list &gt; \/tmp\/sources.list<\/strong>&#8220;. (Replace <em>cdversion<\/em> with the codename of the Ubuntu CD &#8211; e.g. hardy) (Replace <em>newversion<\/em> with the codename of the version of the packages you want to upgrade to &#8211; typically the latest Ubuntu version &#8211; e.g. jaunty)<\/li>\n<li>Type in &#8220;<strong>sudo \/bin\/cp \/tmp\/sources.list \/etc\/apt\/sources.list<br \/>\n<\/strong>&#8221; No password is required.<\/li>\n<li>Type in &#8220;<strong>sudo apt-get update<\/strong>&#8221; to update packages.<\/li>\n<li>Now you can upgrade whatever packages you want to upgrade. For example, to upgrade GRUB, type in &#8220;<strong>sudo apt-get install grub<\/strong>&#8220;. To upgrade GParted, type in &#8220;<strong>sudo apt-get install gparted<\/strong>&#8220;. Simply replace &#8220;grub&#8221; or &#8220;gparted&#8221; with the package you want to upgrade.<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>If you attempt to follow APCMAG&#8217;s dual boot tutorial with an older version of the Ubuntu Live CD, you may unknowingly install an old version of GRUB. This is fine if yournewer Ubuntu installation uses paritions that an older version of GRUB will recognize, but with new partitions like ext4 the old Ubuntu Live CD [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[517,116,29,520,519,521,518,516,862,514,515,28,489],"_links":{"self":[{"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/108"}],"collection":[{"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":0,"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}