[Newbie looking for help] Tried installing Foreman on Debian 11 VM, but got an error with pupperserver

Problem:
Unable to install foreman
Expected outcome:
Successfully installing and running Foreman
Foreman and Proxy versions:
3.6
Foreman and Proxy plugin versions:
3.6
Distribution and version:
Debian 11
Other relevant data:
I tried installing Foreman on fresh Debian 11 VM with default plugins, but got this error about packages not installing. openjdk-8-jre-headless seems to be the problem, how could I fix this?
Messages when launching install:
2023-05-17 23:58:16 [NOTICE] [configure] Starting system configuration .
2023-05-18 00:00:41 [ERROR ] [configure] Execution of ‘/usr/bin/apt-get -q -y -o DPkg::Options::=–force-confold install puppetserver’ returned 100: Reading package lists…
2023-05-18 00:00:41 [ERROR ] [configure] Building dependency tree…
2023-05-18 00:00:41 [ERROR ] [configure] Reading state information…
2023-05-18 00:00:41 [ERROR ] [configure] Some packages could not be installed. This may mean that you have
2023-05-18 00:00:41 [ERROR ] [configure] requested an impossible situation or if you are using the unstable
2023-05-18 00:00:41 [ERROR ] [configure] distribution that some required packages have not yet been created
2023-05-18 00:00:41 [ERROR ] [configure] or been moved out of Incoming.
2023-05-18 00:00:41 [ERROR ] [configure] The following information may help to resolve the situation:
2023-05-18 00:00:41 [ERROR ] [configure]
2023-05-18 00:00:41 [ERROR ] [configure] The following packages have unmet dependencies:
2023-05-18 00:00:41 [ERROR ] [configure] puppetserver : Depends: openjdk-8-jre-headless but it is not installable
2023-05-18 00:00:41 [ERROR ] [configure] E: Unable to correct problems, you have held broken packages.
2023-05-18 00:00:41 [ERROR ] [configure] /Stage[main]/Puppet::Server::Install/Package[puppetserver]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/usr/bin/apt-get -q -y -o DPkg::Options::=–force-confold install puppetserver’ returned 100: Reading package lists…
2023-05-18 00:00:41 [ERROR ] [configure] Building dependency tree…
2023-05-18 00:00:41 [ERROR ] [configure] Reading state information…
2023-05-18 00:00:41 [ERROR ] [configure] Some packages could not be installed. This may mean that you have
2023-05-18 00:00:41 [ERROR ] [configure] requested an impossible situation or if you are using the unstable
2023-05-18 00:00:41 [ERROR ] [configure] distribution that some required packages have not yet been created
2023-05-18 00:00:41 [ERROR ] [configure] or been moved out of Incoming.
2023-05-18 00:00:41 [ERROR ] [configure] The following information may help to resolve the situation:
2023-05-18 00:00:41 [ERROR ] [configure]
2023-05-18 00:00:41 [ERROR ] [configure] The following packages have unmet dependencies:
2023-05-18 00:00:41 [ERROR ] [configure] puppetserver : Depends: openjdk-8-jre-headless but it is not installable
2023-05-18 00:00:41 [ERROR ] [configure] E: Unable to correct problems, you have held broken packages.
2023-05-18 00:00:41 [NOTICE] [configure] 250 configuration steps out of 1244 steps complete.
2023-05-18 00:00:44 [NOTICE] [configure] 500 configuration steps out of 1248 steps complete.
2023-05-18 00:00:49 [NOTICE] [configure] 750 configuration steps out of 1377 steps complete.
2023-05-18 00:00:52 [NOTICE] [configure] 1000 configuration steps out of 1401 steps complete.
2023-05-18 00:00:52 [NOTICE] [configure] 1250 configuration steps out of 1401 steps complete.
2023-05-18 00:00:54 [NOTICE] [configure] System configuration has finished.