missing source?

Contribute code & patches
Forum rules
No support questions here please

missing source?

Postby fbongor on Sun Oct 07, 2012 12:16 pm

I wanted to get the source package for a few programs, and, being more familiar with Ubuntu, did the Ubuntu thing: apt-get source <pkg>
Naturally I enabled the source repository from repository "Main".
However there doesn't seem to be any source in that repository for Mint as there would be for the machines I have running Ubuntu.

Apparently Mint is set up differently.
Pray tell, how to I find the source repository in Mint, other than doing the obvious, which doesn't seem to work?

I was looking for isync, telnet-ssl (aka netkit-telnet-ssl), telnetd-ssl (aka netkit-telnetd-ssl), but I tried a lot of others and nothing seemed to be there.

I am running Mint 13 Mate 64bit, 100% up to date, installed a few weeks ago.

thanks
FB
fbongor
Level 1
Level 1
 
Posts: 1
Joined: Sun Oct 07, 2012 12:05 pm

Linux Mint is funded by ads and donations.
 

Re: missing source?

Postby xenopeek on Sun Oct 07, 2012 12:24 pm

Enabling the source repository through Software Sources only enables the Linux Mint source repository; not the Ubuntu source repository. To enable the Ubuntu source repository, you have to do that manually.

Edit your /etc/apt/sources.list file (instead of gedit use pluma for MATE, or if using KDE do "kdesu kate" instead of "gksudo gedit"):
Code: Select all
gksudo gedit /etc/apt/sources.list

Duplicate each line starting with "deb" and then replace "deb" to "deb-src". Close and save the file. Then update your cache to activate:
Code: Select all
sudo apt-get update

As an example, here is my sources.list. In red the added lines (each line is a duplicate of the line before it, with "deb" changed to "deb-src").
deb http://packages.linuxmint.com/ maya main upstream import
deb-src http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb-src http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free
deb-src http://packages.medibuntu.org/ precise free non-free

# deb http://archive.getdeb.net/ubuntu precise-getdeb apps
# deb http://archive.getdeb.net/ubuntu precise-getdeb games
deb http://packages.mate-desktop.org/repo/ubuntu precise main
deb-src http://packages.mate-desktop.org/repo/ubuntu precise main
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15262
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Code & Patches

Who is online

Users browsing this forum: No registered users and 3 guests