首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache Ambari安装问题

Apache Ambari安装问题
EN

Ask Ubuntu用户
提问于 2023-02-20 19:14:40
回答 1查看 211关注 0票数 0

我试图从安装Ambari,但在BigTop依赖关系方面出现了错误:

代码语言:javascript
复制
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:

代码语言:javascript
复制
vagrant@vagrant:~$ python --version
Python 2.7.18
代码语言:javascript
复制
vagrant@vagrant:~$ apt-cache policy python
python:
  Installed: (none)
  Candidate: (none)
  Version table:
代码语言:javascript
复制
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
代码语言:javascript
复制
vagrant@vagrant:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

我做错了什么?

谢谢!

EN

回答 1

Ask Ubuntu用户

发布于 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.62.7版本之间的python不兼容可能会出现问题。我还没有测试过这个问题。

新的control文件将如下所示:

代码语言:javascript
复制
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 

也许答案已经迟了。但我希望这能帮助其他人解决这个问题。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1455878

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档