--use-lxd doesn't work on TravisCI


#1

I can not get snapcraft 3+ working on TravisCI Xenial in any way. Last attempt failed, even given that lxd is installed from snap.

$ snapcraft --use-lxd
Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
The 'LXD' provider does not support having the 'lxd' or 'lxd-client' deb packages installed. To completely migrate to the LXD snap run 'lxd.migrate' and try again.
The command "snapcraft --use-lxd" exited with 2.

https://travis-ci.org/yakshaveinc/linux/builds/523825250#L518


#2

FWIW I think this now works properly


#3

As the error mentions, you need to remove the debs.