{"id":194,"date":"2011-06-07T22:14:21","date_gmt":"2011-06-08T05:14:21","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=194"},"modified":"2011-06-07T22:14:21","modified_gmt":"2011-06-08T05:14:21","slug":"upgrading-your-vps-from-debian-5-to-debian-6","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=194","title":{"rendered":"Upgrading your VPS from Debian 5 to Debian 6"},"content":{"rendered":"<p>Recently there&#8217;s been released an upgraded version of the popular Debian GNU\/Linux distribution, from Debian version 5 to version 6, otherwise known of Debian &#8220;Lenny&#8221; to &#8220;Squeeze&#8221;.<\/p>\n<p>The following is a step-by-step guide for Network Presence customers on upgrading their Debian 5 aka &#8220;Lenny&#8221; VPS to Debian 6 (Squeeze). Please contact us if you have any problems performing this upgrade or if you&#8217;d like us to do it for you, which we&#8217;re most happy to do.<\/p>\n<p>Step 1: Backup your VPS. Ask us to do so for you if you&#8217;d like.<\/p>\n<p>Step 2:\u00a0Update your <code>\/etc\/apt\/sources.list<\/code> file and change any word &#8220;lenny&#8221; to &#8220;squeeze&#8221;.<br \/>\nAfter that, your sources.list file may look something like:<br \/>\n<code>deb http:\/\/ftp.au.debian.org\/debian squeeze main non-free<br \/>\ndeb http:\/\/security.debian.org\/ squeeze\/updates main non-free<br \/>\n<\/code><br \/>\nIf anything lists &#8220;stable&#8221;, that&#8217;s ok, as the Debian &#8216;stable&#8217; repo is now Squeeze\/Deb 6 anyway.<\/p>\n<p>Step 3:\u00a0Run <code>apt-get update<\/code> after the above sources.list change.<\/p>\n<p>Step 4:\u00a0Run <code>apt-get install apt dpkg<\/code> as this gets the Squeeze versions of the Packaging s\/ware installed, which we use next.<\/p>\n<p>Step 5: Run <code>apt-get install grub-legacy<\/code><\/p>\n<p>Step 6: Run &#8220;<code>rm -f\u00a0\/etc\/kernel\/postinst.d\/zz-update-grub<\/code>&#8221; as that file is no longer req&#8217;d in this VPS context.<\/p>\n<p>Step 7:\u00a0Run <code>apt-get dist-upgrade<\/code> &#8211; this performs the upgrade of all currently install Debian packages and can take some time to complete, with various prompts, one of which is noted below.<\/p>\n<p>Note: During the install of the &#8220;grub-pc&#8221; package, do not select\/check the box which selects your VPS&#8217; disk drive (\/dev\/sda1 at a &#8220;GRUB install devices&#8221;) and allow install\/upgrades to continue without installing GRUB.<\/p>\n<p>Note: The grub-pc install may error, which is fine &#038; you can select to continue the upgrade process within installing grub-pc.<\/p>\n<p>Note: Do allow the dist-upgrade process to update your \/etc\/fstab file.<\/p>\n<p>Step 8: Re-run <code>apt-get install grub-legacy<\/code><\/p>\n<p>Step 9:\u00a0Check that your \/boot\/grub\/menu.lst file does refer to the new kernel version. ie: Kernel 2.6.32-5-xen is Squeeze&#8217; kernel.<\/p>\n<p>eg:<br \/>\n<code>default=0<br \/>\ntimeout=20<\/p>\n<p>title           Debian Squeeze, kernel 2.6.32-5-xen<br \/>\nroot            (hd0)<br \/>\nkernel          \/boot\/vmlinuz-2.6.32-5-xen console=hvc0 root=\/dev\/xvda1 ro<br \/>\ninitrd          \/boot\/initrd.img-2.6.32-5-xen<\/p>\n<p>title           OLD Debian Lenny, kernel 2.6.26-2-xen<br \/>\nroot            (hd0)<br \/>\nkernel          \/boot\/vmlinuz-2.6.26-2-xen console=hvc0 root=\/dev\/sda1 ro<br \/>\ninitrd          \/boot\/initrd.img-2.6.26-2-xen<br \/>\n<\/code><\/p>\n<p>Step 10: Contact us, as we need to change a setting for your VPS startup procedure to reflect the change in Debian&#8217;s &#8216;virtual disk&#8217; names from Debian 5 to 6.<\/p>\n<p>Step 11: Reboot to run up the Squeeze kernel. Please contact us if you have any problems, as we&#8217;re most happy to help.<\/p>\n<p>FYI,<br \/>\nRichard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently there&#8217;s been released an upgraded version of the popular Debian GNU\/Linux distribution, from Debian version 5 to version 6, otherwise known of Debian &#8220;Lenny&#8221; to &#8220;Squeeze&#8221;. The following is a step-by-step guide for Network Presence customers on upgrading their &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=194\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[36,18,37],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-network-presence","tag-debian","tag-linux","tag-upgrade"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":3,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":197,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions\/197"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}