First, update the system
sudo apt update && sudo apt upgrade
Then try to install MinerGate 1.5 hoping it will work (but, trust me. it won't work)
sudo wget https://minergate.com/download/xfast-ubuntu-cli -O MinerGate-xFast-cli-1.5-ubuntu && sudo dpkg -i MinerGate-xFast-cli-1.5-ubuntu
You will receive an error saying some dependency is not installed, and blah blah blah. so let's try to install those missing dependencies manually.
sudo apt-get install nvidia-cuda-dev
Trust me, you will fail to do so, let's throw away this garb…