7

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?

Jorge Castro
  • 73,717
Lekensteyn
  • 178,446

2 Answers2

10

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.

Lekensteyn
  • 178,446
1

If you want a GUI, it’s any of these:

  • Update Manager β†’ Settings,
  • Software Centre β†’ Software Sources,
  • Synaptic Package Manager β†’ Repositories.
TRiG
  • 2,006
robin0800
  • 1,092