【问题标题】:Error installing Elasticsearch 7 - Failed dependencies安装 Elasticsearch 7 时出错 - 依赖项失败
【发布时间】:2019-09-09 20:33:05
【问题描述】:

我目前在我的专用服务器上安装了 Elasticsearch 6。我想升级到 Elasticsearch 7。我正在使用“手动下载并安装 RPM”方法。这是解释这些步骤的链接:

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

这是我的终端步骤:

[root@server ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm
--2019-04-18 17:19:20--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm
Resolving artifacts.elastic.co (artifacts.elastic.co)... 2a04:4e42:2e::734, 151.101.198.222
Connecting to artifacts.elastic.co (artifacts.elastic.co)|2a04:4e42:2e::734|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 346827255 (331M) [application/octet-stream]
Saving to: ‘elasticsearch-7.0.0-x86_64.rpm’

100%[=============================================================================================================================================>] 346,827,255  106MB/s   in 3.3s   

2019-04-18 17:19:43 (102 MB/s) - ‘elasticsearch-7.0.0-x86_64.rpm’ saved [346827255/346827255]

[root@server ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm.sha512
--2019-04-18 17:20:01--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm.sha512
Resolving artifacts.elastic.co (artifacts.elastic.co)... 2a04:4e42:2e::734, 151.101.198.222
Connecting to artifacts.elastic.co (artifacts.elastic.co)|2a04:4e42:2e::734|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160 [application/octet-stream]
Saving to: ‘elasticsearch-7.0.0-x86_64.rpm.sha512’

100%[=============================================================================================================================================>] 160         --.-K/s   in 0s      

2019-04-18 17:20:01 (22.7 MB/s) - ‘elasticsearch-7.0.0-x86_64.rpm.sha512’ saved [160/160]

[root@server ~]# shasum -a 512 -c elasticsearch-7.0.0-x86_64.rpm.sha512
elasticsearch-7.0.0-x86_64.rpm: OK
[root@server ~]# sudo rpm --install elasticsearch-7.0.0-x86_64.rpm
warning: elasticsearch-7.0.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
error: Failed dependencies:
    elasticsearch < 7.0.0 is obsoleted by elasticsearch-0:7.0.0-1.x86_64

这是我的服务器规格:

Centos:7.6

Java: openjdk 版本“1.8.0_201” OpenJDK 运行时环境(内部版本 1.8.0_201-b09) OpenJDK 64 位服务器 VM(内部版本 25.201-b09,混合模式)

【问题讨论】:

    标签: elasticsearch centos installation


    【解决方案1】:

    您之前是否添加了 RPM 存储库?我不确定obsoleted by elasticsearch-0:7.0.0-1.x86_64 还会从哪里来。

    如果是这样,我会清理缓存目录,获取所有可用版本,然后安装所需的版本:

    yum clean all
    yum --showduplicate list elasticsearch
    yum install elasticsearch-0:7.0.0-1.x86_64
    

    【讨论】:

    • 感谢您提供的信息。当我运行三个终端命令时,前两个运行没有问题,但我得到了第三个:没有包 elasticsearch-0:7.0.0-1.x86_64 可用。错误:无事可做
    • 在根目录下我确实有以下文件:elasticsearch-7.0.0-x86_64.rpm
    • 抱歉忘了回答您的问题,是的,RPM 是为 Elasticsearch 6 添加的,并且已经运行了一年多。
    • 第三行有点疯狂。使用上一行为您提供的任何内容。使用包 repo,您​​不必手动下载 RPM
    • 非常感谢。这完美地安装了 Elasticsearch 7:yum install elasticsearch-7.0.0-x86_64.rpm
    猜你喜欢
    • 1970-01-01
    • 2021-11-08
    • 1970-01-01
    • 2020-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-17
    • 1970-01-01
    相关资源
    最近更新 更多