I'm trying to install Ambari from Apache BigTop repo, but I'm getting error regarding python dependency:
vagrant@vagrant:~$ sudo apt install ambari\*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ambari-server' for glob 'ambari*'
Note, selecting 'ambari-agent' for glob 'ambari*'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ambari-agent : Depends: python (>= 2.6) but it is not installable
ambari-server : Depends: python (>= 2.6) but it is not installable
E: Unable to correct problems, you have held broken packages.
Checking python:
vagrant@vagrant:~$ python --version
Python 2.7.18
vagrant@vagrant:~$ apt-cache policy python
python:
Installed: (none)
Candidate: (none)
Version table:
vagrant@vagrant:~$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
---------------------------------------------
0 /usr/bin/python3 2 auto mode
* 1 /usr/bin/python2 1 manual mode
2 /usr/bin/python3 2 manual mode
vagrant@vagrant:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
What am I doing wrong?
Thanks!