There was an error in my comment, in the libncurses5 installation step. In my comment, libncurses5 was downloaded but the instructions say to install libtinfo.
You have to do this instead.
download the libtinfo5_6.4-2_amd64
curl -O http://launchpadlibrarian.net/648013227/libncurses5_6.4-2_amd64.deb
then install it with dpkg:
sudo dpkg -i libncurses5_6.4-2_amd64.deb
To fix the problem with libnss3-tools, just install it with apt:
sudo apt install libnss3-tools
This is what worked for me.