Ubuntu 服务器无法安装 Elasticsearch 无法找到包

Ubuntu 服务器无法安装 Elasticsearch 无法找到包

我正在尝试按照以下说明安装 elasticsearchhttps://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html安装在运行 ubuntu server 18.04.5 的笔记本电脑上

conor@dev:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic
conor@dev:~$ lscpu
Architecture:        i686
CPU op-mode(s):      32-bit
Byte Order:          Little Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  2
Core(s) per socket:  1
Socket(s):           1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               28
Model name:          Intel(R) Atom(TM) CPU N270   @ 1.60GHz
Stepping:            2
CPU MHz:             844.956
CPU max MHz:         1600.0000
CPU min MHz:         800.0000
BogoMIPS:            3199.76
L1d cache:           24K
L1i cache:           32K
L2 cache:            512K
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe lahf_lm dtherm

我已经列出了我运行过的命令及其输出,但我很难弄清楚为什么它找不到 elasticsearch 包。

导入密钥

conor@dev:~$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
OK

从 APT 存储库安装

conor@dev:~$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.6.12ubuntu0.1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
conor@dev:~$ echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
deb https://artifacts.elastic.co/packages/7.x/apt stable main
conor@dev:~$ sudo apt-get update && sudo apt-get install elasticsearch
Hit:1 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease                                         
Hit:3 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                      
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                                         
Hit:5 https://artifacts.elastic.co/packages/7.x/apt stable InRelease                                                                
Reading package lists... Done                                                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package elasticsearch

相关内容