Duplicate source error on apt-get update

This post is to show you how to fix the duplicate source error in package manager when you run the update command ‘sudo apt-get update‘ in terminal. There are few methods you can use to fix this issue. I have outlined the different methods below:

y-ppa-mgr-00

Method 1: Using Y PPA Manager

Y PPA Manager is a tool that lets you easily add, remove or purge PPAs as well as search for duplicate PPAs, update only certain PPA, with sudo update-ppa [REPOSITORY], delete duplicate PPAs.  The latest Y PPA Manager version is 0.9.9.2., which comes with support for Ubuntu 14.04 and Linux Mint 16.

Steps

– Install Y PPA Manager

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

– Launch Y PPA Manager, click on Advanced

y-ppa-mgr-01

– Click ‘Scan and remove duplicate PPAs‘ and click OK

y-ppa-mgr-02

Note: This feature ‘Scan and remove duplicate PPAs’ does not work on Ubuntu 14.04 Trusty Tahr

Method 2: Use Ubuntu Software Centre

– Open Ubuntu Software Centre, click on Edit > Software Sources > Other Software Tab. Locate the duplicate entry and remove

y-ppa-mgr-03

Please feel free to share what method worked for you and on which platform

 
comments powered by Disqus