Subprocess installed post-installation script returned error exit status 1Įrrors were encountered while processing:Į: Sub-process /usr/bin/dpkg returned an error code (1) 404 Not Foundĭpkg: error processing package oracle-java8-installer (-configure): The last line is giving me the error: HTTP request sent, awaiting response. $ sudo apt-get install oracle-java8-installer Upgrading, say from Java 7 to Java 8 will automatically remove the predecessors package.I am using the command to install java8 on my system but it is not working the command is: $ sudo add-apt-repository ppa:webupd8team/java If you’d like to read and manually accept the agreement then do not run the first line.įor Oracle JDK7 use: echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selectionsĪpt-get install oracle-java7-installer Install Java 8įor Oracle JDK8 use: echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selectionsįinally, you can set the Java variables automatically using another package provided by the webupd8team. The first command in the following sections instructs the install to automatically accept the license agreement. You can automatically accept the license agreement, which is useful when scripting the install where it’s impossible to interact with the process. You’ll then need to accept the license agreement and then the installation will begin. When using this method, the first step of the install process is to download the Oracle Java binaries from. This will create a new file containing the repository location in /etc/apt//webupd8team-java.list. echo "deb xenial main" | tee /etc/apt//webupd8team-java.listĮcho "deb-src xenial main" | tee -a /etc/apt//webupd8team-java.listĪpt-key adv -keyserver hkp://:80 -recv-keys EEA14886 If you’re using Debian or would like to manually add and maintain the list of repositories used by your apt installation then use the below commands. apt-add-repository ppa:webupd8team/javaĪpt-get update Add Java Repository Manually on Debian Once you’ve got the package installed, go ahead and add the ppa Java repository and update your local apt cache with the new available packages. Older versions of Ubuntu (13.10 and older) would need a slightly different package: apt-get install python-software-properties apt-get install software-properties-common This method should be used on Ubuntu – see the next section for Debian.īefore running the command, make sure you’ve got apt-add-repository installed as it’s often missing in the more minimal installations. We’ll use the apt-add-repository tool in this section to add the webupd8team’s ppa repository to our local apt package manager. Add Java Repository Using apt-add-repository on Ubuntu Luckily the guys over at webupd8team have been creative in this area and created and apt-get package that downloads the Java binaries from Oracle, presents the license agreement that you have to accept and and installs Java on the local machine. The problem is that anyone who isn’t Oracle isn’t allowed to distribute the JDK binaries – they have to be downloaded strictly from Oracle. Oracle Java, due to Oracle’s license conditions, it quite a pain to install.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |