用托盘添加apt repo

时间:2014-05-18 17:54:14

标签: elasticsearch apt pallet

我试图将elasticsearch debian repo添加到服务器规范中。我有这个功能

(defn add-es-source []
  (package-source "elasticsearch"
  :aptitude {:url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
             :scopes ["stable" "main"]}))

将以下内容添加到/etc/apt/sources.list.d/elasticsearch.list

deb http://packages.elasticsearch.org/elasticsearch/1.0/debian raring stable main

然而raring特定的回购不存在所以当更新apt repos时我得到404s。如何停止使用package-source添加此版本名称?

1 个答案:

答案 0 :(得分:0)

答案只是释放键的空字符串。

(defn add-es-source []
  (package-source "elasticsearch"
    :aptitude
    {:url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
     :release ""
     :key-url "http://packages.elasticsearch.org/GPG-KEY-elasticsearch"
     :scopes ["stable" "main"]}))

请注意,我还添加了key-url。