I used apt noninteractively to install PostgreSQL and its contrib package. The install completed. Starting the database was a separate step after the package was in place.
- What worked
- The noninteractive install finished and left the database packages available for a manual cluster start.