certbot binary broken on update to py27-certbot-0.31.0_1,1

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Apr 11 16:13:38 UTC 2019


On 11/04/2019 16:43, Paul Macdonald via freebsd-questions wrote:
> 
> Hi,
> 
> updating cerbot  as
> 
> Upgrade of py27-certbot-0.31.0,1 to py27-certbot-0.31.0_1,1 complete
> 
> leaves
> 
> /usr/local/bin/certbot-2.7
> 
> but no /usr/local/bin/certbot

With the recent switch to the 2019Q2 branch, the default version of 
python was changed to python-3.6, and it's only the default version that 
automatically gets the symlink to the unversioned name of the script.

You have several options available to you:

   * Switch to the python-3.6 flavour of certbot:

      # pkg install py36-certbot

     (Recommended). Note: you can have both python-2.7 and python-3.6 
installed simultaneously, as you can most python modules, so this 
shouldn't require you to completely reinstall everything pythonic on 
your system.

   * Make the symlink yourself:

      # cd /usr/local/bin
      # ln -s certbot-2.7 certbot

   * If you build your own packages and are dead set on sticking with 
python-2.7 then add to /etc/make.conf something along the lines of:

     DEFAULT_VERSIONS+= pythom=2.7

	Cheers,

	Matthew


More information about the freebsd-questions mailing list