Cannot install certbot - missing dependencies

I want to use Let’s Encrypt on my SLES 15.1 VM.

When I try to install [FONT=Courier New][COLOR=“#008080”]certbot[/COLOR][/FONT] via [FONT=Courier New][COLOR=“#008080”]yast[/COLOR][/FONT] I get this:

The same when I try to install the [FONT=Courier New][COLOR=“#008080”]python2-certbot-apache[/COLOR][/FONT] module.

I added these modules with the below commands to the SLES 15.1 VM.

SUSEConnect -p sle-module-python2/15.1/x86_64 SUSEConnect -p PackageHub/15/x86_64

What am I missing? How to use certbot with SLES 15.1 - I didn’t find aynthing useful yet.

Thank you!

OK, this went fast.

Apparently, [FONT=Courier New][COLOR="#008080"]python2[/COLOR][/FONT] cannot be used.

I tried it with [FONT=Courier New][COLOR="#008080"]python3-certbot[/COLOR][/FONT]. Here I got the message that [FONT=Courier New][COLOR="#008080"]python3-mock[/COLOR][/FONT] is missing. Indeed, it’s not available in [FONT=Courier New][COLOR="#008080"]yast[/COLOR][/FONT]. I downloaded it from https://opensuse.pkgs.org/15.1/opensuse-oss-x86_64/python3-mock-2.0.0-lp151.4.3.noarch.rpm.html which provides the link to the binary package in https://ftp.lysator.liu.se/pub/opensuse/distribution/leap/15.1/repo/oss/noarch/python3-mock-2.0.0-lp151.4.3.noarch.rpm

Then there was another missing dependency [FONT=Courier New][COLOR="#008080"]python3-pbr[/COLOR][/FONT] but this is provided by [FONT=Courier New][COLOR="#008080"]yast[/COLOR][/FONT]. After installing it [FONT=Courier New][COLOR="#008080"]python3-certbot-apache[/COLOR][/FONT] was then finally not a problem and I could very easy create a certificate using the [FONT=Courier New][COLOR="#008080"]dns-01 challenge[/COLOR][/FONT] for a local domain with this command:

certbot -d local.example.com --manual --preferred-challenges dns --installer apache

[COLOR="#FF0000"]The remaining question[/COLOR]: In which module is the [FONT=Courier New][COLOR="#008080"]python3-mock[/COLOR][/FONT] package so it doesn’t have to be downloaded separately?

Hi
On SuMA I see;

python2-setuptools-40.5.0-4.21.noarch.rpm
Channel Name: SLE-Module-Python2-15-SP1-Pool for x86_64

python2-certbot-apache-1.0.0-bp151.3.6.3.noarch.rpm
Channel Name: SUSE-PackageHub-15-SP1-Standard-Pool for x86_64

python2-certbot-1.0.0-bp151.3.6.3.noarch.rpm
Channel Name: SUSE-PackageHub-15-SP1-Standard-Pool for x86_64

[QUOTE=AAEBHolding;59743]OK, this went fast.

Apparently, [FONT=Courier New][COLOR="#008080"]python2[/COLOR][/FONT] cannot be used.

I tried it with [FONT=Courier New][COLOR="#008080"]python3-certbot[/COLOR][/FONT]. Here I got the message that [FONT=Courier New][COLOR="#008080"]python3-mock[/COLOR][/FONT] is missing. Indeed, it’s not available in [FONT=Courier New][COLOR="#008080"]yast[/COLOR][/FONT]. I downloaded it from https://opensuse.pkgs.org/15.1/opensuse-oss-x86_64/python3-mock-2.0.0-lp151.4.3.noarch.rpm.html which provides the link to the binary package in https://ftp.lysator.liu.se/pub/opensuse/distribution/leap/15.1/repo/oss/noarch/python3-mock-2.0.0-lp151.4.3.noarch.rpm

Then there was another missing dependency [FONT=Courier New][COLOR="#008080"]python3-pbr[/COLOR][/FONT] but this is provided by [FONT=Courier New][COLOR="#008080"]yast[/COLOR][/FONT]. After installing it [FONT=Courier New][COLOR="#008080"]python3-certbot-apache[/COLOR][/FONT] was then finally not a problem and I could very easy create a certificate using the [FONT=Courier New][COLOR="#008080"]dns-01 challenge[/COLOR][/FONT] for a local domain with this command:

certbot -d local.example.com --manual --preferred-challenges dns --installer apache

[COLOR="#FF0000"]The remaining question[/COLOR]: In which module is the [FONT=Courier New][COLOR="#008080"]python3-mock[/COLOR][/FONT] package so it doesn’t have to be downloaded separately?[/QUOTE]
Hi
You could ask the OBS maintainers for it to get pushed to Backports and it will get to Package Hub?

It’s there for SLE 15 SP2 beta (but only python2)…
https://packagehub.suse.com/packages/python-mock/

[QUOTE=malcolmlewis;59744]Hi
On SuMA I see;

[CODE]
python2-setuptools-40.5.0-4.21.noarch.rpm
Channel Name: SLE-Module-Python2-15-SP1-Pool for x86_64

python2-certbot-apache-1.0.0-bp151.3.6.3.noarch.rpm
Channel Name: SUSE-PackageHub-15-SP1-Standard-Pool for x86_64

python2-certbot-1.0.0-bp151.3.6.3.noarch.rpm
Channel Name: SUSE-PackageHub-15-SP1-Standard-Pool for x86_64
[/CODE][/QUOTE]

What can I say, I copied the message from yast. What could have I done wrong?

[QUOTE=AAEBHolding;59743]OK, this went fast.

Apparently, [FONT=Courier New][COLOR="#008080"]python2[/COLOR][/FONT] cannot be used.

I tried it with [FONT=Courier New][COLOR="#008080"]python3-certbot[/COLOR][/FONT]. Here I got the message that [FONT=Courier New][COLOR="#008080"]python3-mock[/COLOR][/FONT] is missing. Indeed, it’s not available in [FONT=Courier New][COLOR="#008080"]yast[/COLOR][/FONT]. I downloaded it from https://opensuse.pkgs.org/15.1/opensuse-oss-x86_64/python3-mock-2.0.0-lp151.4.3.noarch.rpm.html which provides the link to the binary package in https://ftp.lysator.liu.se/pub/opensuse/distribution/leap/15.1/repo/oss/noarch/python3-mock-2.0.0-lp151.4.3.noarch.rpm

Then there was another missing dependency [FONT=Courier New][COLOR="#008080"]python3-pbr[/COLOR][/FONT] but this is provided by [FONT=Courier New][COLOR="#008080"]yast[/COLOR][/FONT]. After installing it [FONT=Courier New][COLOR="#008080"]python3-certbot-apache[/COLOR][/FONT] was then finally not a problem and I could very easy create a certificate using the [FONT=Courier New][COLOR="#008080"]dns-01 challenge[/COLOR][/FONT] for a local domain with this command:

certbot -d local.example.com --manual --preferred-challenges dns --installer apache

[COLOR="#FF0000"]The remaining question[/COLOR]: In which module is the [FONT=Courier New][COLOR="#008080"]python3-mock[/COLOR][/FONT] package so it doesn’t have to be downloaded separately?[/QUOTE]

python3-mock is available in the “Public Cloud Module”, see https://scc.suse.com/packages?name=SUSE%20Linux%20Enterprise%20Server&version=15.1&arch=x86_64&query=python3-mock&module=

Hope that helps,
Ismail

[QUOTE=namtrac;59749]python3-mock is available in the “Public Cloud Module”, see https://scc.suse.com/packages?name=SUSE%20Linux%20Enterprise%20Server&version=15.1&arch=x86_64&query=python3-mock&module=

Hope that helps,
Ismail[/QUOTE]

Thank you Ismail. I wasn’t really aware of the site where I can run the queries. You saved my life as now it’s so easy when I need to know the module of a package!