Source packages appropriate by default?

Robie Basak robie.basak at ubuntu.com
Tue Jul 23 07:12:16 UTC 2013


On Tue, Jul 23, 2013 at 03:02:02AM -0400, Scott Kitterman wrote:
> So those are a couple of examples of what I think is definitely not what we 
> want.  I'm open to discussion about alternate ways to preserve easy access to 
> the source.

How about:

$ sudo apt-get source hello
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: You must put some 'source' URIs in your sources.list
E: Type "add-apt-repository sources" to do this automatically for you.
$ sudo add-apt-repository sources
deb-src lines have been added to your sources.list.
Now type "apt-get update", and then "apt-get source ..." will work.
$ sudo apt-get update
(...)
$ sudo apt-get source hello
(works)

To do this, we'd need to patch apt to add the second error line, and
implement "sources" to add-apt-repository.

Robie



More information about the ubuntu-devel mailing list