I was trying to install Hide.Me VPN for some reason. Unfortunately I keep running to the same error every time. I'm using these instructions to install it. Below is the error I keep running into.
nate1141@NatesPC:~$ sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome
[sudo] password for nate1141:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvpn is already the newest version (2.3.10-1ubuntu2).
network-manager-openvpn is already the newest version (1.1.93-1ubuntu1).
network-manager-openvpn-gnome is already the newest version (1.1.93-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up jdk1.8.0-111 (1.8.0111-fcs-1) ...
Unpacking JAR files...
tools.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/lib/tools.pack
plugin.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/plugin.pack
javaws.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/javaws.pack
deploy.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/deploy.pack
rt.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/ext/localedata.pack
/var/lib/dpkg/info/jdk1.8.0-111.postinst: line 641: /usr/sbin/alternatives: No such file or directory
/var/lib/dpkg/info/jdk1.8.0-111.postinst: line 653: /usr/sbin/alternatives: No such file or directory
dpkg: error processing package jdk1.8.0-111 (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
jdk1.8.0-111
E: Sub-process /usr/bin/dpkg returned an error code (1)
I recently installed JDK, had some troubles while installing it but somehow I managed to install it successfully.
Note: My system is Ubuntu 16.04LTS and I'm new to Ubuntu.
sudo apt-get update && sudo apt-get -f install
yet?/usr/java
??). The error/usr/sbin/alternatives: No such file or directory
seems to imply that thealternatives
package isn't installed, or is broken. I suggest uninstalling the JDK package first (and installing the standard Ubuntu packageopenjdk-8-jdk
instead), then proceed.