[15:45] <Nick76> Hi All, I was installed Ubuntu 22.04.3 LTS and checking which version of python is installed, I see python2 and python3 are installed. can some one help me to understand.
[16:04] <dbungert> Nick76: checkout `py3versions -i` and `pyversions -i`.  or `dpkg -l 'python*-minimal'|grep ^ii`
[16:24] <Nick76> for the command $ 'py3versions -i' output python3.10,  for `pyversions -i` output command 'pyversions' not found , but can be installed with: sudo apt install python2. for `dpkg -l 'python*-minimal'|grep ^ii` the output ii python3-minimal 3.10.6-1~22.04 amd64  minimal subset of the python language (default python3 version). ii python3.10-minimal
[16:24] <Nick76> 3.10.12-1~22.04.3 amd64  minimal subset of the python language (version 3.10).
[16:41] <Nick76> Hello dbungert : thank you and here is the output, for the command $ 'py3versions -i' output python3.10,  for `pyversions -i` output command 'pyversions' not found , but can be installed with: sudo apt install python2. for `dpkg -l 'python*-minimal'|grep ^ii` the output ii python3-minimal 3.10.6-1~22.04 amd64  minimal subset of the python language
[16:41] <Nick76> (default python3 version). ii python3.10-minimal 3.10.12-1~22.04.3 amd64  minimal subset of the python language (version 3.10).
[17:39] <frickler> Nick76: so according to that output, only python3 is installed, where did you see python2?
[17:56] <Nick76> Hello frickler : thank you and when I scan security vulnerability I found out "libpython2.7-minimal_2.7.18-13ubuntu1.1", python2.7.18-3,  are vulnerable and I run this command 'apt list python2 -a" output python2/jammy, now 2.7.18-3 amd64 (installed)  and python2/jammy 2.7.18-3 i386.