{"id":1105,"date":"2014-07-09T12:47:49","date_gmt":"2014-07-09T17:47:49","guid":{"rendered":"http:\/\/nodakengineering.com\/?p=1105"},"modified":"2014-07-09T13:03:18","modified_gmt":"2014-07-09T18:03:18","slug":"recovering-from-a-botched-crunchbang-upgrade","status":"publish","type":"post","link":"https:\/\/nodakengineering.com\/?p=1105","title":{"rendered":"Recovering from a Botched CrunchBang Upgrade"},"content":{"rendered":"<p>I recently botched an upgrade of the kernel in my CrunchBang VM and it broke the X window system leaving me staring at a black screen after boot. Thankfully it wasn&#8217;t terribly difficult to fix. See below for the steps to take to re-apply the upgrades and make the system bootable once again.<\/p>\n<p>When initially booting, CrunchBang shows a Grub menu with the kernel to boot and another option with the same kernel in <strong>recovery mode<\/strong>. Choose this second kernel option to log in as root and then run these commands in single-user mode.<\/p>\n<p>First we need to get the network interface up:<\/p>\n<pre># ip link set eth0 up<\/pre>\n<p>Next we need to get an IP address using DHCP:<\/p>\n<pre># dhclient eth0<\/pre>\n<p>Let&#8217;s see how the interface looks now:<\/p>\n<pre># ifconfig eth0<\/pre>\n<p>And now we can run the update process again:<\/p>\n<pre># apt-get update\r\n# apt-get dist-upgrade<\/pre>\n<p>Reboot and it should all just work now:<\/p>\n<pre># shutdown -r now<\/pre>\n<p>This is not a cure-all for all booting problems, but for a botched kernel upgrade this did the trick for me!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently botched an upgrade of the kernel in my CrunchBang VM and it broke the X window system leaving me staring at a black screen after boot. Thankfully it wasn&#8217;t terribly difficult to fix. See below for the steps to take to re-apply the upgrades and make the system bootable once again. When initially &#8230; <a title=\"Recovering from a Botched CrunchBang Upgrade\" class=\"read-more\" href=\"https:\/\/nodakengineering.com\/?p=1105\" aria-label=\"Read more about Recovering from a Botched CrunchBang Upgrade\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-1105","post","type-post","status-publish","format-standard","hentry","category-computers","category-linux"],"_links":{"self":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/posts\/1105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1105"}],"version-history":[{"count":7,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/posts\/1105\/revisions"}],"predecessor-version":[{"id":1112,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/posts\/1105\/revisions\/1112"}],"wp:attachment":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}