I respect your usage of ports but curious why not simply pkg install py39-certbot-nginx
. Also you arent trying to do this commands on the host CLI right you need to be in whatever nextcloud jail you have that has nginx, nextcloud n such.
According to that guide it looks as if it had you use the plugin. So at that youll need to do something along the lines of this from the same terminal.
iocage list
take note of jailname then
iocage console JAILNAME
to enter the jails root terminal then just do
python -V
and take note of the python version the plugin is using, say its Python 3.9x, You might have to change the flavor to py38 or something. then do
pkg install py39-certbot-nginx
. Then likely just pickup the guide again at that point.