Can't install certbot using snap

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: astrowin3.org

I ran this command: sudo snap install --classic certbot

It produced this output: error: cannot install "certbot": Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp:
lookup api.snapcraft.io on 127.0.0.53:53: server misbehaving

My web server is (include version): Webmin and Apache 2.4.52

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

My hosting provider, if applicable, is: VPS via ionos.com

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): Webmin 2/510

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): cannot install yet

Hello @edwall, welcome to the Let's Encrypt community. :slightly_smiling_face:

Try changing the resolver on the machine you are issuing
the sudo snap install --classic certbot command from.

It appears that DNS is not able to resolve api.snapcraft.io to an IP Address on that machine.

3 Likes

Try changing the resolver on the machine you are issuing
the "sudo snap install --classic certbot" command from.

I do not know how to do what you suggest.

Thank you for your help.

1 Like

Here is a link [SOLVED]Change DNS resolver - Ubuntu 22.04 | Howtoforge - Linux Howtos and Tutorials that may assist (but then again . . .).

1 Like

Thank you for your efforts. But I'm afraid I don't have enough experience with any of this to know what steps to accept and what steps to reject within the long articles. I tried a few of the most "obvious" suggestions, but nothing has yet to change the error message I am getting.

I don't understand why my VPS cannot do a simple command that others are able to do with no problem.

At one point in time my server was able to install and run certbot. But then I had to delete my Plesk control panel because they started charging a lot of money for a license. I think that deleting Plesk messed up a lot of things. But how to fix various things, I have no clue about.

I see the changes I made have messed everything up so I cannot even access my VPS now.

1 Like

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