2.1b4: installation on trusty requires lxd from backports

Bug #1656027 reported by Andreas Hasenack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Undecided
Curtis Hovey
Landscape Server
Fix Released
Low
David Britton

Bug Description

If you just follow these steps to try to use juju 2.1beta4 on trusty, it will fail:

add-apt-repository ppa:juju/devel
apt update
apt install juju

 juju : Depends: juju-2.0 (>= 1:2.1~beta4-0ubuntu1~14.04.1~juju1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The reason is lxd:
root@trusty:~# apt install juju-2.0
(...)
The following packages have unmet dependencies:
 juju-2.0 : Depends: lxd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

root@trusty:~# apt install lxd
(...)
The following packages have unmet dependencies:
 lxd : Depends: liblxc1 (>= 2.0.0~) but 1.0.8-0ubuntu0.4 is to be installed
E: Unable to correct problems, you have held broken packages.

root@trusty:~# apt-cache policy liblxc1
liblxc1:
  Installed: (none)
  Candidate: 1.0.8-0ubuntu0.4 <------------
  Version table:
     2.0.6-0ubuntu1~ubuntu14.04.1 0
        100 http://br.archive.ubuntu.com/ubuntu/ trusty-backports/main amd64 Packages
     1.0.8-0ubuntu0.4 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.0.3-0ubuntu3 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

You have to manually tell apt to install lxd from backports: "apt install -t trusty-backports lxd"

Then you can "apt install juju" on trusty.

Note: I used a trusty container (lxd) for this test, maybe the trusty image used for that doesn't have backports enabled by default.

Tags: packaging
Revision history for this message
Anastasia (anastasia-macmood) wrote :

This is mostly documentation issue. I have added one to ensure that manual gets updated: https://github.com/juju/docs/issues/1595.

Thank you for reporting it and for finding the solution!

Changed in juju:
status: New → Invalid
tags: added: design
tags: removed: design
Revision history for this message
David Britton (dpb) wrote :

Adding landscape to put in a workaround for out build process.

Changed in landscape:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → David Britton (davidpbritton)
Changed in landscape:
milestone: none → 17.02
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
tags: added: packaging
Changed in juju:
assignee: nobody → Curtis Hovey (sinzui)
status: Invalid → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Curtis Hovey (sinzui) wrote :

This was fixed on 2017-02-23 in the rebuild of the package, see bug 1654082

Changed in landscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.