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

W: Duplicate sources.list entry 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/ 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/ 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/ 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/ 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/ 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/ 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

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.

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

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 for how to upgrade to

newer versions of the distribution.

deb http://mirrors.digitalocean.com/ubuntu trusty main restricted
deb-src 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 trusty-updates main restricted
deb-src 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 trusty universe
deb-src http://mirrors.digitalocean.com/ubuntu trusty universe
deb http://mirrors.digitalocean.com/ubuntu trusty-updates universe
deb-src 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 trusty multiverse
deb-src http://mirrors.digitalocean.com/ubuntu trusty multiverse
deb http://mirrors.digitalocean.com/ubuntu trusty-updates multiverse
deb-src 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 trusty-backports main restricted universe multiverse
deb-src 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 trusty partner

deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://security.ubuntu.com/ubuntu trusty-security main
deb-src http://security.ubuntu.com/ubuntu trusty-security main
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe

deb http://security.ubuntu.com/ubuntu trusty-security multiverse

deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

deb http://packages.elastic.co/logstash/2.3/debian stable main

I would replace the line above with:

Save the file and then run:

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