Ubuntu 更换下载源
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 更换下载源
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Ubuntu將下載官方源更換為國內源
由于某些原因,在國內更新軟件都很慢,可以改源為國內源
1、備份原始文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、打開文件
vi /etc/apt/sources.list
3、注釋原文件內容添加新地址
#阿里云 deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
或者網易云
#網易163 deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
或者清華源
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
4、保存退出
ESC + : + wq
5、更新源
sudo apt-get update
6、更新軟件
sudo apt-get dist-upgrade sudo apt-get upgrade
總結
以上是生活随笔為你收集整理的Ubuntu 更换下载源的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 业务功能开发-登录(一)
- 下一篇: QPainter--画笔(QPen)和画