Source code apt-get source

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Drygar
Level 2
Level 2
Posts: 79
Joined: Sat Feb 14, 2015 5:52 pm

Source code apt-get source

Post by Drygar » Tue Sep 29, 2015 4:19 pm

Hi,

I wanted to get some source code of applications to compare them but seems that apt-get source command doesn't work.

Can you help me with this?

xxx ~ $ apt-get source firefox
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list

How do I get the firefox package and thunderbird packages - their source codes.
I found this page but it is Ubuntu's versions, I wanted to compare the FF Ubuntu version and FF Mint version.

Thank you!
Fan of XFCE, MATE, Linux Mint, RedHat, ecryptFS, FSF
Open source enthusiast
No security - No freedom
LM 17.2

His name is Linux >> https://www.youtube.com/watch?v=sOtKZA9ri7M

Laurent85
Level 16
Level 16
Posts: 6075
Joined: Tue May 26, 2015 10:11 am

Re: Source code apt-get source

Post by Laurent85 » Tue Sep 29, 2015 5:13 pm

See Software Sources -> Enable source code repositories -> Update the cache
Image

JeremyB
Level 20
Level 20
Posts: 10890
Joined: Fri Feb 21, 2014 8:17 am

Re: Source code apt-get source

Post by JeremyB » Tue Sep 29, 2015 7:10 pm

I really doubt there is a FF version for Linux Mint, you could check Synaptic Package Manager, search for firefox and see what the installed and latest versions are. The settings in Linux Mint Update manager may not allow the latest Firefox to be a Level 1-3 update at this time

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Source code apt-get source

Post by Cosmo. » Tue Sep 29, 2015 7:27 pm

Firefox for LM 17.x is now made by the Mint Devs and back to level 3. See here.

User avatar
Drygar
Level 2
Level 2
Posts: 79
Joined: Sat Feb 14, 2015 5:52 pm

Re: Source code apt-get source

Post by Drygar » Wed Sep 30, 2015 4:07 pm

Laurent85 wrote:See Software Sources -> Enable source code repositories -> Update the cache

Hi Laurent85,

Thank you!

I did this. Source code repositories are enabled now and cache is also updated. Unfortunately, I see get this error "E: You must put some 'source' URIs in your sources.list"
Fan of XFCE, MATE, Linux Mint, RedHat, ecryptFS, FSF
Open source enthusiast
No security - No freedom
LM 17.2

His name is Linux >> https://www.youtube.com/watch?v=sOtKZA9ri7M

Laurent85
Level 16
Level 16
Posts: 6075
Joined: Tue May 26, 2015 10:11 am

Re: Source code apt-get source

Post by Laurent85 » Wed Sep 30, 2015 4:54 pm

Check:

Code: Select all

cat /etc/apt/sources.list.d/official-source-repositories.list
deb-src http://packages.linuxmint.com rafaela main upstream import 

deb-src http://extra.linuxmint.com rafaela main

deb-src http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse

deb-src http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://archive.canonical.com/ubuntu/ trusty partner

Code: Select all

apt source firefox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
NOTICE: 'firefox' packaging is maintained in the 'Bzr' version control system at:
https://code.launchpad.net/~mozillateam/firefox/firefox.trusty
Please use:
bzr branch https://code.launchpad.net/~mozillateam/firefox/firefox.trusty
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 252 MB of source archives.
Get:1 http://packages.linuxmint.com/ rafaela/upstream firefox 41.0+linuxmint2+rafaela (dsc) [6361 B]
Get:2 http://packages.linuxmint.com/ rafaela/upstream firefox 41.0+linuxmint2+rafaela (tar) [252 MB]
...                                    
dpkg-source: warning: extracting unsigned source package (firefox_41.0+linuxmint2+rafaela.dsc)
dpkg-source: info: extracting firefox in firefox-41.0+linuxmint2+rafaela
dpkg-source: info: unpacking firefox_41.0+linuxmint2+rafaela.tar.gz
Image

User avatar
Drygar
Level 2
Level 2
Posts: 79
Joined: Sat Feb 14, 2015 5:52 pm

Re: Source code apt-get source

Post by Drygar » Thu Oct 01, 2015 2:27 am

Hi,

Thank you for your help!

I checked my official-source-repositories.list file as you write - it looks the same.
sources.png

I tried with apt source firefox and still the same error

apt source firefox

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: You must put some 'source' URIs in your sources.list
I opened the sources.list file in /etc/apt and it looks like this

Code: Select all

#deb cdrom:[Linux Mint 17.2 _Rafaela_ - Release amd64 20150627]/ trusty contrib main non-free
Fan of XFCE, MATE, Linux Mint, RedHat, ecryptFS, FSF
Open source enthusiast
No security - No freedom
LM 17.2

His name is Linux >> https://www.youtube.com/watch?v=sOtKZA9ri7M

User avatar
Drygar
Level 2
Level 2
Posts: 79
Joined: Sat Feb 14, 2015 5:52 pm

Re: Source code apt-get source

Post by Drygar » Sat Oct 03, 2015 1:54 pm

Hello all!

I still experience the same issue.

Althought I managed to download the source of Firefox via web browser from http://packages.linuxmint.com, I still cannot make it via the terminal.
I came accross this article in stackexchange and I am wondering if my sources.list file in /etc/apt should be empty as shown above.

Doesn't anybody experiences this issue ? I am using LM 17.2 Mate and I have never before touched anything in the repositorie and I was thinking this should work by default unless I do anything wrong. Any advice is much welcome . :)

Code: Select all

apt-get source firefox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: You must put some 'source' URIs in your sources.list
Fan of XFCE, MATE, Linux Mint, RedHat, ecryptFS, FSF
Open source enthusiast
No security - No freedom
LM 17.2

His name is Linux >> https://www.youtube.com/watch?v=sOtKZA9ri7M

User avatar
Drygar
Level 2
Level 2
Posts: 79
Joined: Sat Feb 14, 2015 5:52 pm

Re: Source code apt-get source

Post by Drygar » Mon Oct 05, 2015 2:30 pm

Well, its freedom to post or not to post, to reply and not to reply but this situation totally busted the myth (for me) about famous Linux community where everybody jumps to help. Anyway, freedom... my 2 cents

I decided to post and to notify the community how I kind of fixed this issue I experiences. Maybe someone else might experience such an issue in future. Hope this helps.

So, I decided to repeat the procedure even though my sourceslist files were ok.
firefoxsource2.png
I opened Software sources. Chose the option to restore to default option.
Saved and reloaded packages.
Opened Software sources again. Reclicked packages.linuxmint.com and archive.ubuntu.com, checked the option to enable Sources. Saved and reloaded packages.
softsources.png
Then, apt-get sources firefox works. What still remains a mystery to me is that source pakcs got downloaded from ubuntu repos, not from packages.linuxmint.com but I will survive. :)
firefoxsource1.png
Thank you
Fan of XFCE, MATE, Linux Mint, RedHat, ecryptFS, FSF
Open source enthusiast
No security - No freedom
LM 17.2

His name is Linux >> https://www.youtube.com/watch?v=sOtKZA9ri7M

Laurent85
Level 16
Level 16
Posts: 6075
Joined: Tue May 26, 2015 10:11 am

Re: Source code apt-get source

Post by Laurent85 » Mon Oct 05, 2015 5:43 pm

You got most recent version regardless of pin priority. Use "apt policy firefox" command to list available versions for download. To download Linux Mint version sources:

Code: Select all

apt source firefox=41.0+linuxmint2+rafaela
Image

Post Reply

Return to “Software & Applications”