LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2014, 10:36 PM   #1
ADHDLinux
LQ Newbie
 
Registered: Jun 2014
Distribution: Debian 7 Wheezy
Posts: 20

Rep: Reputation: Disabled
apt-get update Duplicates Issue


So I went to run the simple apt-get update and was prompted with:

Quote:
root@stunt-box:/# apt-get update
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://dl.google.com stable Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://dl.google.com stable Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://dl.google.com stable/main amd64 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy-updates Release.gpg
Hit http://ftp.us.debian.org wheezy Release
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Hit http://ftp.us.debian.org wheezy-updates Release
Hit http://ftp.us.debian.org wheezy/main Sources
Hit ftp://ftp.debian.org stable Release.gpg
Hit ftp://ftp.debian.org stable Release
Hit http://ftp.us.debian.org wheezy/main amd64 Packages
Hit http://ftp.us.debian.org wheezy/main Translation-en
Hit ftp://ftp.debian.org stable/main amd64 Packages
Hit http://ftp.us.debian.org wheezy-updates/main Sources
Get:1 http://ftp.us.debian.org wheezy-updates/main amd64 Packages/DiffIndex [1,333 B]
Hit ftp://ftp.debian.org stable/contrib amd64 Packages
Hit ftp://ftp.debian.org stable/non-free amd64 Packages
Get:2 http://ftp.us.debian.org wheezy-updates/main Translation-en/DiffIndex [781 B]
Hit ftp://ftp.debian.org stable/contrib Translation-en
Hit ftp://ftp.debian.org stable/main Translation-en
Hit ftp://ftp.debian.org stable/non-free Translation-en
Fetched 2,114 B in 4s (527 B/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

Obviously somehow created a duplicate but I don't recall adding any sources recently
Let alone anything resembling this, none the less I figure if a computer does something wrong 99% of the time it's due to user error.

That being said:

What'v I done now?

Last edited by ADHDLinux; 06-11-2014 at 10:57 PM.
 
Old 06-11-2014, 11:24 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
1. Have you tried running apt-get update again as was suggested?
2. Please post the contents of your /etc/apt/sources.list file and your /etc/apt/sources.list.d folder.
jdk
 
Old 06-11-2014, 11:48 PM   #3
ADHDLinux
LQ Newbie
 
Registered: Jun 2014
Distribution: Debian 7 Wheezy
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
1. Have you tried running apt-get update again as was suggested?
2. Please post the contents of your /etc/apt/sources.list file and your /etc/apt/sources.list.d folder.
jdk
Of course I tried to update again and again with the same results.

/etc/apt/Sources.List

Code:
# 

# deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official amd64 NETINST Binary-1 20140426-13:35]/ wheezy main

# deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official amd64 NETINST Binary-1 20140426-13:35]/ wheezy main

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
deb ftp://ftp.debian.org/debian stable main contrib non-free


And



etc/apt/sources.list.d Folder


Code:
drwxr-xr-x 2 root root 4096 Jun 11 00:53 .
drwxr-xr-x 6 root root 4096 Jun 11 00:50 ..
-rw-r--r-- 1 root root  176 Jun 11 00:53 google-chrome.list
-rw-r--r-- 1 root root   55 Jun 11 00:49 google.list
-rw-r--r-- 1 root root    0 Jun  7 01:35 noobslab-themes-wheezy.list
-rw-r--r-- 1 root root   68 Jun  7 01:35 noobslab-themes-wheezy.list.save
Any Ideas?

Last edited by ADHDLinux; 06-11-2014 at 11:51 PM.
 
Old 06-11-2014, 11:57 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Duplicate
Quote:
deb ftp://ftp.debian.org/debian stable main contrib non-free
You should just add contrib nonfree to all of the others, whch would give you 6 entries
 
Old 06-11-2014, 11:59 PM   #5
ADHDLinux
LQ Newbie
 
Registered: Jun 2014
Distribution: Debian 7 Wheezy
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Duplicate
You should just add contrib nonfree to all of the others, whch would give you 6 entries
Come again?
Still a novice, mind breaking that down to more simplistic terms? "all of the others" is a fairly broad statement.

Last edited by ADHDLinux; 06-12-2014 at 12:00 AM.
 
Old 06-12-2014, 12:02 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Should be this
Quote:
deb http://ftp.us.debian.org/debian/ wheezy main contrib nonfree
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib nonfree

deb http://security.debian.org/ wheezy/updates main contrib nonfree
deb-src http://security.debian.org/ wheezy/updates main contrib nonfree

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib nonfree
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib nonfree
At present your stable entry would be fine, but it is the same entry as you first entry.
Even if it didn't complain about it being a duplicate when jessie goes stable you would have broken updates.

Last edited by EDDY1; 06-12-2014 at 12:06 AM.
 
Old 06-12-2014, 12:16 AM   #7
ADHDLinux
LQ Newbie
 
Registered: Jun 2014
Distribution: Debian 7 Wheezy
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Should be this At present your stable entry would be fine, but it is the same entry as you first entry.
Even if it didn't complain about it being a duplicate when jessie goes stable you would have broken updates.
Removed that extra bottom line all together and still received the same error.
 
Old 06-12-2014, 12:49 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Can you post the contents of these two files:
etc/apt/sources.list.d/google-chrome.list
etc/apt/sources.list.d/google.list
jdk
 
Old 06-12-2014, 12:50 AM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
apt-get update
 
Old 06-12-2014, 12:58 AM   #10
ADHDLinux
LQ Newbie
 
Registered: Jun 2014
Distribution: Debian 7 Wheezy
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
Can you post the contents of these two files:
etc/apt/sources.list.d/google-chrome.list
etc/apt/sources.list.d/google.list
jdk

Here goes:

etc/apt/sources.list.d/google-chrome.list

Code:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main

AND


etc/apt/sources.list.d/google.list

Code:
deb http://dl.google.com/linux/chrome/deb/ stable main

So I can gather we've found the duplicates, but how do we know which is delete-able without effecting anything?

Last edited by ADHDLinux; 06-12-2014 at 01:01 AM.
 
Old 06-12-2014, 03:51 AM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by ADHDLinux View Post

So I can gather we've found the duplicates, but how do we know which is delete-able without effecting anything?
I know all and hide nothing. You may delete the google.list file and keep the google-chrome.list
If you're happy please mark this thread as [SOLVED]
jdk

Last edited by jdkaye; 06-12-2014 at 03:52 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chemistry problem: Identify duplicates and non-duplicates within TWO sdf files robertselwyne Programming 5 12-09-2011 07:20 AM
Apt-get update issue. Connection refused (111) Boffy Ubuntu 2 06-03-2010 08:18 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM
apt-get wont update because of duplicates on fedora core 2 unixmad Linux - General 1 10-02-2004 02:22 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 02:27 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration