apt-get install juju does not install /usr/bin/juju

Bug #1570759 reported by Chris Stratford
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Released
High
Unassigned
juju-core
Fix Released
High
Martin Packman
juju-core (Ubuntu)
Fix Released
High
Unassigned

Bug Description

On a newly installed xenial box, installing juju does not result in the installation of /usr/bin/juju:

$ juju status
juju: command not found

It looks like it installs juju-1, but not juju (I would expect something in alternatives for this, but nothing there):

$ cat /var/lib/dpkg/info/juju-1.list
/.
/usr
/usr/bin
/usr/bin/juju-1
/usr/lib
/usr/lib/juju-1.25
/usr/lib/juju-1.25/bin
/usr/lib/juju-1.25/bin/juju
...

$ uname -a
Linux anduin 4.4.0-18-generic #34-Ubuntu SMP Wed Apr 6 14:01:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

chris@anduin:~$ apt-cache policy juju
juju:
  Installed: 1.25.0-0ubuntu3
  Candidate: 1.25.0-0ubuntu3
  Version table:
 *** 1.25.0-0ubuntu3 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status
chris@anduin:~$ apt-cache policy juju-core
juju-core:
  Installed: 1.25.4-0ubuntu5
  Candidate: 1.25.4-0ubuntu5
  Version table:
 *** 1.25.4-0ubuntu5 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status
chris@anduin:~$ apt-cache policy juju-1
juju-1:
  Installed: 1.25.4-0ubuntu5
  Candidate: 1.25.4-0ubuntu5
  Version table:
 *** 1.25.4-0ubuntu5 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Curtis Hovey (sinzui)
tags: added: packaging xenial
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Martin Packman (gz)
Changed in juju-release-tools:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Martin Packman (gz)
Revision history for this message
Martin Packman (gz) wrote :

This is a transitional issue due to the new juju 1.25 packaging migrating out of proposed, but the juju 2.0 packaging still being stuck there. To work around for now, you can enable the proposed pocket then run `apt-get install juju` again.

Chad Smith (chad.smith)
tags: added: kanban-cross-team
tags: removed: kanban-cross-team
Martin Packman (gz)
no longer affects: juju-release-tools
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in juju-core (Ubuntu):
status: New → Confirmed
Changed in juju-core (Ubuntu):
importance: Undecided → High
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Martin Packman (gz) wrote :

Please run apt-get update and apt-get upgrade, this issue should now be resolved.

We have a few pending changes to make the first upgrade experience clearer, for now note that you can run 1.25 with the 'juju-1' name, and 'juju' will be 2.0.

Changed in juju-core:
status: Triaged → Fix Released
Changed in juju-core (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Chris Stratford (chris-gondolin) wrote :

I do now have a /usr/bin/juju as expected. Thanks.

$ ls -l /usr/bin/juju*
lrwxrwxrwx 1 root root 8 Apr 19 10:31 /usr/bin/juju -> juju-2.0
lrwxrwxrwx 1 root root 9 Apr 20 01:40 /usr/bin/juju-1 -> juju-1.25
-rwxr-xr-x 1 root root 68 Apr 20 01:40 /usr/bin/juju-1.25
-rwxr-xr-x 1 root root 67 Apr 19 10:31 /usr/bin/juju-2.0
-rwxr-xr-x 1 root root 331 Mar 7 12:15 /usr/bin/juju-deployer
lrwxrwxrwx 1 root root 45 Apr 20 08:30 /usr/bin/juju-run -> /home/chris/.juju/local/tools/machine-0/jujud

Simon Quigley (tsimonq2)
Changed in hundredpapercuts:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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