I have the same problem:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
$ dpkg -l | egrep 'juju|bash'
ii bash 4.3-14ubuntu1.1
amd64 GNU Bourne Again SHell
ii bash-completion 1:2.1-4.2ubuntu1.1 all
programmable completion for the bash shell
ii command-not-found 0.3ubuntu16.04.2 all
Suggest installation of packages in interactive bash sessions
ii juju 2.0~beta15-0ubuntu2.16.04.1 all
next generation service orchestration system
ii juju-2.0 2.0~beta15-0ubuntu2.16.04.1
amd64 Juju is devops distilled - client
$ juju <I press tab here to autocomplete> _juju_complete_2_0: command
not found
I followed the workaround in https://github.com/juju/juju/pull/5057/files and
copied the file juju-2.0 from that URL in my /etc/bash_completion.d/ directory
and now it works:
$ juju st <I press tab here to autocomplete>
status status-history storage storage-pools
$ juju status
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657
Title:
Bash completion needed for versioned juju commands
To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1570657/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs