# Problems installing Open JDK 17

**URL:** <https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589>\
**Category:** Troubleshooting\
**Created:** [24 October 2025 16:53 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589 "2025-10-24T16:53:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0mm4nd3rk33n](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/bbce88/32.png) [@c0mm4nd3rk33n](https://dietpi.com/forum/u/c0mm4nd3rk33n)\
**Post date:** [24 October 2025 16:53 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/1 "2025-10-24T16:53:07Z")

</div>

Hello,

I’m having trouble installing the “openjdk-17-jdk-headless” package via apt on the current DietPi. What would be the easiest way to install Java 17? I would like to install and test the “Thingsboard” software, but it requires Java 17. I tried openjdk-21 and it does not work.

I get the message:  
Error: Package openjdk-17-jdk-headless cannot be found.

Do I need to add another repo or adjust a configuration somewhere so I can access a different Debian repo?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [24 October 2025 17:17 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/2 "2025-10-24T17:17:47Z")

</div>

You could have started to fill the troubleshooting template

---

<div class="post-metadata">

**Author:** ![c0mm4nd3rk33n](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/bbce88/32.png) [@c0mm4nd3rk33n](https://dietpi.com/forum/u/c0mm4nd3rk33n)\
**Post date:** [24 October 2025 17:39 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/3 "2025-10-24T17:39:13Z")

</div>

You are right, sorry, this was my mistake. I thought everything important was in my text, I spent several hours today searching for solutions on google, but unfortunately I couldn’t find any so far

I have searched the existing open and closed issues

#### Required Information

- DietPi version | G\_DIETPI\_VERSION\_CORE=9  
G\_DIETPI\_VERSION\_SUB=17  
G\_DIETPI\_VERSION\_RC=2  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’  
G\_LIVE\_PATCH\_STATUS[0]=‘not applicable’
- Distro version | trixie
- Kernel version | Linux 6.12.48+deb13-amd64 #1 SMP PREEMPT\_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86\_64 GNU/Linux
- Architecture | amd64
- SBC model | `- VM`
- Power supply used | - VM
- SD card used | - VM

#### Additional Information (if applicable)

- Software title | ThingsBoard
- i tried to install Thingsboard which needs Java 17 as a dependency
- Can this issue be replicated on a fresh installation of DietPi? → yes

#### Steps to reproduce

```auto
<!-- Explain how to reproduce the issue -->

```

1. 

```auto
apt install openjdk-17-jdk-headless

```

#### Expected behaviour

```auto
<!-- What SHOULD be happening? -->

```

- openjdk 17 gets installed…

#### Actual behaviour

```auto
<!-- What IS happening? -->

```

- Error Message: Fehler: Paket openjdk-17-jdk-headless kann nicht gefunden werden.

```auto
<!-- Please post any extra details that might help solve the issue -->

```

- …

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [24 October 2025 18:53 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/4 "2025-10-24T18:53:01Z")

</div>

The package you are trying to install is not available anymore in debian trixie [https://packages.debian.org/search?suite=trixie&arch=any&searchon=names&keywords=openjdk](https://packages.debian.org/search?suite=trixie&arch=any&searchon=names&keywords=openjdk)

You would need to install version 21 or 25 or if you explicitly need version 17, build it by yourself.  
But I guess it should be compatible with version 21 too.

```auto
dietpi-software install 8

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [24 October 2025 19:06 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/5 "2025-10-24T19:06:58Z")

</div>

> [@Jappe](#):
>
> f you explicitly need version 17, build it by yourself.

not necessarily, the alternative would be `adoptium` [JFrog](https://packages.adoptium.net/ui/packages)

Similar we do as well

> <https://github.com/MichaIng/DietPi/blob/7b8588c960919f3885fb9b1dee5d1d62217fdf01/dietpi/dietpi-software#L3107-L3126>

---

<div class="post-metadata">

**Author:** ![c0mm4nd3rk33n](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/bbce88/32.png) [@c0mm4nd3rk33n](https://dietpi.com/forum/u/c0mm4nd3rk33n)\
**Post date:** [24 October 2025 22:14 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/6 "2025-10-24T22:14:21Z")

</div>

Thank you very much!

this guide helped me:

> **[Adoptium](https://adoptium.net/de/installation/linux)**
>
> Eclipse Adoptium provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure.

at the end i was able to install with:

“apt install temurin-17-jdk”

and now i can install and configure ThingsBoard (and start it / open the WebUI)

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [22 January 2026 22:14 UTC](https://dietpi.com/forum/t/problems-installing-open-jdk-17/24589/7 "2026-01-22T22:14:23Z")

</div>

Closed on 22 January 2026 22:14 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
