Gangmax Blog

Download Package Source Code via apt-get

From here and here.

First, open “software-properties-gtk”, go to the “Ubuntu Software” tab, check the “Source code” checkbox. Without this step you will get an error “You must put some ‘source’ URIs in your sources.list” in the next step.

Run the following command to download source code of a given package:

1
2
3
apt-get source python
# or:
apt source apt

Comments