我正在尝试在我的服务器中安装ImageMagick库。但它给了我一个错误。它说
Reading package lists... Error! W: Duplicate sources.list entry
http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_13.10/
./ Packages
(/var/lib/apt/lists/download.opensuse.org_repositories_home:_sarimkhan_xUbuntu%5f13.10_._Packages)
W: Duplicate sources.list entry
http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_13.04/
./ Packages
(/var/lib/apt/lists/download.opensuse.org_repositories_home:_sarimkhan_xUbuntu%5f13.04_._Packages)
E: Encountered a section with no Package: header E: Problem with
MergeList
/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy-updates_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
我真的很困惑。我现在应该怎么做。提前谢谢。
答案 0 :(得分:1)
长期成功的故事: apt - How to fix Duplicate sources.list entry? - Ask Ubuntu
长话短说:
在收藏夹编辑器中打开/etc/apt/sources.list,找到包含存储库的重复行并删除重复项。然后重复ImageMagick安装过程。
答案 1 :(得分:1)
我使用以下方法解决了这个问题:
sudo aptitude update
然后运行:
sudo apt-get install imagemagick