Foreman 3.4 installation fail o Debian 11

Problem:
We are trying to install the latest version of foreman (3.4) on a new debian 11.5, using the “quick start” recommendations, but we have an error in the step: “sudo apt-get update && sudo apt-get -y install foreman-installer”:

Setting up foreman-installer (3.4.0-1) …
Traceback (most recent call last):
13: from /usr/sbin/foreman-installer:8:in <main>' 12: from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:50:in run’
11: from /usr/lib/ruby/vendor_ruby/clamp/command.rb:132:in run' 10: from /usr/lib/ruby/vendor_ruby/clamp/command.rb:132:in new’
9: from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:115:in initialize' 8: from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:325:in run_migrations’
7: from /usr/lib/ruby/vendor_ruby/kafo/migrations.rb:35:in run' 6: from /usr/lib/ruby/vendor_ruby/kafo/migrations.rb:35:in each’
5: from /usr/lib/ruby/vendor_ruby/kafo/migrations.rb:38:in block in run' 4: from /usr/lib/ruby/vendor_ruby/kafo/migration_context.rb:10:in execute’
3: from /usr/lib/ruby/vendor_ruby/kafo/migration_context.rb:10:in instance_eval' 2: from /usr/lib/ruby/vendor_ruby/kafo/migrations.rb:25:in block (2 levels) in load_migrations’
1: from /usr/lib/ruby/vendor_ruby/kafo/migrations.rb:25:in instance_eval' /etc/foreman-installer/scenarios.d/foreman.migrations/20200909151007_manage_acls_on_debian.rb:1:in block (2 levels) in load_migrations’: undefined method `’ for nil:NilClass (NoMethodError)
dpkg: error processing package foreman-installer (–configure):
installed foreman-installer package post-installation script subprocess returned error exit status 1

I appreciate if anyone can help with this problem.

Thanks