certbot 安装证书报错:The requested nginx plugin does not appear to be installed

文章目录

    系统环境

    Ubuntu 20.04

    报错信息

    # certbot --nginx
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    The requested nginx plugin does not appear to be installed
    

    解决方法

    sudo apt install python3-certbot-nginx
    

    然后重新执行

    certbot --nginx