首先,我按照网站上的说明尝试安装elasticsearch。
https://www.elastic.co/guide/en/kibana/current/deb.html
但是在执行
但在密钥环中,没有elasticsearch-keyring.gpg。
在密钥环中,
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list
之后出现了问题。deb https://artifacts.elastic.co/packages/8.x/apt stable main
但之后,当我尝试执行 $ sudo apt-get update
命令时。
> E: Conflicting values set for option Signed-By regarding source
> https://artifacts.elastic.co/packages/8.x/apt/ stable:
> /usr/share/keyrings/elasticsearch-keyring.gpg != E: The list of
> sources could not be read.
但在密钥环中,没有elasticsearch-keyring.gpg。
在密钥环中,
docker-archive-keyring.gpg
ubuntu-advantage-ros.gpg
ubuntu-advantage-cc-eal.gpg
ubuntu-archive-keyring.gpg
ubuntu-advantage-cis.gpg
ubuntu-archive-removed-keys.gpg
ubuntu-advantage-esm-apps.gpg
ubuntu-cloudimage-keyring.gpg
ubuntu-advantage-esm-infra-trusty.gpg
ubuntu-cloudimage-removed-keys.gpg
ubuntu-advantage-fips.gpg
ubuntu-master-keyring.gpg
我已经将文件sources.list从/usr/share/doc/apt/examples/更改为/etc/apt/以重置列表
我不知道如何重新获取它。现在我无法通过apt安装任何软件包
求救T_T