原文:https://blog.csdn.net/nbxuwentao/article/details/90524349

 

方案一:

解决方案

1. vi etc/apt/sources.list

2. 将里面的内容替换成下面这些(artful可以更换,主要看http://mirrors.163.com/ubuntu/dists/下面有哪些可用的前缀自行更换)

deb http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse 
之后输入:
sudo apt-get update

 



方案2:
1)编辑/etc/apt/sources.list文件
在命令行中输入: sudo vim /etc/apt/sources.list 或者 sudo gedit /etc/apt/sources.list 推荐使用后者
(2)在上面打开的文件开头添加(中科大的源)
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
之后输入:
sudo apt-get update

 




posted on 2019-11-28 23:27  lshan  阅读(2554)  评论(0编辑  收藏  举报