0

I am getting error when i use sudo apt-get update command

Get:58 http://us.archive.ubuntu.com wily-backports/multiverse Translation-en [28 B]
Get:59 http://us.archive.ubuntu.com wily-backports/restricted Translation-en [28 B]
Get:60 http://us.archive.ubuntu.com wily-backports/universe Translation-en [1,390 B]
Fetched 32.5 MB in 23s (1,379 kB/s)                                            
Reading package lists... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

I am not familiar with Ubuntu if any one know how to solve please help me

I'm using 64bit-Ubuntu (15.10) ;

This is my source list look like:

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu wily partner
deb-src http://archive.canonical.com/ubuntu wily partner

###### Ubuntu Extras Repo
#deb http://extras.ubuntu.com/ubuntu wily main
#deb-src http://extras.ubuntu.com/ubuntu wily main

2 Answers2

3

Look at your /etc/sources.list (or the files in /etc/sources.list.d) and remove or fix those lines that cause the error.

This answer should help.

How can I fix a 404 Error when using a PPA or updating my package lists?

Hizqeel
  • 1,915
  • 28
  • 24
  • 24
3

This happens a lot when installing Chrome via the Google repository. The reason for this is that most people add the source manually as a lot of websites do suggest is.

Problem with this is that after installing Chrome it automatically adds and configures /etc/apt/sources.list.d/google-chrome.list causing a duplicate.

The fix is simply removing the manual repository you added and the problem should be gone. I would recommend checking /etc/apt/sources.list.d/ for the second duplicate. In my case the file was called google.list.

muru
  • 207,228
Serrie
  • 343
  • 2
  • 7