码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu18.0.4 apt换源

时间:2019-10-28 10:44:09      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:ports   sources   class   bsp   res   sed   port   src   nbsp   

#打开配置文件
sudo vim /etc/apt/sources.list
sudo gedit /etc/apt/sources.list

#替换里面的内容   可先备份sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
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

 

Ubuntu18.0.4 apt换源

标签:ports   sources   class   bsp   res   sed   port   src   nbsp   

原文地址:https://www.cnblogs.com/yuanzessrs/p/11750643.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!