How to find a source package ?

Asked by Joachim R.

1) I'm looking for sources for a specific binary package. What is the common way to do this ? (knowing the binary package is in a free repository and that my apt source.list has the right deb-src line).

2) I'm specifically looking for source for bsdgames package. bsdgames is in "universe" repo (free), and my apt sources.list looks like this :
deb http://fr.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid restricted main multiverse universe #Added by software-properties
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates restricted main multiverse universe #Added by software-properties

(it is a small part, in Synaptics everything is ticked (main, universe, multiverse, partner, restricted + the source otpion thas adds the "deb-src all" line)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Joachim R.
Solved:
Last query:
Last reply:
Revision history for this message
Joachim R. (jro) said :
#1

Ok, I found the answer !

Synaptics is unable to download source package, all source options in Synaptics are front-ends for apt sources.list. This is why I get confused.

The answer is :
apt-get source <package name>