Free Online Certification Courses – Learn Today. Lead Tomorrow. › Forums › Apache Hadoop › Error Message – Java installation on VM Player
- This topic has 1 reply, 1 voice, and was last updated 5 years, 6 months ago by DataFlair Team.
-
AuthorPosts
-
-
September 20, 2018 at 12:34 pm #4876DataFlair TeamSpectator
Hi… I am facing error message while installing Java. Can I anyone has any suggestion to resolve this error.
maramr@ubuntu:~$ $sudo apt-get install python-software-properties
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
maramr@ubuntu:~$ $sudo apt-get install python-software-properties
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
maramr@ubuntu:~$ $sudo apt-get install python-software-properties
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
maramr@ubuntu:~$ sudo apt-get install python-software-properties
[sudo] password for maramr:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python-pycurl
Suggested packages:
libcurl4-gnutls-dev python-pycurl-dbg
The following NEW packages will be installed:
python-pycurl python-software-properties
0 upgraded, 2 newly installed, 0 to remove and 257 not upgraded.
Need to get 66.6 kB of archives.
After this operation, 352 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main python-pycurl i386 7.19.3-0ubuntu3 [46.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe python-software-properties all 0.92.37.8 [19.7 kB]
Fetched 66.6 kB in 1s (39.2 kB/s)
Selecting previously unselected package python-pycurl.
(Reading database … 167207 files and directories currently installed.)
Preparing to unpack …/python-pycurl_7.19.3-0ubuntu3_i386.deb …
Unpacking python-pycurl (7.19.3-0ubuntu3) …
Selecting previously unselected package python-software-properties.
Preparing to unpack …/python-software-properties_0.92.37.8_all.deb …
Unpacking python-software-properties (0.92.37.8) …
Processing triggers for doc-base (0.10.5) …
Processing 32 changed doc-base files, 1 added doc-base file…
Setting up python-pycurl (7.19.3-0ubuntu3) …
Setting up python-software-properties (0.92.37.8) …
maramr@ubuntu:~$ clear
maramr@ubuntu:~$ sudo add-apt-repository ppa:webupd8team/java
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
More info (and Ubuntu installation instructions):
– for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
– for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.htmlDebian installation instructions:
– Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
– Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.htmlOracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
For JDK9, the PPA uses standard builds from: http://jdk.java.net/9/ (and not the Jigsaw builds!).
Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or ctrl-c to cancel adding itgpg: keyring `/tmp/tmp_i7jmdtc/secring.gpg’ created
gpg: keyring `/tmp/tmp_i7jmdtc/pubring.gpg’ created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp_i7jmdtc/trustdb.gpg: trustdb created
gpg: key EEA14886: public key “Launchpad VLC” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
maramr@ubuntu:~$ sudo apt-get update
Ign http://extras.ubuntu.com trusty InRelease
Get:1 http://ppa.launchpad.net trusty InRelease [15.5 kB]
Hit http://security.ubuntu.com trusty-security InRelease
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release
Get:2 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://ppa.launchpad.net trusty/main i386 Packages [3,398 B]
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://extras.ubuntu.com trusty/main Sources
Get:4 http://ppa.launchpad.net trusty/main Translation-en [1,556 B]
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://us.archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Get:5 http://us.archive.ubuntu.com trusty-updates/main Sources [399 kB]
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Get:6 http://us.archive.ubuntu.com trusty-updates/restricted Sources [6,331 B]
Get:7 http://us.archive.ubuntu.com trusty-updates/universe Sources [180 kB]
Get:8 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [7,764 B]
Get:9 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [942 kB]
Get:10 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [16.9 kB]
Get:11 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [411 kB]
Get:12 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [14.6 kB]
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/main Sources
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 2,065 kB in 29s (69.7 kB/s)
Reading package lists… Done
maramr@ubuntu:~$ sudo apt-get install oracle-java7-installer
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
gsfonts-x11 java-common
Suggested packages:
default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfonts
ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
gsfonts-x11 java-common oracle-java7-installer
0 upgraded, 3 newly installed, 0 to remove and 257 not upgraded.
Need to get 161 kB of archives.
After this operation, 545 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-installer all 7u80+7u60arm-0~webupd8~1 [22.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main java-common all 0.51 [130 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/main gsfonts-x11 all 0.22 [9,108 B]
Fetched 161 kB in 1s (93.5 kB/s)
Preconfiguring packages …
Selecting previously unselected package java-common.
(Reading database … 167250 files and directories currently installed.)
Preparing to unpack …/java-common_0.51_all.deb …
Unpacking java-common (0.51) …
Selecting previously unselected package oracle-java7-installer.
Preparing to unpack …/oracle-java7-installer_7u80+7u60arm-0~webupd8~1_all.deb …
Unpacking oracle-java7-installer (7u80+7u60arm-0~webupd8~1) …
Selecting previously unselected package gsfonts-x11.
Preparing to unpack …/gsfonts-x11_0.22_all.deb …
Unpacking gsfonts-x11 (0.22) …
Processing triggers for man-db (2.6.7.1-1ubuntu1) …
Processing triggers for doc-base (0.10.5) …
Processing 2 added doc-base files…
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.54ubuntu1.1) …
Processing triggers for shared-mime-info (1.2-0ubuntu3) …
Processing triggers for fontconfig (2.11.0-0ubuntu4.1) …
Setting up java-common (0.51) …
Setting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) …
Downloading Oracle Java 7…
–2017-06-11 00:49:24– http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)… 49.248.249.16, 49.248.249.17
Connecting to download.oracle.com (download.oracle.com)|49.248.249.16|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz [following]
–2017-06-11 00:49:24– https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)… 23.57.215.53, 2600:140f:4:185::2d3e, 2600:140f:4:18a::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.57.215.53|:443… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz?AuthParam=1497167485_baffa7115aaf715775250dae51d7cedd[following]
–2017-06-11 00:49:24– http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz?AuthParam=1497167485_baffa7115aaf715775250dae51d7cedd
Connecting to download.oracle.com (download.oracle.com)|49.248.249.16|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-06-11 00:49:25 ERROR 404: Not Found.download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up gsfonts-x11 (0.22) …
Errors were encountered while processing:
oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
maramr@ubuntu:~$ -
September 20, 2018 at 12:35 pm #4877DataFlair TeamSpectator
There are some issues with the Java 7 repositories from Oracle, Please install Java 8, below are the commands to install Java 8:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
java -version
-
-
AuthorPosts
- You must be logged in to reply to this topic.