and then when i try to install java using the following cmd
sudo add-apt-repository ppa:webupd8team/java
. I get error that
sudo apt-get install oracle-java8-set-default
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
1 not fully installed or removed.
Need to get 0 B/6,788 B of archives.
After this operation, 20.5 kB of additional disk space will be used.
Setting up oracle-java8-installer (8u151-1~webupd8~0) ...
Installing from local file /var/cache/oracle-jdk8-ins
taller/jdk -8u151-lin ux-x64.tar .gz
Removing outdated cached downloads...
sha256sum mismatch jdk-8u151-linux-x64.tar.gz
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
From novice to tech pro — start learning today.