Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Obtaining Source Code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Abhishek Joshi  
View profile  
 More options Nov 4 2012, 11:40 am
From: Abhishek Joshi <abhishekbjos...@gmail.com>
Date: Sun, 4 Nov 2012 22:10:38 +0530
Local: Sun, Nov 4 2012 11:40 am
Subject: Obtaining Source Code

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jobin Raju George  
View profile  
 More options Nov 4 2012, 12:30 pm
From: Jobin Raju George <jobin...@gmail.com>
Date: Sun, 4 Nov 2012 23:00:56 +0530
Local: Sun, Nov 4 2012 12:30 pm
Subject: Re: [CoFSUG] Obtaining Source Code

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:

--

Thanks and regards,

Jobin Raju George

Third Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10...@coep.ac.in


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jobin Raju George  
View profile  
 More options Nov 4 2012, 12:45 pm
From: Jobin Raju George <jobin...@gmail.com>
Date: Sun, 4 Nov 2012 23:15:22 +0530
Local: Sun, Nov 4 2012 12:45 pm
Subject: Re: [CoFSUG] Obtaining Source Code

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:

--

Thanks and regards,

Jobin Raju George

Third Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10...@coep.ac.in


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
malte....@googlemail.com  
View profile  
 More options Nov 4 2012, 1:18 pm
From: malte....@googlemail.com
Date: Sun, 4 Nov 2012 19:18:51 +0100 (CET)
Local: Sun, Nov 4 2012 1:18 pm
Subject: Re: [CoFSUG] Obtaining Source Code

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 ".

so

"deb http://ftp.de.debian.org/debian/ sid main non-free contrib"

would become

"deb http://ftp.de.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib".

Much success to you.

Malte


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shirish शिरीष  
View profile  
 More options Nov 4 2012, 1:44 pm
From: shirish शिरीष <shirisha...@gmail.com>
Date: Mon, 5 Nov 2012 00:14:13 +0530
Local: Sun, Nov 4 2012 1:44 pm
Subject: Re: [CoFSUG] Obtaining Source Code
at bottom :-

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.

Just my 2 paise.

> Malte

<snipped>
--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shirish शिरीष  
View profile  
 More options Nov 4 2012, 2:05 pm
From: shirish शिरीष <shirisha...@gmail.com>
Date: Mon, 5 Nov 2012 00:35:23 +0530
Local: Sun, Nov 4 2012 2:05 pm
Subject: Re: [CoFSUG] Obtaining Source Code
Hi all,
This page does give some info. about the ubuntu repo's as well as how
to do it (similar to Malte's approach)
https://help.ubuntu.com/community/Repositories/Ubuntu

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.

This was few years ago, so dunno if the same process or has changed or
not. Not a ubuntu user anymore.
--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
malte....@googlemail.com  
View profile  
 More options Nov 4 2012, 2:28 pm
From: malte....@googlemail.com
Date: Sun, 4 Nov 2012 20:29:40 +0100 (CET)
Local: Sun, Nov 4 2012 2:29 pm
Subject: Re: [CoFSUG] Obtaining Source Code

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abhishek Joshi  
View profile  
 More options Nov 5 2012, 12:02 am
From: Abhishek Joshi <abhishekbjos...@gmail.com>
Date: Mon, 5 Nov 2012 10:32:33 +0530
Local: Mon, Nov 5 2012 12:02 am
Subject: Re: [CoFSUG] Obtaining Source Code

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jobin Raju George  
View profile  
 More options Nov 5 2012, 12:10 am
From: Jobin Raju George <jobin...@gmail.com>
Date: Mon, 5 Nov 2012 10:40:24 +0530
Local: Mon, Nov 5 2012 12:10 am
Subject: Re: [CoFSUG] Obtaining Source Code

Dear Abhishek,

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 and regards,

Jobin Raju George

Third Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10...@coep.ac.in


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abhishek Joshi  
View profile  
 More options Nov 6 2012, 10:16 am
From: Abhishek Joshi <abhishekbjos...@gmail.com>
Date: Tue, 6 Nov 2012 20:46:07 +0530
Local: Tues, Nov 6 2012 10:16 am
Subject: Re: [CoFSUG] Obtaining Source Code

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shirish शिरीष  
View profile  
 More options Nov 6 2012, 10:38 am
From: shirish शिरीष <shirisha...@gmail.com>
Date: Tue, 6 Nov 2012 21:08:37 +0530
Local: Tues, Nov 6 2012 10:38 am
Subject: Re: [CoFSUG] Obtaining Source Code
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.

Does that do it or no ?
--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abhishek Joshi  
View profile  
 More options Nov 6 2012, 12:28 pm
From: Abhishek Joshi <abhishekbjos...@gmail.com>
Date: Tue, 6 Nov 2012 22:58:02 +0530
Local: Tues, Nov 6 2012 12:28 pm
Subject: Re: [CoFSUG] Obtaining Source Code

Dear Shrish

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abhishek Joshi  
View profile  
 More options Nov 6 2012, 12:35 pm
From: Abhishek Joshi <abhishekbjos...@gmail.com>
Date: Tue, 6 Nov 2012 23:05:39 +0530
Local: Tues, Nov 6 2012 12:35 pm
Subject: Re: [CoFSUG] Obtaining Source Code

Dear Shirish

I got it...exit did the trick! Thanks once again!

On Tue, Nov 6, 2012 at 10:58 PM, Abhishek Joshi
<abhishekbjos...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Praveen A  
View profile  
 More options Nov 6 2012, 12:43 pm
From: Praveen A <prav...@gmail.com>
Date: Tue, 6 Nov 2012 23:13:25 +0530
Local: Tues, Nov 6 2012 12:43 pm
Subject: Re: [CoFSUG] Obtaining Source Code

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abhishek Joshi  
View profile  
 More options Nov 6 2012, 12:54 pm
From: Abhishek Joshi <abhishekbjos...@gmail.com>
Date: Tue, 6 Nov 2012 23:24:46 +0530
Local: Tues, Nov 6 2012 12:54 pm
Subject: Re: [CoFSUG] Obtaining Source Code

Dear Praveen

Thanks for the information!

Regards
Abhishek


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »