azure-agent problems

Oleksandr Tymoshenko gonzo at bluezbox.com
Fri Aug 14 05:09:45 UTC 2020


tech-lists (tech-lists at zyxst.net) wrote:
> On Thu, Aug 13, 2020 at 07:47:14PM -0700, Oleksandr Tymoshenko wrote:
> >Hello,
> >
> >I think python3 is provided by lang/python3 meta-package:
> >
> >% pkg which /usr/local/bin/python3
> >/usr/local/bin/python3 was installed by package python3-3_3
> >% ls -la /usr/local/bin/python3
> >lrwxr-xr-x  1 root  wheel  9 Jul  9 17:43 /usr/local/bin/python3 -> python3.7
> 
> Hi,
> 
> Interesting you mention that.
> 
> This vm was installed, initially it was 12.0-RELEASE, through Azure
> Marketplace. So the python was provisioned by default in /usr/bin/python.
> By that, I mean the vm instance came into being and it was there, before 
> anything was installed. Subsequent stuff installed through pkg follows 
> $LOCALBASE as expected.
> 
> The vm was later upgraded through freebsd-update to 12.1-p8
> 
> Maybe I should remove the /usr/bin/python which will be python27?
> 
> Because I had to manually create the symlink of python3 pointing to python3.7,
> pkg which shows this:
> 
> $ pkg which /usr/local/bin/python3
> /usr/local/bin/python3 was not found in the database
> 
> also,
> 
> $ pkg which /usr/local/bin/python3.7
> /usr/local/bin/python3.7 was installed by package python37-3.7.8_1
> 
> python3.7 was never installed specifically on this vm. I imagine it was
> installed as a requirement of py37-certbot which the vm also uses.

Did you try running 'pkg install python3'? /usr/bin/python is clearly
Microsoft's modification while building the image, I can't help
with that, unfortunately. But I ran into missing python3 issue
few days ago and solved it by installing python3 package. It's
jsut a meta package that creates symlinks with only a major version in
the name:


% pkg list python3
/usr/local/bin/2to3-3
/usr/local/bin/idle3
/usr/local/bin/pydoc3
/usr/local/bin/python3
/usr/local/bin/python3-config
/usr/local/libdata/pkgconfig/python3.pc

-- 
gonzo


More information about the freebsd-virtualization mailing list