Certbot renew failed, can't install snapd on Centos8

My domain is: https://financieelonafhankelijkworden.nl/

I ran this command: certbot renew

It produced this output: command not found

My web server is (include version): Apache/2.4.37

The operating system my web server runs on is (include version): Centos 8 version 8.5.2111

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): certbot 1.22.0

Hi,

We were updating our sites with certbot-auto up until the last month. Somehow the certbot command can't be found anymore. It simply says command not found when entering certbot renew. Running certbot-auto states certbot-auto is not supported anymore.

So I decided to use the newer snapd approach. But I can't get snapd installed because of missing packages:

Error:
Problem: package snapd-2.56.2-1.el8.x86_64 requires snapd-selinux = 2.56.2-1.el8, but none of the providers can be installed

  • conflicting requests
  • nothing provides selinux-policy >= 3.14.3-95.el8 needed by snapd-selinux-2.56.2-1.el8.noarch
  • nothing provides selinux-policy-base >= 3.14.3-95.el8 needed by snapd-selinux-2.56.2-1.el8.noarch

This means the repository does not have any packages for selinux-policy >= 3.14.3-95.el8 etc. So I managed to manually download the required RPM files (selinux-policy >= 3.14.3-95.el8 and selinux-policy >= 3.14.3-95.el8) but to install those it needs another dependency. When I try to install that dependency it tells me it needs another dependency.... So I have no clue how much dependencies of dependencies I need and if this is the right approach. The repositories are up to date. Followed all snapd steps from this page: Installing snap on CentOS | Snapcraft documentation but that does not work.

How to proceed?

1 Like

certbot-auto hasn't been supported for a very long time. And if that's how you've been using certbot, it's to be expected that the certbot command wouldn't work. But if certbot results in command not found, how are you getting the output of certbot --version?

4 Likes

Certbot might have a standard yum package or be in epel (without snap). You could try that although updates will be less frequent.

Or, check out this page from Snapcraft (which is linked from certbot.eff.org)
Installing snap on CentOS | Snapcraft documentation

4 Likes

Found a solution, updated Centos8 to Centos 8 stream, then I could install snapd and update the certs.

3 Likes

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