I am interested in obtaining source code of certain applications in ubuntu.
When I use the command "sudo apt-get source application-name", where I
write the appropriate application name in the place of 'application-name',
I get a message saying, "You must put some 'source' URIs in your
sources.list".
I have searched extensively on the web but could not get even one relevant
solution.
Could someone give me a solution to this? Any help in this regard would be
highly appreciated!
Thanks in advance.
You are trying to fetch source codes of the application, so do not "sudo"
them, just type apt-get source <application_name> where <application_name>
is the name of the application whose source code you are trying to obtain.
Hope this helps. Reply if you have trouble.
On Sun, Nov 4, 2012 at 10:10 PM, Abhishek Joshi
<abhishekbjos...@gmail.com>wrote:
> I am interested in obtaining source code of certain applications in
> ubuntu. When I use the command "sudo apt-get source application-name",
> where I write the appropriate application name in the place of
> 'application-name', I get a message saying, "You must put some 'source'
> URIs in your sources.list".
> I have searched extensively on the web but could not get even one relevant
> solution.
> Could someone give me a solution to this? Any help in this regard would be
> highly appreciated!
> Thanks in advance.
> Abhishek Joshi
> SY Comp
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to
> cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cofsug?hl=en-GB.
And yes, sorry to have not mentioned this, just go to Software Center, go
to Edit-> Software Sources and tick the label that says "Source code". I am
not familiar with Synaptic Packet Manager, so won't be able to tell you how
to do this, if that is what you use.
On Sun, Nov 4, 2012 at 11:00 PM, Jobin Raju George <jobin...@gmail.com>wrote:
> You are trying to fetch source codes of the application, so do not "sudo"
> them, just type apt-get source <application_name> where
> <application_name> is the name of the application whose source code you are
> trying to obtain. Hope this helps. Reply if you have trouble.
> On Sun, Nov 4, 2012 at 10:10 PM, Abhishek Joshi <abhishekbjos...@gmail.com
> > wrote:
>> Hello All
>> I am interested in obtaining source code of certain applications in
>> ubuntu. When I use the command "sudo apt-get source application-name",
>> where I write the appropriate application name in the place of
>> 'application-name', I get a message saying, "You must put some 'source'
>> URIs in your sources.list".
>> I have searched extensively on the web but could not get even one
>> relevant solution.
>> Could someone give me a solution to this? Any help in this regard would
>> be highly appreciated!
>> Thanks in advance.
>> Abhishek Joshi
>> SY Comp
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CoFSUG" group.
>> To post to this group, send an email to cofsug@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cofsug+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/cofsug?hl=en-GB.
On Sun, 4 Nov 2012, Jobin Raju George wrote:
> And yes, sorry to have not mentioned this, just go to Software Center, go to Edit-> Software Sources and tick the label
> that says "Source code". I am not familiar with Synaptic Packet Manager, so won't be able to tell you how to do this, if
> that is what you use.
The most universal approach would be to edit the file /etc/apt/sources.list and copy the lines starting with "deb " and then alter the copies so they start with "deb-src ".
> On Sun, Nov 4, 2012 at 11:00 PM, Jobin Raju George <jobin...@gmail.com> wrote:
> Dear Abhishek,
> You are trying to fetch source codes of the application, so do not "sudo" them, just type apt-get source
> <application_name> where <application_name> is the name of the application whose source code you are trying to
> obtain. Hope this helps. Reply if you have trouble.
> On Sun, Nov 4, 2012 at 10:10 PM, Abhishek Joshi <abhishekbjos...@gmail.com> wrote:
> Hello All
> I am interested in obtaining source code of certain applications in ubuntu. When I use the command "sudo
> apt-get source application-name", where I write the appropriate application name in the place of
> 'application-name', �I get a message saying, "You must put some 'source' URIs in your sources.list".
> I have searched extensively on the web but could not get even one relevant solution.
> Could someone give me a solution to this? Any help in this regard would be highly appreciated!
> Thanks in advance.
> Abhishek Joshi
> SY Comp
> --
> You received this message because you are subscribed to the Google Groups "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cofsug?hl=en-GB.
> --
> You received this message because you are subscribed to the Google Groups "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cofsug?hl=en-GB.
On Sun, Nov 4, 2012 at 11:48 PM, <malte....@googlemail.com> wrote:
> On Sun, 4 Nov 2012, Jobin Raju George wrote:
>> And yes, sorry to have not mentioned this, just go to Software Center, go
>> to Edit-> Software Sources and tick the label
>> that says "Source code". I am not familiar with Synaptic Packet Manager,
>> so won't be able to tell you how to do this, if
>> that is what you use.
> The most universal approach would be to edit the file /etc/apt/sources.list
> and copy the lines starting with "deb " and then alter the copies so they
> start with "deb-src ".
While malte is right, I guess it would be ubuntu, what s/he has
written is relevant only if it's debian. Sometimes ubuntu may have
some patched app. or vice-versa so it's important to use the sources
from the distribution you are using. The Debian sources that s/he has
given may not be right for you, although if you just want to see the
sources and not actually build them locally then it may be fine.
but is silent mostly about the source code part. I am sorry I dunno
how they do things today (as I'm more now into Debian.)
I do remember vaguely doing something like
$ sudo apt-get build-dep application-name
The first one will download and build all the dependencies which are
needed for the app. to build. (Build dependencies are/maybe different
from apps. needed while running. Usually they used to include the run
dependencies + some which are needed only while building.)
$ sudo apt-get source application-name
It would get the source-code
and then finally do ./configure, make and make install or whatever the
compilation way it was.
>> The most universal approach would be to edit the file /etc/apt/sources.list
>> and copy the lines starting with "deb " and then alter the copies so they
>> start with "deb-src ".
> While malte is right, I guess it would be ubuntu, what s/he has
> written is relevant only if it's debian. Sometimes ubuntu may have
> some patched app. or vice-versa so it's important to use the sources
> from the distribution you are using. The Debian sources that s/he has
> given may not be right for you, although if you just want to see the
> sources and not actually build them locally then it may be fine.
My explanation works for all Debian and derivatives, that is, Ubuntu, too. Of course, the text after "deb "/"dev-src " varies from distribution to distribution (that was not the point of the example).
Thanks a lot for the advice. I selected the 'source code' option in the
settings of software center, as Jobin said. Then I checked the sources.list
file and it already had the lines starting with "deb-src"! So all I did was
reload the synaptic package manager and then typed the command "sudo
apt-get source mc". It worked!
On Mon, Nov 5, 2012 at 12:59 AM, <malte....@googlemail.com> wrote:
> The most universal approach would be to edit the file
>>> /etc/apt/sources.list
>>> and copy the lines starting with "deb " and then alter the copies so they
>>> start with "deb-src ".
>> While malte is right, I guess it would be ubuntu, what s/he has
>> written is relevant only if it's debian. Sometimes ubuntu may have
>> some patched app. or vice-versa so it's important to use the sources
>> from the distribution you are using. The Debian sources that s/he has
>> given may not be right for you, although if you just want to see the
>> sources and not actually build them locally then it may be fine.
> My explanation works for all Debian and derivatives, that is, Ubuntu, too.
> Of course, the text after "deb "/"dev-src " varies from distribution to
> distribution (that was not the point of the example).
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to cofsug+unsubscribe@**
> googlegroups.com <cofsug%2Bunsubscribe@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/** > group/cofsug?hl=en-GB <http://groups.google.com/group/cofsug?hl=en-GB>.
Its good that it worked for you, but I fear whether "sudo" is needed, you
would probably like to have it in you "/home" folder, right? See whether
you really need to add "sudo" for just getting the source code.
On Mon, Nov 5, 2012 at 10:32 AM, Abhishek Joshi
<abhishekbjos...@gmail.com>wrote:
> Thanks a lot for the advice. I selected the 'source code' option in the
> settings of software center, as Jobin said. Then I checked the sources.list
> file and it already had the lines starting with "deb-src"! So all I did was
> reload the synaptic package manager and then typed the command "sudo
> apt-get source mc". It worked!
> Thanks once again!
> Abhishek Joshi
> On Mon, Nov 5, 2012 at 12:59 AM, <malte....@googlemail.com> wrote:
>> The most universal approach would be to edit the file
>>>> /etc/apt/sources.list
>>>> and copy the lines starting with "deb " and then alter the copies so
>>>> they
>>>> start with "deb-src ".
>>> While malte is right, I guess it would be ubuntu, what s/he has
>>> written is relevant only if it's debian. Sometimes ubuntu may have
>>> some patched app. or vice-versa so it's important to use the sources
>>> from the distribution you are using. The Debian sources that s/he has
>>> given may not be right for you, although if you just want to see the
>>> sources and not actually build them locally then it may be fine.
>> My explanation works for all Debian and derivatives, that is, Ubuntu,
>> too. Of course, the text after "deb "/"dev-src " varies from distribution
>> to distribution (that was not the point of the example).
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CoFSUG" group.
>> To post to this group, send an email to cofsug@googlegroups.com.
>> To unsubscribe from this group, send email to cofsug+unsubscribe@**
>> googlegroups.com <cofsug%2Bunsubscribe@googlegroups.com>.
>> For more options, visit this group at http://groups.google.com/** >> group/cofsug?hl=en-GB <http://groups.google.com/group/cofsug?hl=en-GB>.
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to
> cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cofsug?hl=en-GB.
You were right. When I used sudo, the tar files get downloaded in /etc/apt,
and I somehow cannot delete these files. I have copied them to another
location and then extracted the code, but I still cannot delete the
original tar files (must be some problem with the permissions). Without
sudo the files appear in home folder and I can delete them!
Thanks a lot! :)
Do you have any idea as to how I could delete the original files? It would
be nice to have a clean /etc/apt folder :)
On Mon, Nov 5, 2012 at 10:40 AM, Jobin Raju George <jobin...@gmail.com>wrote:
> Its good that it worked for you, but I fear whether "sudo" is needed, you
> would probably like to have it in you "/home" folder, right? See whether
> you really need to add "sudo" for just getting the source code.
> On Mon, Nov 5, 2012 at 10:32 AM, Abhishek Joshi <abhishekbjos...@gmail.com
> > wrote:
>> Hello all
>> Thanks a lot for the advice. I selected the 'source code' option in the
>> settings of software center, as Jobin said. Then I checked the sources.list
>> file and it already had the lines starting with "deb-src"! So all I did was
>> reload the synaptic package manager and then typed the command "sudo
>> apt-get source mc". It worked!
>> Thanks once again!
>> Abhishek Joshi
>> On Mon, Nov 5, 2012 at 12:59 AM, <malte....@googlemail.com> wrote:
>>> The most universal approach would be to edit the file
>>>>> /etc/apt/sources.list
>>>>> and copy the lines starting with "deb " and then alter the copies so
>>>>> they
>>>>> start with "deb-src ".
>>>> While malte is right, I guess it would be ubuntu, what s/he has
>>>> written is relevant only if it's debian. Sometimes ubuntu may have
>>>> some patched app. or vice-versa so it's important to use the sources
>>>> from the distribution you are using. The Debian sources that s/he has
>>>> given may not be right for you, although if you just want to see the
>>>> sources and not actually build them locally then it may be fine.
>>> My explanation works for all Debian and derivatives, that is, Ubuntu,
>>> too. Of course, the text after "deb "/"dev-src " varies from distribution
>>> to distribution (that was not the point of the example).
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CoFSUG" group.
>>> To post to this group, send an email to cofsug@googlegroups.com.
>>> To unsubscribe from this group, send email to cofsug+unsubscribe@**
>>> googlegroups.com <cofsug%2Bunsubscribe@googlegroups.com>.
>>> For more options, visit this group at http://groups.google.com/** >>> group/cofsug?hl=en-GB <http://groups.google.com/group/cofsug?hl=en-GB>.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CoFSUG" group.
>> To post to this group, send an email to cofsug@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cofsug+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/cofsug?hl=en-GB.
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to
> cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cofsug?hl=en-GB.
> You were right. When I used sudo, the tar files get downloaded in /etc/apt,
> and I somehow cannot delete these files. I have copied them to another
> location and then extracted the code, but I still cannot delete the original
> tar files (must be some problem with the permissions). Without sudo the
> files appear in home folder and I can delete them!
> Thanks a lot! :)
> Do you have any idea as to how I could delete the original files? It would
> be nice to have a clean /etc/apt folder :)
$ sudo su
# cd /etc/apt
# rm -rf folder-name or list of files.
On Tue, Nov 6, 2012 at 9:08 PM, shirish शिरीष <shirisha...@gmail.com> wrote:
> at bottom :-
> On Tue, Nov 6, 2012 at 8:46 PM, Abhishek Joshi
> <abhishekbjos...@gmail.com> wrote:
> > Dear Jobin,
> > You were right. When I used sudo, the tar files get downloaded in
> /etc/apt,
> > and I somehow cannot delete these files. I have copied them to another
> > location and then extracted the code, but I still cannot delete the
> original
> > tar files (must be some problem with the permissions). Without sudo the
> > files appear in home folder and I can delete them!
> > Thanks a lot! :)
> > Do you have any idea as to how I could delete the original files? It
> would
> > be nice to have a clean /etc/apt folder :)
> $ sudo su
> # cd /etc/apt
> # rm -rf folder-name or list of files.
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to
> cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cofsug?hl=en-GB.
> It worked! I was able to delete the folders! Thanks a lot! But, how do I
> revert back to being the user 'abhishek' instead of root?
> On Tue, Nov 6, 2012 at 9:08 PM, shirish शिरीष <shirisha...@gmail.com>wrote:
>> at bottom :-
>> On Tue, Nov 6, 2012 at 8:46 PM, Abhishek Joshi
>> <abhishekbjos...@gmail.com> wrote:
>> > Dear Jobin,
>> > You were right. When I used sudo, the tar files get downloaded in
>> /etc/apt,
>> > and I somehow cannot delete these files. I have copied them to another
>> > location and then extracted the code, but I still cannot delete the
>> original
>> > tar files (must be some problem with the permissions). Without sudo the
>> > files appear in home folder and I can delete them!
>> > Thanks a lot! :)
>> > Do you have any idea as to how I could delete the original files? It
>> would
>> > be nice to have a clean /etc/apt folder :)
>> $ sudo su
>> # cd /etc/apt
>> # rm -rf folder-name or list of files.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CoFSUG" group.
>> To post to this group, send an email to cofsug@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cofsug+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/cofsug?hl=en-GB.
When prefix sudo to any command that is run as root user. So use sudo only
when you know you need it. You were not able to delete those files without
sudo because those files were created as root and hence owned by root. sudo
su will give you a root shell, ie, every command you after sudo su will be
run as root user.
On Nov 6, 2012 8:46 PM, "Abhishek Joshi" <abhishekbjos...@gmail.com> wrote:
Dear Jobin,
You were right. When I used sudo, the tar files get downloaded in /etc/apt,
and I somehow cannot delete these files. I have copied them to another
location and then extracted the code, but I still cannot delete the
original tar files (must be some problem with the permissions). Without
sudo the files appear in home folder and I can delete them!
Thanks a lot! :)
Do you have any idea as to how I could delete the original files? It would
be nice to have a clean /etc/apt folder :)
On Mon, Nov 5, 2012 at 10:40 AM, Jobin Raju George <jobin...@gmail.com>
wrote: > > Dear Abhishek, ...
On Tue, Nov 6, 2012 at 11:13 PM, Praveen A <prav...@gmail.com> wrote:
> When prefix sudo to any command that is run as root user. So use sudo only
> when you know you need it. You were not able to delete those files without
> sudo because those files were created as root and hence owned by root. sudo
> su will give you a root shell, ie, every command you after sudo su will be
> run as root user.
> On Nov 6, 2012 8:46 PM, "Abhishek Joshi" <abhishekbjos...@gmail.com>
> wrote:
> Dear Jobin,
> You were right. When I used sudo, the tar files get downloaded in
> /etc/apt, and I somehow cannot delete these files. I have copied them to
> another location and then extracted the code, but I still cannot delete the
> original tar files (must be some problem with the permissions). Without
> sudo the files appear in home folder and I can delete them!
> Thanks a lot! :)
> Do you have any idea as to how I could delete the original files? It would
> be nice to have a clean /etc/apt folder :)
> On Mon, Nov 5, 2012 at 10:40 AM, Jobin Raju George <jobin...@gmail.com>
> wrote: > > Dear Abhishek, ...
> --
> You received this message because you are subscribed to the Google Groups
> "CoFSUG" group.
> To post to this group, send an email to cofsug@googlegroups.com.
> To unsubscribe from this group, send email to
> cofsug+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cofsug?hl=en-GB.