由于一不小心手残点了更新系统,从此踏上了Ubuntu18.04的万劫不复之路......
ubuntu18.04与cuda10.0以上的版本匹配,而我在原来的ubuntu16.04中安装的是cuda9.0,为避免程序运行出现错误,打算重装cuda10.0(本人ubuntu新手,不知为何程序仍能在TensorFlow+GPU环境中运行)。过程比较坎坷,记录一下问题及解决措施:
1. sudo apt-get update指令报错,经检查发现软件源并未跟新,还是ubuntu16.04的软件源
解决措施:网上很多教程,经过尝试N多次用此方法成功。 https://blog.csdn.net/qq_35608277/article/details/83188337
Ubuntu 18.04 (LTS)代号为bionic。更换 /etc/apt/sources.list.d文件
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe mu