This screenshot sums up my problem:
I've run apt-get update, upgrade, purge, autoremove and then install again. No luck. Anyone know why this is happening?
2 Answers
Interesting. I get the same:
$ sudo apt-get install lxc
...
$ lxc
The program 'lxc' is currently not installed. You can install it by typing:
sudo apt-get install lxc
$If you run:
$ dpkg-query -L lxcyou can see what files lxc has installed. There are a bunch in /usr/bin that start lxc-, like /usr/bin/lxc-list which do work, and some start up stuff in /etc/init.d/.
So, I reckon it is installed OK, you just need to find the name of the right executable.
7I just ran into this problem on Ubuntu 20.04 and figured out a solution from:
TL;DR You need to install lxd-client package to get lxc command instead of lower level lxc-* commands.