On 13/12/2018 07:27, Rajiv Telang wrote: > Hi, > > I recently created ubuntu 16.04 box and trying to install > 3.0.2-0ubuntu4~16.04.1 on it. Below are the steps that I ran. > <snip> > 4. Tried this command to install 3.0.2 > / *sudo apt-get install lxc=3.0.2-0ubuntu4~16.04.1* > / > And got below error/ > Reading package lists... Done > Building dependency tree > Reading state information... Done > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > > The following packages have unmet dependencies: > * lxc : Depends: lxc-utils (>= 3.0.2-0ubuntu4~16.04.1) but it is not > going to be installed* > E: Unable to correct problems, you have held broken packages./ > <snip>
> I tried to install the lxc-utils as well but unable to get to lxc > 3.0.2. Is there a way to install it on ubuntu 16.04? You need to enable the xenial-backports repository in the install process with more priority. apt policy is saying that backports have *less* priority that the updates and security repository. if i do this /*apt policy lxc -t xenial-backports*/ i get this: **/**/ lxc: Installed: (none) Candidate: 3.0.2-0ubuntu4~16.04.1 Version table: 3.0.2-0ubuntu4~16.04.1 990 990 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages 2.0.8-0ubuntu1~16.04.2 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 2.0.7-0ubuntu1~16.04.2 500 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 2.0.0-0ubuntu2 500 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages You will see that now 3.0.2 have more priority and you can do: /*sudo apt install lxc=3.0.2-0ubuntu4~16.04.1 -t xenial-backports*/ and lxc 3 will be installed cleanly in your xenial machine. -- Yonsy Solis
pEpkey.asc
Description: application/pgp-keys
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
