备份:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
vim编辑list文件:
sudo vim /etc/apt/sources.list
文件开头添加:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
保存退出。
更新不报错,说明没问题
sudo apt-get update
我这里安装python3.5。
sudo apt-get install python3.5