{"id":95,"date":"2019-01-15T18:09:44","date_gmt":"2019-01-15T22:09:44","guid":{"rendered":"http:\/\/blogs.harvard.edu\/mypain\/?p=95"},"modified":"2019-01-15T18:14:55","modified_gmt":"2019-01-15T22:14:55","slug":"java-update-causing-ubuntu-installer-to-fail","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/mypain\/2019\/01\/15\/java-update-causing-ubuntu-installer-to-fail\/","title":{"rendered":"Java update causing ubuntu installer to fail"},"content":{"rendered":"<p>On trying to install the Oracle JDK on ubuntu 16.04 I kept getting ERROR 404: Not Found. After some searching I found out that the problem is that there is a new version of java and the installer (which is essentially a wrapper around the Oracle installer) wasn&#8217;t updated to reference it.<\/p>\n<p>Since I needed this not as an update, but an install (and I just wanted to know why it was broken), I ended up updating some configs (with the help of pointers from a <a href=\"https:\/\/stackoverflow.com\/questions\/46815897\/jdk-8-is-not-installed-error-404-not-found\">SO<\/a> article).<\/p>\n<p>To fix it on ubuntu x64 you need to sub out the file name, URL and checksum for the old version (191) with the new version (201).<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">cd \/var\/lib\/dpkg\/info\r\nsed -i 's|JAVA_VERSION=8u191|JAVA_VERSION=8u201|' oracle-java8-installer.*\r\nsed -i 's|PARTNER_URL=http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u191-b12\/2787e4a523244c269598db4e85c51e0c\/|PARTNER_URL=https:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u201-b09\/42970487e3af4f5aa5bca3f542482c60\/|' oracle-java8-installer.*\r\nsed -i 's|SHA256SUM_TGZ=&quot;53c29507e2405a7ffdbba627e6d64856089b094867479edc5ede4105c1da0d65&quot;|SHA256SUM_TGZ=&quot;cb700cc0ac3ddc728a567c350881ce7e25118eaf7ca97ca9705d4580c506e370&quot;|' oracle-java8-installer.*\r\nsed -i 's|J_DIR=jdk1.8.0_191|J_DIR=jdk1.8.0_201|' oracle-java8-installer.*<\/pre>\n<p>After that, rerun apt-get update, apt-get install oracle-java8-installer and you are set to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On trying to install the Oracle JDK on ubuntu 16.04 I kept getting ERROR 404: Not Found. After some searching I found out that the problem is that there is a new version of java and the installer (which is essentially a wrapper around the Oracle installer) wasn&#8217;t updated to reference it. Since I needed [&hellip;]<\/p>\n","protected":false},"author":758,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1855,1100,1835],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-configs","category-linux","category-ubuntu","post-preview"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/users\/758"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":10,"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/posts\/95\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/mypain\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}