BeagleBone Black as 6LoWPAN Border Router


 I am trying to setup BBB as Contiki-6LoWPAN Border Router following the 
instruction from here 
As my network is IPv4 I need to install a number of packages according to 
The problems I have:
root@beaglebone:~/radvd/radvd-1.15# apt-get install libcheck-dev 
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcheck-dev

2) after disabling Conman, I lost SSH
systemctl stop connman.service 
systemctl disable connman.service 

cat > /etc/network/interfaces <<EOF # The loopback network interface auto 
lo iface lo inet loopback # The primary network interface auto eth0 iface 
eth0 inet static address netmask gateway EOF

cat > /etc/resolv.conf <<EOF nameserver EOF

From here SSH is gone and no network