Cannot update from 17.6 to 18 nightly

I followed these instructions:

Enabled debug logging now and entered the following commands in SSH:
sudo apt-get update
sudo apt-get dist-upgrade

https://pastebin.com/6fdLepB2