BeableBone 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 instructions:
The problems I have:

root@beaglebone:~/radvd/radvd-1.15# apt-get install libcheck-dev libdaemon-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libcheck-dev

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