Installed juju using following command on Ubuntu 19.04
sudo snap install juju --classic
This installed lxd as well. When I try to invoke "sudo lxd -h" or "sudo lxc list" or "sudo juju bootstrap" I get following error message
sudo: juju: command not found
sudo: lxc: command not found
sudo: lxd: command not found
Where as if I run those commands without sudo, I get following
Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied
Not sure what went wrong. Here is what happened. First I was able to install juju and it worked fine as expected. Later I installed OpenStack using devstack. I removed OpenStack using ./unstack.sh and ./clean.sh Seems like something went wrong in that which is causing me the above issue.
Any suggestions to fix this?
Thanks