sudo apt-get update引发了我的错误
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Reading package lists... Done
W: Duplicate sources.list entry http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main amd64 Packages (/var/lib/apt/lists/apt.postgresql.org_pub_repos_apt_dists_trusty-pgdg_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main i386 Packages (/var/lib/apt/lists/apt.postgresql.org_pub_repos_apt_dists_trusty-pgdg_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
miravm@ubuntu:/var/lib/apt/lists$
我相信这与postgres有关。我该如何解决这个问题?
答案 0 :(得分:1)
运行以下命令:
sudo apt edit-sources
你有sources.list打开删除
http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main amd64 Packages
如果您有32位系统
或
http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main i386 Packages
如果您有64位系统