# This is the error im getting with $ sudo apt-get update

**URL:** https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634
**Category:** Logstash
**Created:** [March 30, 2017, 8:59am UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634 "2017-03-30T08:59:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [March 30, 2017, 8:59am UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634/1 "2017-03-30T08:59:14Z")

</div>

W: Duplicate sources.list entry [http://packages.elastic.co/logstash/2.2/debian/](http://packages.elastic.co/logstash/2.2/debian/) stable/main i386 Packages (/var/lib/apt/lists/packages.elastic.co\_logstash\_2.2\_debian\_dists\_stable\_main\_binary-i386\_Packages)  
W: Duplicate sources.list entry [http://packages.elastic.co/kibana/4.4/debian/](http://packages.elastic.co/kibana/4.4/debian/) stable/main amd64 Packages (/var/lib/apt/lists/packages.elastic.co\_kibana\_4.4\_debian\_dists\_stable\_main\_binary-amd64\_Packages)  
W: Duplicate sources.list entry [http://packages.elastic.co/kibana/4.4/debian/](http://packages.elastic.co/kibana/4.4/debian/) stable/main amd64 Packages (/var/lib/apt/lists/packages.elastic.co\_kibana\_4.4\_debian\_dists\_stable\_main\_binary-amd64\_Packages)  
W: Duplicate sources.list entry [http://packages.elastic.co/kibana/4.4/debian/](http://packages.elastic.co/kibana/4.4/debian/) stable/main amd64 Packages (/var/lib/apt/lists/packages.elastic.co\_kibana\_4.4\_debian\_dists\_stable\_main\_binary-amd64\_Packages)  
W: Duplicate sources.list entry [http://packages.elastic.co/kibana/4.4/debian/](http://packages.elastic.co/kibana/4.4/debian/) stable/main i386 Packages (/var/lib/apt/lists/packages.elastic.co\_kibana\_4.4\_debian\_dists\_stable\_main\_binary-i386\_Packages)  
W: Duplicate sources.list entry [http://packages.elastic.co/kibana/4.4/debian/](http://packages.elastic.co/kibana/4.4/debian/) stable/main i386 Packages (/var/lib/apt/lists/packages.elastic.co\_kibana\_4.4\_debian\_dists\_stable\_main\_binary-i386\_Packages)  
W: Duplicate sources.list entry [http://packages.elastic.co/kibana/4.4/debian/](http://packages.elastic.co/kibana/4.4/debian/) stable/main i386 Packages (/var/lib/apt/lists/packages.elastic.co\_kibana\_4.4\_debian\_dists\_stable\_main\_binary-i386\_Packages)  
W: You may want to run apt-get update to correct these problems

---

<div class="post-metadata">

### Author: ![rayl7786](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rayl7786](https://discuss.elastic.co/u/rayl7786)
#### Post date: [March 30, 2017, 1:32pm UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634/2 "2017-03-30T13:32:01Z")

</div>

You will need to check either the original /etc/apt/sources.list or in the directory /etc/apt/sources.list.d/ for any duplicate lines. I have seen this happen if you are installing from a script that adds this entry and you have run the script more than once.

---

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [March 31, 2017, 6:32am UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634/3 "2017-03-31T06:32:08Z")

</div>

sorry i can't get you ,can you please explain it in detail.by the way i have this following files

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/5/0543586311d2f85d221cfa0a13b8b516afc16e01.png)

---

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [March 31, 2017, 7:01am UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634/4 "2017-03-31T07:01:46Z")

</div>

In source.list.d i have the following lines

## Note, this file is written by cloud-init on first boot of an instance

## modifications made here will not survive a re-bundle.

## if you wish to make changes you can:

## a.) add 'apt\_preserve\_sources\_list: true' to /etc/cloud/cloud.cfg

## or do the same in user-data

## b.) add sources in /etc/apt/sources.list.d

## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# 

# See [http://help.ubuntu.com/community/UpgradeNotes](http://help.ubuntu.com/community/UpgradeNotes) for how to upgrade to

# newer versions of the distribution.

deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty main restricted  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty main restricted

## Major bug fix updates produced after the final release of the

## distribution.

deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-updates main restricted  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team. Also, please note that software in universe WILL NOT receive any

## review or updates from the Ubuntu security team.

deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty universe  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty universe  
deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-updates universe  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team, and may not be under a free licence. Please satisfy yourself as to

## your rights to use the software. Also, please note that software in

## multiverse WILL NOT receive any review or updates from the Ubuntu

## security team.

deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty multiverse  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty multiverse  
deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-updates multiverse  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'

## repository.

## N.B. software from this repository may not have been tested as

## extensively as that contained in the main release, although it includes

## newer versions of some applications which may provide useful features.

## Also, please note that software in backports WILL NOT receive any review

## or updates from the Ubuntu security team.

deb [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-backports main restricted universe multiverse  
deb-src [http://mirrors.digitalocean.com/ubuntu](http://mirrors.digitalocean.com/ubuntu) trusty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's

## 'partner' repository.

## This software is not part of Ubuntu, but is offered by Canonical and the

## respective vendors as a service to Ubuntu users.

# deb [http://archive.canonical.com/ubuntu](http://archive.canonical.com/ubuntu) trusty partner

# deb-src [http://archive.canonical.com/ubuntu](http://archive.canonical.com/ubuntu) trusty partner

deb [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) trusty-security main  
deb-src [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) trusty-security main  
deb [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) trusty-security universe  
deb-src [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) trusty-security universe

# deb [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) trusty-security multiverse

# deb-src [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) trusty-security multiverse

deb [http://packages.elastic.co/logstash/2.3/debian](http://packages.elastic.co/logstash/2.3/debian) stable main

---

<div class="post-metadata">

### Author: ![rayl7786](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rayl7786](https://discuss.elastic.co/u/rayl7786)
#### Post date: [March 31, 2017, 12:16pm UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634/5 "2017-03-31T12:16:29Z")

</div>

> [@Jonesthomas](#):
>
> deb [http://packages.elastic.co/logstash/2.3/debian](http://packages.elastic.co/logstash/2.3/debian) stable main

I would replace the line above with:

> [@](#):
>
> deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main

Save the file and then run:

> [@](#):
>
> $ sudo apt-get update

---

<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: [April 28, 2017, 12:16pm UTC](https://discuss.elastic.co/t/this-is-the-error-im-getting-with-sudo-apt-get-update/80634/6 "2017-04-28T12:16:49Z")

</div>

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