Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Broken software dependencies are often caused by incompatible third party repositories.

I am asked to provide a list of software sources (also known as software repositories). How can I quickly get a list of software sources?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

Software repositories as used for apt-get are set in /etc/apt/sources.list.

apt-add-repository adds additional repositories in /etc/apt/sources.list.d/*.list. Note that the extension is .list too. To find all occurences of these *.list files, run the next command in a terminal window:

find /etc/apt/ -name '*.list' -ls -exec cat {} \;

It will provide all useful information regarding software repositories used by apt. If this list is very long, and a file is preffered, use the next command to create a file in the current directory, named repositories.txt:

find /etc/apt/ -name '*.list' -ls -exec cat {} \; > repositories.txt

To post this list on Askubuntu, go to http://paste.ubuntu.com/ and paste the list in the big text field. Submit the form by pressing "Paste!" and copy the URL from the location bar (which should look like "http://paste.ubuntu.com/566454/"). Finally, paste this URL in your question.

share|improve this answer
    
As a refinement of that find command, you can use this answer : askubuntu.com/questions/28644/how-can-i-backup-my-ppas/… –  Scaine Mar 16 '11 at 14:17

If you want a gui its settings in the update manager or software sources in the software centre and in synaptic package manager its called repositories.

share|improve this answer

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.