Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I try to install a new ppa entry and when I update from command line I received a duplicate (error) message. I know what meens that and how to solve manually with Ubuntu Tweak or command line. Is any automated way to solve this problem when I install duplicate entries? like a command which find the duplicates and erase them or a software.

share|improve this question

2 Answers

up vote 3 down vote accepted

I googled for such a tool, but I didn't find any.. So, I ended up coding one myself with PHP.

Sorry for the dirty unorganized source code..

chkdup - Screenshot:

enter image description here

Author

Mubarak Alrashidi (DeaDSouL)

Requirements:

  1. PHP.
  2. Sudo.

Installation:

  1. Open the terminal.
  2. To install PHP if you don't have it, type: sudo apt-get install php5 php5-cli.
  3. Download the chkdup.
  4. Extract the file anywhere you like.
  5. Type: sudo sh install.sh.

Uninstall:

  1. Open the terminal.
  2. Go to the path you extracted the tool in.
  3. Type: sudo sh uninstall.sh.

How to use it:

Just open the terminal and type sudo chkdup.

FAQs:

What does the install.sh do ?

  • The installer will move the chkdup.php to /opt/ then will create a symbolic link in /usr/bin/.

What about the uninstall.sh ?

  • The uninstaller will remove the following files:

    1. install.sh
    2. /opt/chkdup.php
    3. /usr/bin/chkdup
    4. itself "uninstall.sh"

Is it safe to use chkdup ?

  • Yes it is, since it takes a backup of the current sources.list before attempting to do anything. But I'm not responsible if anything happened. The full responsibility will be yours.

License

GNU General Public License

And goodluck

share|improve this answer
Thank you very much for the code. – Vassilis Mar 17 '11 at 8:27
just tried it out, nice and simple :-) nice :-) – bmbaker Jan 28 '12 at 19:40

Y PPA Manager can remove duplicate PPAs with a click

share|improve this answer
I try to use Y PPA Manager but it didn't remove the duplicates. Were to send you a print screen? – Vassilis Mar 25 '11 at 9:56
@Vassilis: please report the bug @ Launchpad: bugs.launchpad.net/y-ppa-manager if it's about a PPA. But please note that Y PPA Manager only works with PPAs so if it's some other repository in your main sources.list file, it won't work... (it's not intended to work with that). – Alin Andrei Apr 15 '11 at 10:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.