Date: Thu, 13 Aug 2020 22:09:42 -0700 From: Oleksandr Tymoshenko <gonzo@bluezbox.com> To: freebsd-virtualization@freebsd.org Subject: Re: azure-agent problems Message-ID: <20200814050942.GA76439@bluezbox.com> In-Reply-To: <20200814032023.GF72347@bastion.zyxst.net> References: <20200813024653.GC72347@bastion.zyxst.net> <20200814024741.GA75341@bluezbox.com> <20200814032023.GF72347@bastion.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
tech-lists (tech-lists@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200814050942.GA76439>