我试图从安装Ambari,但在BigTop依赖关系方面出现了错误:
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.检查python:
vagrant@vagrant:~$ python --version
Python 2.7.18vagrant@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 modevagrant@vagrant:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy我做错了什么?
谢谢!
发布于 2023-04-28 12:38:36
我在Ubuntu22.04上部署由Bigtop (3.2.0)打包的Ambari (2.7.5)也有同样的问题。问题是Ubuntu22.04没有python (>= 2.6.0)包。您必须在python2 (>= 2.7)包中使用。若要更改此包,请在Bigtop项目中打开文件bigtop-packages/src/deb/ambari/control文件,并将python (>= 2.6.0)更改为python2 (>= 2.7)。这也必须在bigtop-ambari-mpack项目中完成。在此之后,重新构建包并在测试新部署之前重新打包它们。请记住,2.6到2.7版本之间的python不兼容可能会出现问题。我还没有测试过这个问题。
新的control文件将如下所示:
Source: ambari
Section: misc
Priority: extra
Maintainer: Bigtop
Build-Depends: debhelper (>= 6)
Standards-Version: 3.8.0
Homepage: http://ambari.apache.org/
Package: ambari-server
Architecture: all
Depends: openssl, postgresql (>= 8.1), python2 (>= 2.7), curl
Description: Ambari Server
Package: ambari-agent
Architecture: all
Depends: openssl, python2 (>= 2.7), curl
Description: Ambari Agent 也许答案已经迟了。但我希望这能帮助其他人解决这个问题。
https://askubuntu.com/questions/1455878
复制相似问题