LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-26-2012, 09:00 AM   #1
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Rep: Reputation: 0
How to get rid of a duplicate


When I get an update I will also get this:

W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/maverick/partner i386 packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_maverick_partner-i386_Packages)

I would like to know what should I do to remove the duplicate source and where within my Ubuntu 10.10 will I find the duplicate source to remove? One might think I'd know where to look, I don't sorry.

herakles_14
 
Old 02-26-2012, 09:49 AM   #2
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
The config files for system updates (using the apt utility) are stored under /etc/apt - the main sources file, and the one referenced in your error, is /etc/apt/sources.list. You would edit this file and comment out the duplicate line, or just delete it.

Code:
sudo nano /etc/apt/sources.list
You can substitute your editor of choice for 'nano' here. There is also the graphical 'Software Sources' under the settings menu that will let you select/de-select individual sources, although I'm not sure if it will show you duplicates.
 
Old 02-26-2012, 04:27 PM   #3
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
I did as you suggested and I did not see duplicates this is what I did get maybe you will be able to make sense out of it:

http://i65.photobucket.com/albums/h2...48-desktop.png

I am hoping i did this right so you'll see it?
 
Old 02-26-2012, 04:49 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Your photobucket pic is too small to read.
 
Old 02-26-2012, 05:01 PM   #5
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
I was able to read it by zooming the image, but it looks like the bottom of the file is cutoff, you need to scroll down in nano for us to see the rest. Maybe you can just cut/paste the text here?
 
Old 02-26-2012, 06:39 PM   #6
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
What is in the screenshot was all that showed in the terminal. It did not scroll down any further.
 
Old 02-26-2012, 07:04 PM   #7
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
I can not copy and paste from the terminal. The screenshot is the best it gets as it does not show any more even at full screen.

Last edited by herakles_14; 02-26-2012 at 07:12 PM.
 
Old 02-26-2012, 09:46 PM   #8
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
I am going to try something if it works great, if not...

#deb cdrom [Ubuntu 10.04 LTS_Lucid Lynx_ -Release i386 (20100429) lucid main restricted]
#See http://help.ubuntu.com/community/upgradenotes for how to upgrade to a newer version of this distribution.

deb cdrom [Xubuntu 11.04_Natty Narwhal_ -Release i386 (20110427) natty main restricted.

deb http://us.archive.ubuntu.com/ubuntu maverick main restricted

deb-src http://us.archive.ubuntu.comn/ubuntu/ maverick main restricted

## Major Bug fix updates after the final release of the
## distribution

deb http:// us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu maverick-updates main restricted

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu team. Also, please that software in Universe WILL
##NOT receive any
## review or updates from the ubuntu security team

deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
[ line 1/59 (1%), col 1/93 (1%), char 0/3365 (0%) ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell

If you saw the screenshot you noticed there were different colors for different parts of the message. I am not going to try and duplicate the colors here.
 
Old 02-27-2012, 05:32 AM   #9
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
The file is bigger than can fit in the editor window. At the bottom you'll notice 'line 1/59'. That means your cursor is on the first of 59 lines. There are only about 40 showing. You need to page down to see the rest - where I suspect the lines regarding the partner repo will be found.
 
Old 02-27-2012, 01:44 PM   #10
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
slugmax, it does not scroll down any further. i have tried but what you see is as low as it goes. Any suggestion on how I can see those missing lines?
 
Old 02-27-2012, 02:30 PM   #11
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
Can I ask, how are you scrolling? The line count seems to show there are more lines than are visible, usually just pagedown or using the down-arrow key repeatedly in nano will move down the edit buffer and scroll for you as needed. You can also just type 'less /etc/apt/sources.list' in a console, and press spacebar to page through the file. I suspect you'll see the partner lines in question at the end. You can also verify how many lines match partner repos with 'grep partner /etc/apt/sources.list'.

Also, have you tried the graphical utility I mentioned for maintaining this? If you can't find it in the menu, run it with 'sudo software-properties-gtk'.
 
Old 02-27-2012, 02:31 PM   #12
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
What meathod are you using to open this file?

If you are using Ubuntu (Gnome desktop environment) do;
Code:
sudo gedit /etc/apt/sources.list
Or to get the whole thing directly in the terminal simply;
Code:
cat /etc/apt/sources.list
I either case, after getting it up in either gedit or the terminal, got to the Edit menu> select all. Then Edit>Copy.

Paste the whole thing here.
 
Old 02-28-2012, 12:58 AM   #13
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
widget, I used the gedit command and came up with:

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb cdrom:[Xubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427)]/ natty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository

deb http://us.archive.ubuntu.com/ubuntu/ maverick-proposed restricted main multiverse universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports restricted main multiverse universe

Here is what came up with the cat /etc/apt/ command:

bill48@bill48-desktop:~$ sudo gedit /etc/apt/sources.list
[sudo] password for bill48:
bill48@bill48-desktop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb cdrom:[Xubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427)]/ natty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository

deb http://us.archive.ubuntu.com/ubuntu/ maverick-proposed restricted main multiverse universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports restricted main multiverse universe
bill48@bill48-desktop:~$

It could be repeats but since I don't know I'll let you tell me what I have and if anything can help me eliminate the duplicates. Thanks for all the help. I went to the scrollbar on the right for the up or down arrow but there wasn't any. This was for the first one that seemed to be cut off at the bottom.

Last edited by herakles_14; 02-28-2012 at 01:00 AM.
 
Old 02-28-2012, 03:13 AM   #14
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
The thing to do is to replace the sources.list. What a mess. You actually do have duplicates in there. One is the Ubuntu partners repo. You probably didn't recognize that the "Third Party developers" repo is the same thing.

You also still have lucid repos enabled. This will cause no problems it will just take that much more time to get your package list updated as your system checks repos that have nothing in them you want or need.

You also had the install cd still as a repo. I hope that you got a message to insert the CD everytime tried to do any upgrading or package installing. You won't now.

Not sure why you have all the source repos enabled except for one but I left it that way. If I were you I would comment them out. You can always enable them again if you have need for a source package.

I think this is clean. It is late so I could be wrong.

I would rename your current sources.list as sources.list.old. Then just save this one as sources.list. You will need to copy it to a root gedit to save it.
Code:
sudo gedit
should bring up a blank gedit capible of saving to your system files.

Code:
deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
 
Old 02-29-2012, 12:40 AM   #15
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
widget;

I want to make sure I get this right, are you telling me after I use the sudo gedit command then to copy and past into the blank gedit what is in the second window and save it to 'Root'?
You say the thing to do is replace the sources list, is that what is in the second window? I have been getting a notice to install the Xubuntu disc after each upgrade.

"I would rename your current sources.list as sources.list.old. Then just save this one as sources.list."

Okay how do I rename my current sources.list? Would it be something like this; cat /etc/apt/sources.list.old ? Or using the gedit be; sudo gedit /etc/apt/sources.list.old ? Or something completely different?
 
  


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
does tar or bzip2 squash duplicate or near-duplicate files? garydale Linux - Software 6 11-19-2009 04:43 PM
Duplicate sources skeletonca Linux - General 3 05-10-2007 06:37 AM
duplicate sources skeletonca Linux - Desktop 1 05-10-2007 02:51 AM
Mount Duplicate TuxFreak Fedora 13 12-20-2004 07:27 AM
How to get rid of duplicate keys in RPM tlawlessrr Linux - Software 3 07-12-2004 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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