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

sktsee sktseer at gmail.com
Wed Nov 20 21:55:06 UTC 2013


On Wed, 20 Nov 2013 20:29:28 +0200, Kevin Wilson wrote:

> Hi,
> I no tried on a new machine, on which Ubunutu 13.04 was just installed
> today.
> Nothing else was done on this machine. The lxc package is not installed
> yet.
> When I  try "apt-get source lxc"
> I have this result, which shows that it tries to download  lxc
> 1.0.0~alpha1....
> There is some networking error. But still , I think that if I will run
> "apt-get install lxc" it will install lxc 0.9. So what should I do to
> install lxc -0.9 from source (and not lxc -1.0.0 alpah)?
> 

You are running into this bug:

apt-get source ignores default release when source package selected 
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1179999

As Tom suggested, you should specify the version of the source package 
you want to download, otherwise apt-get simply fetches the highest 
release version of the source package available regardless of what binary 
version is installed or priority of the repository it comes from.

The following command format works on my machine:

$ apt-get source lxc=0.9.0-0ubuntu3.7

-- 
sktsee





More information about the ubuntu-users mailing list