Created
March 29, 2014 03:19
-
-
Save AmarPrabhu/9847737 to your computer and use it in GitHub Desktop.
Fix duplicate sources in apt list. Source: http://askubuntu.com/questions/120621/how-to-fix-duplicate-sources-list-entry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/apt/sources.list | perl -ne '$H{$_}++ or print' > /tmp/sources.list && sudo mv /tmp/sources.list /etc/apt/sources.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment