Modprobe: FATAL: Module vcan not found in directory /lib/modules/4.15.0-1023-gcp

I develop a nodejs native extension which requires socketcan kernel modules to be loaded (at leas the vcan) to perform automated tests. These are part of vanilla Xenial image but are missing in travis ci.

sudo modprobe can
sudo modprobe can_raw
sudo modprobe vcan

# Config virtual CAN device (vcan0)
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0

# Create vcan1 only
sudo ip link add dev vcan1 type vcan

I had this same issue and was able to solve it with
sudo apt-get install linux-modules-extra-$(uname -r)