elperdigon

Passing Basics
Beginner
9 Styczeń 2017
23
0
1
61
QNAP
TS-x51
Ethernet
100 Mbps
Hi
I´m trying to install jdownloader so 1st step is to get java
I´ve installed QJDK8 1.8.201 from repository, everything went fine apparently; but this is the message I get when I start the process to install -sh: java: command not found

Could anybody help me please?

Wersja oprogramowania Firmware: 4.3.6.0805 Build 20181227
Model serwera: QNAP TS-251A
 
Bro will give you something...
  1. Uninstall Java
  2. Install and run this: http://pool.qnapclub.pl/projects/packages/java8/java-8-installer_1.8.qpkg
  3. Relogin to ssh again
  4. 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:-(
 
Are you sure when recommending Entware-ng? Its bit out-dated!
Package|Description
\entware-ng|entware-ng is a lightweight package management system designed for embedded devices. ...
\entware-3x-std|... It is strongly recommended to use entware-3x instead of entware-ng on all QNAP NASes, but x86 ones (with 32 bit intel CPUs). ...
\entware-std| entware-3x and entware-ng merged to become entware. entware is an Optware replacement for arm, mips, mipsel &amp; x64 NASes and routers. ...

I recommend to use entware-std in all cases.
 
Ng is full replacement of old deprecated Optware.
You should findout the reason why its not compatible and modify it to current Entware.

It must be related with sh "start" script.
I think this part is responsible for checking.

But.. I don't realy care, what's wrong with using outdated entwar.e?

Kod:
PackageCheck(){ #Does /opt exist? if not check if it's optware that's installed or opkg, and start the package
  /bin/echo -n " Checking for installed package..."
  if [ -x /opt/bin/ipkg ]; then #if optware
      /opt/bin/ipkg update
      /opt/bin/ipkg install grep sed procps bc bash coreutils
      sleep 2
      /bin/echo "  Done!"
  elif [ -x /etc/init.d/Entware-ng.sh ]; then #if Entware-ng
      /opt/bin/opkg update
      /opt/bin/opkg install grep sed procps-ng procps-ng-w bc bash coreutils coreutils-cat coreutils-tail coreutils-ln coreutils-mkdir
      sleep 2
      /bin/echo "  Done!"
  else #catch all
      /bin/echo "  No Optware or Opkg or Entware-ng found, please install one of them"   
      /sbin/write_log "I can't install required package, it's depend from Optware or Opkg or Entware-ng. Please re-install one of those packages" 1
      exit 1
  fi
  }

CheckForOpt(){ #Does /opt exist? if not check if it's optware that's installed or opkg, and start the package
  /bin/echo -n " Checking for /opt..."
  if [ ! -d /opt/bin ]; then
    if [ -x /etc/init.d/Optware.sh ]; then #if optware ,start optware
      /bin/echo "  Starting Optware..."
      /etc/init.d/Optware.sh start
      sleep 2
    elif [ -x /etc/init.d/opkg.sh ]; then #if opkg, start opkg 
      /bin/echo "  Starting Opkg..."   
      /etc/init.d/opkg.sh start
      sleep 2
    elif [ -x /etc/init.d/Entware-ng.sh ]; then #if Entware-ng, start Entware-ng 
      /bin/echo "  Starting Entware-ng..."   
      /etc/init.d/Entware-ng.sh start
      sleep 2
    else #catch all
      /bin/echo "  No Optware or Opkg or Entware-ng found, please install one of them"   
      /sbin/write_log "Failed to start $QPKG_NAME, no Optware or Opkg or Entware-ng found. Please re-install one of those packages" 1
      exit 1
    fi
  else
    /bin/echo "  Found!"
  fi
  }
 
Yes, its correct. Just type this command in terminal, in path where JDownloader.jar is placed.

Anyway, i still recomend to use my tutorial. Its described step by step, command by command how to do this.
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. java command not found