{"id":655,"date":"2019-06-10T17:50:30","date_gmt":"2019-06-11T01:50:30","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=655"},"modified":"2019-06-10T17:50:31","modified_gmt":"2019-06-11T01:50:31","slug":"ubuntu-change-from-32-bit-to-64-bit-mostly","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/","title":{"rendered":"Ubuntu: Change from 32 Bit to 64 Bit (Mostly)"},"content":{"rendered":"\n<p>Tested on Ubuntu 16.04. Here are the commands, life story and explanation is below:<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo foreign-architecture amd64 | tee \/etc\/dpkg\/dpkgcfgd\/multiarch\n\ndpkg --add-architecture amd64\n\napt update\napt install linux-image-4.15.0-50:amd64\napt install gcc-multilib\napt upgrade<\/pre>\n\n\n\n<p><br>(Reboot, make sure you boot on to the new kernel), and then set <code>sources.list<\/code> to only have amd64 (Put <code>[ arch=amd64 ]<\/code> before each URL)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update\ndpkg --get-selections | grep -v deinstall | cut -f1 &gt; list.log\n\nfor i in $(cat list.log); do apt install --reinstall \"$i\"; done<\/pre>\n\n\n\n<p> <br>Not all packages will reinstall, just ones with 64 bit versions. Remove amd64 requirement from <code>sources.list<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation<\/h2>\n\n\n\n<p>I hope this isn&#8217;t a common problem. As is stated somewhere on this website (I think), we&#8217;re all students at the same college. For one of our classes we were given an environment to complete some assignments in, and let&#8217;s just say it&#8217;s a bit old. Initially it had 32 bit Ubuntu 12 and Windows Sever 2012 (not r2).<br><br>After version hopping to Ubuntu 16, we decided to try and make it 64 bit so that we could install a personal project of mine called Gogios. Surprisingly, it worked decently well. It is not a perfect switch though. The resulting system will be a multiarch one, not pure 64 bit.<br><br>Now for the explanation.<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo foreign-architecture amd64 | tee \/etc\/dpkg\/dpkgcfgd\/multiarch\ndpkg --add-architecture amd64<\/pre>\n\n\n\n<p><br>These lines inform <code>dpkg<\/code> that 64 bit packages should also be installable. This is what allows the system to become multiarch and have a 64 bit kernel.<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update\napt install linux-image-4.15.0-50:amd64\napt install gcc-multilib\napt upgrade<\/pre>\n\n\n\n<p><br>Standard <code>apt<\/code> stuff mostly. First update the package list to include 64 bit packages. Then install a 64 bit kernel. As of writing this 4.15 is the latest available. I&#8217;ve tried this with <code>generic<\/code> and <code>lowlatency<\/code> and both worked fine, so pick either. The second install is for <code>gcc-multilib<\/code>, as the currently one is probably only for 32 bit. Finally, upgrade all current packages.<br><br>At this point, reboot and make sure that you boot onto the x86_64 kernel that was just installed. After you&#8217;re back up, add <code>[arch=amd64]<\/code> before each URL in sources.list.<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update\ndpkg --get-selections | grep -v deinstall | cut -f1 &gt; list.log\n\nfor i in $(cat list.log); do apt install --reinstall \"$i\"; done<\/pre>\n\n\n\n<p><br><code>apt<\/code> update again to remove 32 bit packages from the package list temporarily. The <code>dpkg<\/code> line gets a list of all currently installed packages, removes the ones marked as uninstallable, and then outputs them to a file.<br><br>The final line reads through that file and passes each entry to apt for it to install. If it finds a 64 bit version in the current repo list, then it will install that version of the package.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tested on Ubuntu 16.04. Here are the commands, life story and explanation is below: echo foreign-architecture amd64 | tee \/etc\/dpkg\/dpkgcfgd\/multiarch dpkg &#8211;add-architecture amd64 apt update apt install linux-image-4.15.0-50:amd64 apt install gcc-multilib apt upgrade (Reboot, make sure you boot on to the new kernel), and then set sources.list to only have amd64 (Put [ arch=amd64 ] <br \/><a class=\"read-more-button\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,8,35],"tags":[151,152,149,6,148,150],"coauthors":[37],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-kernel","category-linux","category-ubuntu","tag-32-bit","tag-64-bit","tag-amd64","tag-linux","tag-ubuntu","tag-x86_64"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ubuntu: Change from 32 Bit to 64 Bit (Mostly) - Angry Sysadmins<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu: Change from 32 Bit to 64 Bit (Mostly) - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"Tested on Ubuntu 16.04. Here are the commands, life story and explanation is below: echo foreign-architecture amd64 | tee \/etc\/dpkg\/dpkgcfgd\/multiarch dpkg --add-architecture amd64 apt update apt install linux-image-4.15.0-50:amd64 apt install gcc-multilib apt upgrade (Reboot, make sure you boot on to the new kernel), and then set sources.list to only have amd64 (Put [ arch=amd64 ] Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-11T01:50:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-11T01:50:31+00:00\" \/>\n<meta name=\"author\" content=\"Cat Kasin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cat Kasin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/\"},\"author\":{\"name\":\"Cat Kasin\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\"},\"headline\":\"Ubuntu: Change from 32 Bit to 64 Bit (Mostly)\",\"datePublished\":\"2019-06-11T01:50:30+00:00\",\"dateModified\":\"2019-06-11T01:50:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/\"},\"wordCount\":350,\"commentCount\":3,\"keywords\":[\"32 bit\",\"64 bit\",\"amd64\",\"Linux\",\"ubuntu\",\"x86_64\"],\"articleSection\":[\"Kernel\",\"Linux\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/\",\"name\":\"Ubuntu: Change from 32 Bit to 64 Bit (Mostly) - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2019-06-11T01:50:30+00:00\",\"dateModified\":\"2019-06-11T01:50:31+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/06\\\/bailey\\\/ubuntu-change-from-32-bit-to-64-bit-mostly\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu: Change from 32 Bit to 64 Bit (Mostly)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\",\"name\":\"Cat Kasin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g23b0ffb86dd6c08514a66a6a50f7a0a9\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g\",\"caption\":\"Cat Kasin\"},\"description\":\"I build virtual environments and challenges for Cybersecurity students to complete as a way to gain experience before graduating and entering the workforce.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/bailey\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu: Change from 32 Bit to 64 Bit (Mostly) - Angry Sysadmins","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/","og_locale":"en_US","og_type":"article","og_title":"Ubuntu: Change from 32 Bit to 64 Bit (Mostly) - Angry Sysadmins","og_description":"Tested on Ubuntu 16.04. Here are the commands, life story and explanation is below: echo foreign-architecture amd64 | tee \/etc\/dpkg\/dpkgcfgd\/multiarch dpkg --add-architecture amd64 apt update apt install linux-image-4.15.0-50:amd64 apt install gcc-multilib apt upgrade (Reboot, make sure you boot on to the new kernel), and then set sources.list to only have amd64 (Put [ arch=amd64 ] Read More &raquo;","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/","og_site_name":"Angry Sysadmins","article_published_time":"2019-06-11T01:50:30+00:00","article_modified_time":"2019-06-11T01:50:31+00:00","author":"Cat Kasin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Cat Kasin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/"},"author":{"name":"Cat Kasin","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d"},"headline":"Ubuntu: Change from 32 Bit to 64 Bit (Mostly)","datePublished":"2019-06-11T01:50:30+00:00","dateModified":"2019-06-11T01:50:31+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/"},"wordCount":350,"commentCount":3,"keywords":["32 bit","64 bit","amd64","Linux","ubuntu","x86_64"],"articleSection":["Kernel","Linux","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/","name":"Ubuntu: Change from 32 Bit to 64 Bit (Mostly) - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2019-06-11T01:50:30+00:00","dateModified":"2019-06-11T01:50:31+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d"},"breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/06\/bailey\/ubuntu-change-from-32-bit-to-64-bit-mostly\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"Ubuntu: Change from 32 Bit to 64 Bit (Mostly)"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d","name":"Cat Kasin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g23b0ffb86dd6c08514a66a6a50f7a0a9","url":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g","caption":"Cat Kasin"},"description":"I build virtual environments and challenges for Cybersecurity students to complete as a way to gain experience before graduating and entering the workforce.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/bailey\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=655"}],"version-history":[{"count":8,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":664,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/655\/revisions\/664"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=655"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}