LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 09: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 09:57 PM.
 
Old 06-11-2014, 10:24 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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, 10: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 10:51 PM.
 
Old 06-11-2014, 10:57 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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, 10: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-11-2014 at 11:00 PM.
 
Old 06-11-2014, 11:02 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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-11-2014 at 11:06 PM.
 
Old 06-11-2014, 11:16 PM   #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-11-2014, 11:49 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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-11-2014, 11:50 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
apt-get update
 
Old 06-11-2014, 11:58 PM   #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 12:01 AM.
 
Old 06-12-2014, 02:51 AM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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 02:52 AM.
 
1 members found this post helpful.
  


Reply



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 06:20 AM
Apt-get update issue. Connection refused (111) Boffy Ubuntu 2 06-03-2010 07:18 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
apt-get wont update because of duplicates on fedora core 2 unixmad Linux - General 1 10-02-2004 01:22 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 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
Open Source Consulting | Domain Registration