Could it be that you are using packages from Debian 10 on Debian 11 as you say Foreman 3.1? While trying to reproduce I recognized Debian 11 has only the upcoming 3.2 and there it installs the package fine, but than hits the bug I hit already yesterday: Enabling ansible plugin results in failure of db:migrate - #7 by Dirk