Is there a way to install apache2-utils for NC Snap v31? Want an htpasswd login wall to kill bot traffic

For my Snap NC v31 server, fail2ban is set up to autoban all trusted domain errors, and bad logins but it is aggravating to see “Unable to generate a URL for the named route “ocs.password_policy.api.validate” as such route does not exist.” dozens of times a day in the logs.

Is it possible to install apache2-utils so that an htpasswd login wall can be implemented to kill all the probes by bots?