Possible setup_java issue #1991

Closed
opened 2026-02-05 03:14:26 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @snow2k9 on GitHub (Nov 13, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Reitti

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/reitti.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

pve-manager/8.4.14/b502d23c55afcba1 (running kernel: 6.8.12-13-pve)

📝 Provide a clear and concise description of the issue.

Installed Reitti and got this

/dev/fd/63: line 2792: [[: 0
0: syntax error in expression (error token is "0") 

I think it is this line 6c0287c17a/misc/tools.func (L2791)

tested output manually after lxc installation

root@reitti:~# dpkg -l | grep -c "temurin-.*-jdk" || echo "0"
1

wanted to test if package is not installed

root@reitti:~# dpkg -l | grep -c "temurin-21-jdk" || echo "0"
0
0

i think should be only 0, so removing the || echo "0" should be fixing this?

🔄 Steps to reproduce the issue.

Run Reitti script or possible all scripts using setup_java and don't have jdk installed

Paste the full error output (if available).

Setting up erlang-base (1:27.3.4.1+dfsg-1) ...
Created symlink '/etc/systemd/system/multi-user.target.wants/epmd.service' → '/usr/lib/systemd/system/epmd.service'.
Created symlink '/etc/systemd/system/sockets.target.wants/epmd.socket' → '/usr/lib/systemd/system/epmd.socket'.
Searching for services which depend on erlang and should be started... none found.
Setting up erlang-os-mon (1:27.3.4.1+dfsg-1) ...
Setting up erlang-xmerl (1:27.3.4.1+dfsg-1) ...
Setting up libpq5:amd64 (17.6-0+deb13u1) ...
Setting up erlang-syntax-tools (1:27.3.4.1+dfsg-1) ...
Setting up erlang-parsetools (1:27.3.4.1+dfsg-1) ...
Setting up socat (1.8.0.3-1) ...
Setting up liblzf1:amd64 (3.6-4+b3) ...
Setting up libssl-dev:amd64 (3.5.1-1+deb13u1) ...
Setting up erlang-asn1 (1:27.3.4.1+dfsg-1) ...
Setting up libsctp1:amd64 (1.0.21+dfsg-1) ...
Setting up erlang-mnesia (1:27.3.4.1+dfsg-1) ...
Setting up erlang-crypto (1:27.3.4.1+dfsg-1) ...
Setting up zstd (1.5.7+dfsg-1) ...
Setting up erlang-runtime-tools (1:27.3.4.1+dfsg-1) ...
Setting up erlang-tools (1:27.3.4.1+dfsg-1) ...
Setting up libpq-dev (17.6-0+deb13u1) ...
Setting up redis-tools (5:8.0.2-3+deb13u1) ...
Setting up erlang-public-key (1:27.3.4.1+dfsg-1) ...
Setting up erlang-ssl (1:27.3.4.1+dfsg-1) ...
Setting up erlang-inets (1:27.3.4.1+dfsg-1) ...
Setting up redis-server (5:8.0.2-3+deb13u1) ...
Created symlink '/etc/systemd/system/redis.service' → '/usr/lib/systemd/system/redis-server.service'.
Created symlink '/etc/systemd/system/multi-user.target.wants/redis-server.service' → '/usr/lib/systemd/system/redis-server.service'.
Setting up erlang-eldap (1:27.3.4.1+dfsg-1) ...
Setting up rabbitmq-server (4.0.5-6+deb13u1) ...
Created symlink '/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service' → '/usr/lib/systemd/system/rabbitmq-server.service'.
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for libc-bin (2.41-12) ...
  ✔️   Installed Dependencies
Hit:1 http://security.debian.org trixie-security InRelease
Hit:2 http://deb.debian.org/debian trixie InRelease
Hit:3 http://deb.debian.org/debian trixie-updates InRelease
All packages are up to date.    
Hit:1 http://security.debian.org trixie-security InRelease
Hit:2 http://deb.debian.org/debian trixie InRelease                         
Hit:3 http://deb.debian.org/debian trixie-updates InRelease                 
Get:4 https://packages.adoptium.net/artifactory/deb trixie InRelease [7,503 B]
Get:5 https://packages.adoptium.net/artifactory/deb trixie/main amd64 Packages [9,720 B]
Fetched 17.2 kB in 2s (7,583 B/s)
All packages are up to date.    
/dev/fd/63: line 2792: [[: 0
0: syntax error in expression (error token is "0")
Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://security.debian.org trixie-security InRelease                  
Hit:3 http://deb.debian.org/debian trixie-updates InRelease                 
Get:4 https://packages.adoptium.net/artifactory/deb trixie InRelease [7,503 B]
Fetched 7,503 B in 0s (18.5 kB/s)   
All packages are up to date.    
Installing:                     
  temurin-24-jdk

Installing dependencies:
  adoptium-ca-certificates  fontconfig-config   fonts-dejavu-mono  libasound2t64   libpng16-16t64  libxau6    libxext6     libxtst6         x11-common
  alsa-topology-conf        fonts-dejavu-core   java-common        libfontconfig1  libx11-6        libxcb1    libxi6       p11-kit
  alsa-ucm-conf             fonts-dejavu-extra  libasound2-data    libfreetype6    libx11-data     libxdmcp6  libxrender1  p11-kit-modules

Suggested packages:
  default-jre  alsa-utils  libasound2-plugins

Summary:
  Upgrading: 0, Installing: 26, Removing: 0, Not Upgrading: 0
  Download size: 117 MB
  Space needed: 335 MB / 14.0 GB available

🖼️ Additional context (optional).

No response

Originally created by @snow2k9 on GitHub (Nov 13, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Reitti ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/reitti.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? pve-manager/8.4.14/b502d23c55afcba1 (running kernel: 6.8.12-13-pve) ### 📝 Provide a clear and concise description of the issue. Installed Reitti and got this ``` /dev/fd/63: line 2792: [[: 0 0: syntax error in expression (error token is "0") ``` I think it is this line https://github.com/community-scripts/ProxmoxVE/blob/6c0287c17a149d0ceca1238f3a5e7662a863901b/misc/tools.func#L2791 tested output manually after lxc installation ``` root@reitti:~# dpkg -l | grep -c "temurin-.*-jdk" || echo "0" 1 ``` wanted to test if package is not installed ``` root@reitti:~# dpkg -l | grep -c "temurin-21-jdk" || echo "0" 0 0 ``` i think should be only `0`, so removing the `|| echo "0"` should be fixing this? ### 🔄 Steps to reproduce the issue. Run Reitti script or possible all scripts using `setup_java` and don't have jdk installed ### ❌ Paste the full error output (if available). ``` Setting up erlang-base (1:27.3.4.1+dfsg-1) ... Created symlink '/etc/systemd/system/multi-user.target.wants/epmd.service' → '/usr/lib/systemd/system/epmd.service'. Created symlink '/etc/systemd/system/sockets.target.wants/epmd.socket' → '/usr/lib/systemd/system/epmd.socket'. Searching for services which depend on erlang and should be started... none found. Setting up erlang-os-mon (1:27.3.4.1+dfsg-1) ... Setting up erlang-xmerl (1:27.3.4.1+dfsg-1) ... Setting up libpq5:amd64 (17.6-0+deb13u1) ... Setting up erlang-syntax-tools (1:27.3.4.1+dfsg-1) ... Setting up erlang-parsetools (1:27.3.4.1+dfsg-1) ... Setting up socat (1.8.0.3-1) ... Setting up liblzf1:amd64 (3.6-4+b3) ... Setting up libssl-dev:amd64 (3.5.1-1+deb13u1) ... Setting up erlang-asn1 (1:27.3.4.1+dfsg-1) ... Setting up libsctp1:amd64 (1.0.21+dfsg-1) ... Setting up erlang-mnesia (1:27.3.4.1+dfsg-1) ... Setting up erlang-crypto (1:27.3.4.1+dfsg-1) ... Setting up zstd (1.5.7+dfsg-1) ... Setting up erlang-runtime-tools (1:27.3.4.1+dfsg-1) ... Setting up erlang-tools (1:27.3.4.1+dfsg-1) ... Setting up libpq-dev (17.6-0+deb13u1) ... Setting up redis-tools (5:8.0.2-3+deb13u1) ... Setting up erlang-public-key (1:27.3.4.1+dfsg-1) ... Setting up erlang-ssl (1:27.3.4.1+dfsg-1) ... Setting up erlang-inets (1:27.3.4.1+dfsg-1) ... Setting up redis-server (5:8.0.2-3+deb13u1) ... Created symlink '/etc/systemd/system/redis.service' → '/usr/lib/systemd/system/redis-server.service'. Created symlink '/etc/systemd/system/multi-user.target.wants/redis-server.service' → '/usr/lib/systemd/system/redis-server.service'. Setting up erlang-eldap (1:27.3.4.1+dfsg-1) ... Setting up rabbitmq-server (4.0.5-6+deb13u1) ... Created symlink '/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service' → '/usr/lib/systemd/system/rabbitmq-server.service'. Processing triggers for man-db (2.13.1-1) ... Processing triggers for libc-bin (2.41-12) ... ✔️ Installed Dependencies Hit:1 http://security.debian.org trixie-security InRelease Hit:2 http://deb.debian.org/debian trixie InRelease Hit:3 http://deb.debian.org/debian trixie-updates InRelease All packages are up to date. Hit:1 http://security.debian.org trixie-security InRelease Hit:2 http://deb.debian.org/debian trixie InRelease Hit:3 http://deb.debian.org/debian trixie-updates InRelease Get:4 https://packages.adoptium.net/artifactory/deb trixie InRelease [7,503 B] Get:5 https://packages.adoptium.net/artifactory/deb trixie/main amd64 Packages [9,720 B] Fetched 17.2 kB in 2s (7,583 B/s) All packages are up to date. /dev/fd/63: line 2792: [[: 0 0: syntax error in expression (error token is "0") Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://security.debian.org trixie-security InRelease Hit:3 http://deb.debian.org/debian trixie-updates InRelease Get:4 https://packages.adoptium.net/artifactory/deb trixie InRelease [7,503 B] Fetched 7,503 B in 0s (18.5 kB/s) All packages are up to date. Installing: temurin-24-jdk Installing dependencies: adoptium-ca-certificates fontconfig-config fonts-dejavu-mono libasound2t64 libpng16-16t64 libxau6 libxext6 libxtst6 x11-common alsa-topology-conf fonts-dejavu-core java-common libfontconfig1 libx11-6 libxcb1 libxi6 p11-kit alsa-ucm-conf fonts-dejavu-extra libasound2-data libfreetype6 libx11-data libxdmcp6 libxrender1 p11-kit-modules Suggested packages: default-jre alsa-utils libasound2-plugins Summary: Upgrading: 0, Installing: 26, Removing: 0, Not Upgrading: 0 Download size: 117 MB Space needed: 335 MB / 14.0 GB available ``` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 03:14:26 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1991