# Multiple configurations (ubuntu 14.04 using apt-get)

**URL:** https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866
**Category:** Elasticsearch
**Created:** [March 31, 2017, 7:25pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866 "2017-03-31T19:25:18Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![ipl2004](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@ipl2004](https://discuss.elastic.co/u/ipl2004)
#### Post date: [March 31, 2017, 7:25pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/1 "2017-03-31T19:25:18Z")

</div>

apt-get update is giving me the following warnings. should I be concerned?

W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2

apt-get clean does not resolve the issue.

Ian

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [March 31, 2017, 7:47pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/2 "2017-03-31T19:47:36Z")

</div>

Do you happen to have the elasticsearch apt repository set up in both `/etc/apt/sources.list` and `/etc/apt/sources.list.d`?

---

<div class="post-metadata">

### Author: ![ipl2004](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@ipl2004](https://discuss.elastic.co/u/ipl2004)
#### Post date: [March 31, 2017, 7:54pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/3 "2017-03-31T19:54:13Z")

</div>

Hi Nik  
I just checked

:/etc/apt$ ls -l  
total 48  
drwxr-xr-x 2 root root 4096 Mar 30 04:03 apt.conf.d  
drwxr-xr-x 2 root root 4096 Apr 14 2016 preferences.d  
**-rw-rw-r-- 1 root root 3024 Feb 26 10:36 sources.list**  
drwxr-xr-x 2 root root 4096 Mar 30 17:28 sources.list.d  
-rw-r--r-- 1 root root 13483 Feb 28 09:14 trusted.gpg  
-rw-r--r-- 1 root root 12255 Feb 15 14:20 trusted.gpg~  
drwxr-xr-x 2 root root 4096 Apr 14 2016 trusted.gpg.d  
ian@ian-OptiPlex-790:/etc/apt$

/etc/apt/sources.list.d$ ls -l  
total 16  
-rw-r--r-- 1 root root 124 Mar 31 08:16 elastic-5.x.list  
-rw-r--r-- 1 root root 68 Feb 28 09:15 elasticsearch-2.x.list  
-rw-r--r-- 1 root root 61 Feb 28 09:35 kibana-4.4.x.list  
-rw-r--r-- 1 root root 63 Feb 28 09:56 logstash-2.2.x.list

I think i'm good on that one

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [April 1, 2017, 4:58pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/4 "2017-04-01T16:58:25Z")

</div>

In that case I'm really not sure what is up! I'm not really an expert on apt though.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [April 1, 2017, 7:14pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/5 "2017-04-01T19:14:43Z")

</div>

Can you please share the output of:

```auto
$ cat -n /etc/apt/sources.list | sed '52q;d'

```

and

```auto
$ cat /etc/sources.list.d/elastic-5.x

```

---

<div class="post-metadata">

### Author: ![ipl2004](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@ipl2004](https://discuss.elastic.co/u/ipl2004)
#### Post date: [April 2, 2017, 5:29pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/6 "2017-04-02T17:29:14Z")

</div>

cat -n /etc/apt/sources.list | sed '52q;d'  
52 deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list

$ cat /etc/sources.list.d/elastic-5.x  
cat: /etc/sources.list.d/elastic-5.x: No such file or directory

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [April 2, 2017, 5:57pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/7 "2017-04-02T17:57:39Z")

</div>

Sorry, I meant:

```auto
$ cat /etc/sources.list.d/elastic-5.x.list

```

Anyway, it looks me that you likely indeed have a duplicate definition.

---

<div class="post-metadata">

### Author: ![ipl2004](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@ipl2004](https://discuss.elastic.co/u/ipl2004)
#### Post date: [April 3, 2017, 4:24pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/8 "2017-04-03T16:24:06Z")

</div>

Hi  
I did a $sudo apt-get remove --purge elasticsearch then for Logstash and Kibana in an attempt to do a clean re-installation however I am still getting warnings when I do a do an update.

Any ideas how I can completely remove the ELK from my system?

All packages are up to date.  
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Translations (main/i18n/Translation-en\_US) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Translations (main/i18n/Translation-en\_US) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: [http://packages.elastic.co/kibana/4.4/debian/dists/stable/Release.gpg:](http://packages.elastic.co/kibana/4.4/debian/dists/stable/Release.gpg:) Signature by key 46095ACC8548582C1A2699A9D27D666CD88E42B4 uses weak digest algorithm (SHA1)  
W: [http://packages.elastic.co/logstash/2.2/debian/dists/stable/Release.gpg:](http://packages.elastic.co/logstash/2.2/debian/dists/stable/Release.gpg:) Signature by key 46095ACC8548582C1A2699A9D27D666CD88E42B4 uses weak digest algorithm (SHA1)  
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Translations (main/i18n/Translation-en\_US) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:1  
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Translations (main/i18n/Translation-en\_US) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2  
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/elastic-5.x.list:2

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [April 3, 2017, 4:28pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/9 "2017-04-03T16:28:35Z")

</div>

I think that you should remove the duplicate definition from your sources (for example, remove the entry in `/etc/apt/sources.list`).

---

<div class="post-metadata">

### Author: ![ipl2004](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@ipl2004](https://discuss.elastic.co/u/ipl2004)
#### Post date: [April 3, 2017, 5:29pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/10 "2017-04-03T17:29:04Z")

</div>

Ah ha! the error is from the;

echo "deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list

apt update was clean with no warning until I re-installed Logstash. Am I being a complete novice on this issue?

All packages are up to date.  
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-5.x.list:1 and /etc/apt/sources.list.d/elastic-5.x.list:2

Ian

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [April 3, 2017, 6:53pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/11 "2017-04-03T18:53:05Z")

</div>

Do you have the source defined multiple times in `/etc/apt/sources.list.d/elastic-5.x.list` now? It seems that you do. You can remove the second offending line.

---

<div class="post-metadata">

### Author: ![ipl2004](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@ipl2004](https://discuss.elastic.co/u/ipl2004)
#### Post date: [April 3, 2017, 6:55pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/12 "2017-04-03T18:55:13Z")

</div>

Hi Jason, yes indeed. I removed the offending line and all seems to be working as intended.  
Many thanks

Ian

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [April 3, 2017, 10:05pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/13 "2017-04-03T22:05:32Z")

</div>

You're welcome.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 1, 2017, 10:05pm UTC](https://discuss.elastic.co/t/multiple-configurations-ubuntu-14-04-using-apt-get/80866/14 "2017-05-01T22:05:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
