vim /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
sudo apt update
sudo apt install cuda-toolkit-10-0
export PATH=/usr/local/cuda-10.0/bin:$PATH