LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get update Duplicates Issue (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-update-duplicates-issue-4175507791/)

ADHDLinux 06-11-2014 09:36 PM

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?

jdkaye 06-11-2014 10:24 PM

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

ADHDLinux 06-11-2014 10:48 PM

Quote:

Originally Posted by jdkaye (Post 5186721)
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?

EDDY1 06-11-2014 10:57 PM

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

ADHDLinux 06-11-2014 10:59 PM

Quote:

Originally Posted by EDDY1 (Post 5186738)
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.

EDDY1 06-11-2014 11:02 PM

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.

ADHDLinux 06-11-2014 11:16 PM

Quote:

Originally Posted by EDDY1 (Post 5186740)
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.

jdkaye 06-11-2014 11:49 PM

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

EDDY1 06-11-2014 11:50 PM

apt-get update

ADHDLinux 06-11-2014 11:58 PM

Quote:

Originally Posted by jdkaye (Post 5186764)
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?

jdkaye 06-12-2014 02:51 AM

Quote:

Originally Posted by ADHDLinux (Post 5186770)

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


All times are GMT -5. The time now is 10:17 AM.