LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Duplicate sources.list entry (https://www.linuxquestions.org/questions/linux-newbie-8/duplicate-sources-list-entry-4175556904/)

jkrobbins 10-22-2015 03:14 PM

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

jdkaye 10-22-2015 03:19 PM

Can you post the contents of your /etc/apt/sources.list file.
jdk

jkrobbins 10-22-2015 03:27 PM

This is what I get on all command lines so far sudo: /etc/apt/sources.list: command not found

maples 10-22-2015 05:51 PM

Quote:

Originally Posted by jkrobbins (Post 5438708)
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

jkrobbins 10-22-2015 06:02 PM

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

jdkaye 10-23-2015 12:14 AM

Good. Now you can run this command from a terminal and post the output:
Code:

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

jkrobbins 10-23-2015 12:22 AM

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?

jdkaye 10-23-2015 11:45 AM

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

jkrobbins 10-23-2015 03:59 PM

Ok how and where do I go to edit this?

maples 10-23-2015 05:48 PM

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


jkrobbins 10-23-2015 09:58 PM

Thanks to all of you for all the help! Thanks


All times are GMT -5. The time now is 11:46 AM.