首页 文章

关于在我当地的ubuntu 17.10机器上安装jenkins

提问于
浏览
1

我正在尝试在本地安装jenkins我尝试以下步骤: -

1)wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
2)echo deb https://pkg.jenkins.io/debian-stable binary / | sudo tee /etc/apt/sources.list.d/jenkins.list
3)sudo apt-get update

然后我得到这个错误: -
E:列表文件/etc/apt/sources.list.d/elastic- 5.4.1.list(Suite)中的格式错误的条目1
E:无法读取来源列表 .

我尝试更改此文件的模式,但我不能这样做 . 这只是可读文件 .

在elastic-5.4.1.list中我发现了这个: -
deb https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch- 5.4.1.deb

1 回答

  • 0

    您的elasticsearch apt源文件( elastic-5.4.1.list )不正确 . 它必须具有以下格式:

    deb https://artifacts.elastic.co/packages/6.x/apt stable main
    

    修复该行后,请确保更新apt存储库:

    apt-get update
    

    有关详细信息,请参阅文档:https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html

相关问题