我错误地安装了elasticsearch
$sudo apt-get install -y elasticsearch
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/6.x/apt/ stable/main amd64 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_6.x_apt_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/6.x/apt/ stable/main amd64 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_6.x_apt_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/6.x/apt/ stable/main i386 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_6.x_apt_dists_stable_main_binary-i386_Packages)
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/6.x/apt/ stable/main i386 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_6.x_apt_dists_stable_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (1)
知道如何修复???