bash doesn't think lxc is installed, apt thinks it is

This screenshot sums up my problem:

Beautiful screenshot

I've run apt-get update, upgrade, purge, autoremove and then install again. No luck. Anyone know why this is happening?

4

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 lxc

you 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.

7

I 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like