Error installing certbot snap

My domain is: evtcc.org

I ran this command: snap install --classic certbot

It produced this output:
error: cannot install "certbot": Post "https://api.snapcraft.io/v2/snaps/refresh": http: server
gave HTTP response to HTTPS client
My web server is (include version): N/A

The operating system my web server runs on is (include version): Ubuntu 22.04

My hosting provider, if applicable, is: N/A

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): N/A

I believe the above preset fields are a complete description of the problem. Please note that I have run apt update; apt upgrade prior to attempting to install certbot. This is a pretty vanilla setup so far! I have setup iptables to forward 80 to 8080 so that the server is run as a non-privileged user, but that's the only configuration that could conceivably affect this. Would be grateful for any help.

Hi @jchilton, and welcome to the LE community forum :slight_smile:

Try:
snap refresh

If that fails, you may have to uninstall snap and then reinstall it.
If that is the case, you will have to take note of all installed snaps; As you will likely have to reinstall them all as well afterwards.

2 Likes

It was indeed due to local port forwarding. Curl wasn't working, git clone wasn't working. So I disabled custom iptables rules, then was able to install and run certbot. :+1: Sorry I forgot to update this. Thanks for your reply.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.