Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2019 17:13:32 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: certbot binary broken on update to py27-certbot-0.31.0_1,1
Message-ID:  <f2614ee3-da99-c3a0-a0fa-d3b11c137839@infracaninophile.co.uk>
In-Reply-To: <3a443850-81cf-0de8-0946-16a588cb0473@ifdnrg.com>
References:  <3a443850-81cf-0de8-0946-16a588cb0473@ifdnrg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2614ee3-da99-c3a0-a0fa-d3b11c137839>