Duplicate sources.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Duplicate sources.

Postby duncan222 on Sat Nov 02, 2013 10:24 am

I am getting the following in terminal after running apt-get update,

Packages. Linuxmint.com/olivia amd 64
Packages Linuxmint.com/olivia i386

along with the message duplicate package and to run apt-get update but this does not clear it
Please advise.
duncan222
Level 3
Level 3
 
Posts: 108
Joined: Fri Jan 11, 2013 12:29 pm

Linux Mint is funded by ads and donations.
 

Re: Duplicate sources.

Postby xenopeek on Sat Nov 02, 2013 10:45 am

Please run the following command on the terminal and share the output here (you can copy text from the terminal, see its Edit menu):
Code: Select all
inxi -Sr

This will show us your system and repository configuration.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Duplicate sources.

Postby duncan222 on Sun Nov 03, 2013 10:19 am

Code: Select all
duncan@duncan-DESKTOP-PC ~ $ inxi -Sr
System:    Host: duncan-DESKTOP-PC Kernel: 3.8.0-19-generic x86_64 (64 bit) Desktop: Gnome Distro: Linux Mint 15 Olivia
Repos:     Active apt sources in file: /etc/apt/sources.list.d/cairo-dock-team-ppa-raring.list
           deb http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu raring main
           deb-src http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu raring main
           Active apt sources in file: /etc/apt/sources.list.d/google-earth.list
           deb http://dl.google.com/linux/earth/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/mint.list
           deb http://packages.linuxmint.com/ olivia import
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com olivia main upstream import #id:linuxmint_main
           deb http://archive.ubuntu.com/ubuntu raring main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu raring-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ raring partner
           Active apt sources in file: /etc/apt/sources.list.d/peterlevi-ppa-raring.list
           deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu raring main
           deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu raring main
duncan@duncan-DESKTOP-PC ~ $
duncan222
Level 3
Level 3
 
Posts: 108
Joined: Fri Jan 11, 2013 12:29 pm

Re: Duplicate sources.

Postby duncan222 on Sun Nov 03, 2013 10:21 am

Fetched 162 kB in 10s (14.9 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://packages.linuxmint.com/ olivia/import amd64 Packages (/var/lib/apt/lists/packages.linuxmint.com_dists_olivia_import_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.linuxmint.com/ olivia/import i386 Packages (/var/lib/apt/lists/packages.linuxmint.com_dists_olivia_import_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems


NB Except that running Apt-get update does not correct this.

PS Thanks for your response.
duncan222
Level 3
Level 3
 
Posts: 108
Joined: Fri Jan 11, 2013 12:29 pm

Re: Duplicate sources.

Postby xenopeek on Sun Nov 03, 2013 10:27 am

The files /etc/apt/sources.list.d/mint.list and /etc/apt/sources.list.d/official-package-repositories.list both have an entry for the Linux Mint repository, conflicting. As I assume somehow that first file was added, as the latter file is the official one, please just remove that first file. You can do so with this command run from the terminal, which will ask for your password to confirm (note that you get no feedback from typing a password in the terminal):
Code: Select all
sudo rm /etc/apt/sources.list.d/mint.list

Afterwards Update Manager or `apt update` should both work fine again.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Duplicate sources.

Postby duncan222 on Tue Nov 05, 2013 7:07 am

Thank you for that.
Error message now gone.
duncan222
Level 3
Level 3
 
Posts: 108
Joined: Fri Jan 11, 2013 12:29 pm


Return to Newbie Questions

Who is online

Users browsing this forum: I2k4, Seffis and 32 guests