Bro will give you something...
- Uninstall Java
- Install and run this: http://pool.qnapclub.pl/projects/packages/java8/java-8-installer_1.8.qpkg
- Relogin to ssh again
type -f java
Error 05/05/2019 09:46:23 System 127.0.0.1 --- --- [Java Installer] Ooops, something went wrong... Run `cat /share/CACHEDEV1_DATA/.qpkg/java-8-installer/install-jdk.log` for details.
-sh: -f: command not found
[~] # cat /share/CACHEDEV1_DATA/.qpkg/java-8-installer/install-jdk.log
Warning: Illegal date format for -z, --timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 862 100 862 0 0 3014 0 --:--:-- --:--:-- --:--:-- 3637
cmp: EOF on /share/CACHEDEV1_DATA/.qpkg/java-8-installer/get-java.sh.asc
[Sun May 5 09:46:17 CEST 2019: AUTO UPDATE
Warning: Illegal date format for -z, --timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2520 100 2520 0 0 8931 0 --:--:-- --:--:-- --:--:-- 9000
gpg: keyring `/share/CACHEDEV1_DATA/.qpkg/java-8-installer/.gnupg/pubring.gpg' c reated
gpg: Signature made Wed 16 Jan 2019 09:50:29 AM CET using RSA key ID 7C3C6A71
gpg: /share/CACHEDEV1_DATA/.qpkg/java-8-installer/.gnupg/trustdb.gpg: trustdb cr eated
gpg: key 7C3C6A71 marked as ultimately trusted
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: Good signature from "Reinhard Pointner <rednoah@filebot.net>"
[GNUPG:] TRUST_ULTIMATE
Download
Unauthorized Request 5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
jdk-8u201-linux-x64.tar.gz: No such file or directory
Expected SHA256 checksum: cb700cc0ac3ddc728a567c350881ce7e25118eaf7ca97ca9705d45 80c506e370
Actual SHA256 checksum:
ERROR: SHA256 checksum mismatch
Sun May 5 09:46:23 CEST 2019: Add environment variables to /etc/profile
if i type -f java the java not found:-(