# Cannot install certbot - missing dependencies

**URL:** https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912
**Category:** SLES Updates
**Created:** [April 3, 2020, 3:58am UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912 "2020-04-03T03:58:09Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![VargaPeter](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@VargaPeter](https://forums.suse.com/u/VargaPeter)
#### Post date: [April 3, 2020, 3:58am UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/1 "2020-04-03T03:58:09Z")

</div>

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:

> [@](#):
>
> nothing provides python2-setuptools needed by python2-certbot-1.0.0-bp151.3.6.3.noarch

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!

---

<div class="post-metadata">

### Author: ![VargaPeter](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@VargaPeter](https://forums.suse.com/u/VargaPeter)
#### Post date: [April 3, 2020, 4:41am UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/2 "2020-04-03T04:41:17Z")

</div>

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](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](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:

```auto
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?

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [April 3, 2020, 4:48am UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/3 "2020-04-03T04:48:22Z")

</div>

Hi  
On SuMA I see;

```auto
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
```

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [April 3, 2020, 4:57am UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/4 "2020-04-03T04:57:50Z")

</div>

[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](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](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:

```auto
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/](https://packagehub.suse.com/packages/python-mock/)

---

<div class="post-metadata">

### Author: ![VargaPeter](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@VargaPeter](https://forums.suse.com/u/VargaPeter)
#### Post date: [April 3, 2020, 5:45pm UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/5 "2020-04-03T17:45:27Z")

</div>

[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?

---

<div class="post-metadata">

### Author: ![Ismail](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@Ismail](https://forums.suse.com/u/Ismail)
#### Post date: [April 3, 2020, 6:01pm UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/6 "2020-04-03T18:01:55Z")

</div>

[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](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](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:

```auto
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=](https://scc.suse.com/packages?name=SUSE%20Linux%20Enterprise%20Server&version=15.1&arch=x86_64&query=python3-mock&module=)

Hope that helps,  
Ismail

---

<div class="post-metadata">

### Author: ![VargaPeter](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@VargaPeter](https://forums.suse.com/u/VargaPeter)
#### Post date: [April 3, 2020, 6:14pm UTC](https://forums.suse.com/t/cannot-install-certbot-missing-dependencies/34912/7 "2020-04-03T18:14:16Z")

</div>

[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=](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!
