Jitsi-meet: install-letsencrypt-cert.sh fails on Ubuntu 20.04

Created on 30 Apr 2020  路  8Comments  路  Source: jitsi/jitsi-meet

I am following instructions from README.md to install Jitsi on my server.

I am using Ubuntu 20.04 as a host.

When I try to run /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh, as per suggestions, I get this error:

Package python-virtualenv is not available, but is referred to by another package.

E: Package 'python-virtualenv' has no installation candidate

duplicate packaging

Most helpful comment

Linking this comment here. https://github.com/certbot/certbot/issues/7941#issuecomment-619177149

I had the same issue and installed certbot via sudo apt install -y certbot

Then made changes to the script.

commented out this part of downloading the certbot-auto

#if [ ! -f certbot-auto ] ; then
#  wget https://dl.eff.org/certbot-auto
#  chmod a+x ./certbot-auto
#fi

and replaced ./certbot-auto with certbot.

All 8 comments

I think you should avoid the script altogether since it depends on the old certbot and it would not be able to make it renew the certificate later when you'll need to do so (edit: certbot will automatically renew it). Instead I would use the official package.

Since you are on Ubuntu, you would follow https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04 to set up Nginx with Let's Encrypt on Ubuntu 18.04.

If you use apache, see: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

These are the script you could use on Debian:

sudo printf "deb http://deb.debian.org/debian stretch-backports main contrib non-free\n" | sudo tee -a /etc/apt/sources.list > /dev/null sudo printf "deb-src http://deb.debian.org/debian stretch-backports main contrib non-free" | sudo tee -a /etc/apt/sources.list > /dev/null sudo apt update && sudo apt install -y python-certbot-nginx -t stretch-backports sudo apt install --only-upgrade python3-acme sudo certbot --nginx -d example.com

Replace example.com with your own domain.

Finally, please make sure to run sudo certbot renew --dry-run to see if your certificate will be renewed when it should be.

Yup, thank you for the info. I tried 18.04, and I run into the same issue.
It's not a problem to configure letsencript 'mnually', it's that the documentation is misleading - hence me opening this issue :)

I tried 18.04, and I run into the same issue.

it might not be able for me to help you fix the issue, but would you please paste the error message?

Linking this comment here. https://github.com/certbot/certbot/issues/7941#issuecomment-619177149

I had the same issue and installed certbot via sudo apt install -y certbot

Then made changes to the script.

commented out this part of downloading the certbot-auto

#if [ ! -f certbot-auto ] ; then
#  wget https://dl.eff.org/certbot-auto
#  chmod a+x ./certbot-auto
#fi

and replaced ./certbot-auto with certbot.

I have been looking at this and the issue is not with Jitsi. The issue is that there is no .deb file for python-virtualenv in the Ubuntu repository. You can see the package entry here:

https://launchpad.net/ubuntu/+source/python-virtualenv/20.0.17-1

It has an entry but no installable .deb file. This halfway state is causing the following conditional check in the certbot-auto script to succeed even though there is no package to install:

if apt-cache show python-virtualenv > /dev/null 2>&1; then
virtualenv="$virtualenv python-virtualenv"
fi

This is because the command "apt-cache show python-virtualenv " fails with the following error:

apt-cache show python-virtualenv
N: Can't select versions from package 'python-virtualenv' as it is purely virtual
N: No packages found

But returns successful status code of "0". I have opened a ticket with Ubuntu about this so hopefully the package will get added to their repo soon and resolve this issue.

There is nothing to fix with ubuntu, python-virtualenv package is no more, python3-virtualenv replaces it. Also, installing just 'virtualenv' will install python3-virtualenv.

This is all related to Ubuntu 20.04, as there is no python2 there in main repositories (there is python2.7 from 'universe' repositories, though)

I was wrong regarding Ubuntu 18.04: there is python-virtualenv package there, which defaults to python2.7.

So, I'd say the simplest way is to fix documentation :)

I had the same issue and installed certbot via sudo apt install -y certbot

Perfect.. It worked for me too

Was this page helpful?
0 / 5 - 0 ratings