Installing source package of a speicified version (the one installed) in Ubuntu

Tom H tomh0665 at gmail.com
Tue Nov 19 15:41:04 UTC 2013


On Tue, Nov 19, 2013 at 3:28 PM, Kevin Wilson <wkevils at gmail.com> wrote:
>
> I am running Ubuntu 13.04
> When I try
> apt-get install lxc
> It installs  lxc 0.9.0.
> I veirfied this by checking, after "apt-get install lxc", thus:
>
> dpkg -l lxc
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name           Version      Architecture Description
> +++-==============-============-============-=================================
> ii  lxc            0.9.0-0ubunt amd64        Linux Containers userspace tools
>
> However, if I try to run:
>  apt-get source lxc
> I see the following files downloaded to the current directory:
> lxc-1.0.0~alpha1
> lxc_1.0.0~alpha1-0ubuntu13~ubuntu13.04.1.debian.tar.gz
> lxc_1.0.0~alpha1-0ubuntu13~ubuntu13.04.1.dsc
> lxc_1.0.0~alpha1.orig.tar.gz
>
> So it downloads a newer source package, of lxc_1.0.0~alpha.
>
> My question is: what should I do so that it will download the version
> of lxc which I have installed,   lxc-0.9.0, and not the newer one ?

Is your deb-src pointing at 13.04 or 13.10?

Do you have raring-backports enabled?

In 13.04, where the lxc version is 0.9 if the backports repo isn't
enabled, lxc is in "universe". Is that enabled for 13.04?

Does "apt-get source
lxc=0.9.0-0ubunt<plus-whatever's-cut-off-from-dpkg-l-above>" install
0.9?




More information about the ubuntu-users mailing list