LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-22-2015, 04:14 PM   #1
jkrobbins
LQ Newbie
 
Registered: Sep 2015
Posts: 22

Rep: Reputation: Disabled
Duplicate sources.list entry


Hi

When I run apt-get update I receive this warning message:
W: Duplicate sources.list entry http://repository.spotify.com/ stable/non-free amd64 Packages (/var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repository.spotify.com/ stable/non-free i386 Packages (/var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

I ran apt-get update agen but it did not help. I also ran /etc/apt/sources.list.d/

ls /etc/apt/sources.list.d/:

cat /etc/apt/sources.list.d/

cat /etc/apt/sources.list.d/spotify

but can not get a list of Duplicate sources is there a command that will work. I am running xubuntu 15.04 if that makes a difference. I trid y ppa manager to see it was a ppa problem but no Duplicates there. I do not see a problem in the system but spotify does not work. Thanks
 
Old 10-22-2015, 04:19 PM   #2
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 your /etc/apt/sources.list file.
jdk
 
Old 10-22-2015, 04:27 PM   #3
jkrobbins
LQ Newbie
 
Registered: Sep 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
This is what I get on all command lines so far sudo: /etc/apt/sources.list: command not found
 
Old 10-22-2015, 06:51 PM   #4
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 810

Rep: Reputation: 264Reputation: 264Reputation: 264
Quote:
Originally Posted by jkrobbins View Post
This is what I get on all command lines so far sudo: /etc/apt/sources.list: command not found
What did you type? "sudo /etc/apt/sources.list"? That won't do it. You just tried to execute a text file.

You want to see the contents of the file. Use the "cat" command. This reads the contents of the file and prints them to the screen.
Code:
cat /etc/apt/sources.list
 
Old 10-22-2015, 07:02 PM   #5
jkrobbins
LQ Newbie
 
Registered: Sep 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
I typed (sudo /etc/apt/sources.list file.jdk). And this is what I get with (sudo cat /etc/apt/sources.list)

## Also, please note that software in backports WILL NOT receive any review
# deb cdrom:[Xubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422.1)]/ vivid main multiverse restricted universe
# deb http://archive.canonical.com/ubuntu vivid partner
deb http://repository.spotify.com stable non-free
deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb http://us.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ vivid main restricted
deb http://us.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ vivid universe
deb http://us.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ vivid-updates universe
# deb-src http://archive.canonical.com/ubuntu vivid partner
deb-src http://repository.spotify.com stable non-free
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ vivid-updates universe
## distribution.
## extensively as that contained in the main release, although it includes
## Major bug fix updates produced after the final release of the
## multiverse WILL NOT receive any review or updates from the Ubuntu
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## N.B. software from this repository may not have been tested as
## newer versions of some applications which may provide useful features.
# newer versions of the distribution.
## or updates from the Ubuntu security team.
## 'partner' repository.
## respective vendors as a service to Ubuntu users.
## review or updates from the Ubuntu security team.
## security team.
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
## team. Also, please note that software in universe WILL NOT receive any
## team, and may not be under a free licence. Please satisfy yourself as to
## This software is not part of Ubuntu, but is offered by Canonical and the
## Uncomment the following two lines to add software from Canonical's
## your rights to use the software. Also, please note that software in

maybe this will help.Thanks
 
Old 10-23-2015, 01:14 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Good. Now you can run this command from a terminal and post the output:
Code:
ls /etc/apt/sources.list.d/
jdk
 
Old 10-23-2015, 01:22 AM   #7
jkrobbins
LQ Newbie
 
Registered: Sep 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
Line (sudo ls /etc/apt/sources.list.d/)

appgrid-ubuntu-stable-vivid.list google-earth.list paolorotolo-ubuntu-android-studio-vivid.list.save ubuntu-wine-ubuntu-ppa-vivid.list webupd8team-ubuntu-y-ppa-manager-vivid.list.save
google-chrome.list google-earth.list.save spotify.list ubuntu-wine-ubuntu-ppa-vivid.list.save xorg-edgers-ubuntu-ppa-vivid.list
google-chrome.list.save paolorotolo-ubuntu-android-studio-vivid.list spotify.list.save webupd8team-ubuntu-y-ppa-manager-vivid.list xorg-edgers-ubuntu-ppa-vivid.list.save

Thanks whats next?
 
Old 10-23-2015, 12:45 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I notice you have spotify repos listed in both sources.list and in the sources.list.d folder. Try commenting out the spotify repos in your sources.list file. Just put a hash sign "#" in front of the lines with the spotify repository as shown below.
Code:
deb http://repository.spotify.com stable non-free
This is what you have now. Change the line to this:
Code:
# deb http://repository.spotify.com stable non-free
Remember you have to edit the sources.list file as root or by using sudo. See if this makes the warning messages go away.
jdk

Last edited by jdkaye; 10-23-2015 at 12:47 PM.
 
Old 10-23-2015, 04:59 PM   #9
jkrobbins
LQ Newbie
 
Registered: Sep 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
Ok how and where do I go to edit this?
 
Old 10-23-2015, 06:48 PM   #10
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 810

Rep: Reputation: 264Reputation: 264Reputation: 264
You just edit it with any text editor. It's just a plain text file.

Note that you should prefix the command with "sudo" so that it gets run as root and that it has permission to actually write to the file

Code:
sudo leafpad /etc/apt/sources.list
sudo gedit /etc/apt/sources.list
sudo nano /etc/apt/sources.list
 
Old 10-23-2015, 10:58 PM   #11
jkrobbins
LQ Newbie
 
Registered: Sep 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks to all of you for all the help! Thanks
 
  


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
Cannot update files Mint 17.1 (Wrong sources.list entry or malformed file) fbr Linux Mint 5 06-08-2015 08:28 AM
Aptitude update ghost entry in sources.list userzero Debian 4 05-27-2013 05:37 AM
[SOLVED] Duplicate sources.list entry Sli Debian 1 11-05-2012 10:39 AM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
sources.list entry format for suse 9.2.9 repository TomF SUSE / openSUSE 4 04-06-2005 05:49 PM


All times are GMT -5. The time now is 06:47 PM.

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