OH3.1 clean install - failed to install influxdb

Create a debug log. It should show more information about why it’s failing.
For further information on how to do this please follow:
https://www.openhab.org/docs/installation/openhabian-debug.html#create-a-debug-log

Without further information it is not clear but it could be that it is related to this thread:

A solution on how to fix it is described in that thread ( permission for a file is missing ).