Ubuntu修改apt-get源方法
时间:10-02
整理:3721RD
点击:
我们在apt-get下载软件或是更新时常常会发现速度很慢,这里很可能和源有关,这个我们可以换为国内的源,以网易163源为例。首先备份下原有的源:
- sudo cp /etc/apt/source.list /etc/apt/source.list.bak
- sudo vim /etc/apt/source.list
- deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
- deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
- deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
- deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
- deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
- deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
- sudo apt-get update
- sudo apt-get upgrade