{"id":2377,"date":"2014-11-06T20:23:55","date_gmt":"2014-11-06T16:23:55","guid":{"rendered":"http:\/\/nayarweb.com\/blog\/?p=2377"},"modified":"2017-04-16T21:59:08","modified_gmt":"2017-04-16T17:59:08","slug":"ubuntu-servers-should-be-lts","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2014\/ubuntu-servers-should-be-lts\/","title":{"rendered":"Ubuntu servers SHOULD be LTS"},"content":{"rendered":"<p>I was young. Bleeding edge was what i wanted. Little i knew that non-LTS Ubuntu releases become obsolete after 9 months (<a href=\"https:\/\/wiki.ubuntu.com\/LTS\">ref<\/a>).<\/p>\n<p>After reading a lot about the <a href=\"https:\/\/nayarweb.com\/blog\/2014\/the-bash-patch\/\" title=\"Shell-Shock\">shell-shock<\/a>, I tested whether my VPS was vulnerable to it. And it was! It was an Ubuntu Server 13.10.<\/p>\n<p>I thought a simple <code>apt-get update && apt-get upgrade<\/code>  would fix it. But no. The repositories were obsolete. I was getting errors like these:<\/p>\n<p><code><br \/>\nW: Failed to fetch http:\/\/archive.ubuntu.com\/ubuntu\/dists\/raring-security\/restricted\/binary-i386\/Packages  404  Not Found [IP: 91.189.88.153 80]<br \/>\nW: Failed to fetch http:\/\/archive.ubuntu.com\/ubuntu\/dists\/raring-security\/universe\/binary-i386\/Packages  404  Not Found [IP: 91.189.88.153 80]<br \/>\n...<br \/>\n<\/code><\/p>\n<p>Following <a href=\"http:\/\/askubuntu.com\/questions\/91815\/how-to-install-software-or-upgrade-from-an-old-unsupported-release\/91821#91821\">this guy&#8217;s advice<\/a> on Askubuntu.com was life saving.<\/p>\n<p><code><br \/>\n$ sudo sed -i -e 's\/archive.ubuntu.com\\|security.ubuntu.com\/old-releases.ubuntu.com\/g' \/etc\/apt\/sources.list<br \/>\n$ sudo apt-get update && sudo apt-get dist-upgrade<br \/>\n$ sudo apt-get install update-manager-core<br \/>\n$ sudo do-release-upgrade<br \/>\n<\/code><\/p>\n<p>All seemed to go fine until i got an error saying:<\/p>\n<blockquote><p>import apt ImportError: No module named apt<\/p><\/blockquote>\n<p>More googling led me to this <a href=\"http:\/\/stackoverflow.com\/questions\/13708180\/python-dev-installation-error-importerror-no-module-named-apt-pkg\">post<\/a> on stackoverflow. I ran the following command:<br \/>\n<code><br \/>\n$ apt-get install python-apt<br \/>\n<\/code><\/p>\n<p>do-release-upgrade was able to continue then. After pressing yes to multiple questions, few reboots, my Ubuntu server was finally on Ubuntu 14.04 LTS \ud83d\ude00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was young. Bleeding edge was what i wanted. Little i knew that non-LTS Ubuntu releases become obsolete after 9 months (ref). After reading a lot about the shell-shock, I tested whether my VPS was vulnerable to it. And it was! It was an Ubuntu Server 13.10. I thought a simple apt-get update &#038;&#038; apt-get &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2014\/ubuntu-servers-should-be-lts\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Ubuntu servers SHOULD be LTS<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210,1],"tags":[61,174,109],"class_list":["post-2377","post","type-post","status-publish","format-standard","hentry","category-technology","category-uncategorized","tag-linux","tag-server","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=2377"}],"version-history":[{"count":5,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2377\/revisions"}],"predecessor-version":[{"id":2382,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/2377\/revisions\/2382"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=2377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=2377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=2377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}