微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > 嵌入式系统设计讨论 > Ubuntu修改apt-get源方法

Ubuntu修改apt-get源方法

时间:10-02 整理:3721RD 点击:
      我们在apt-get下载软件或是更新时常常会发现速度很慢,这里很可能和源有关,这个我们可以换为国内的源,以网易163源为例。首先备份下原有的源:

  1. sudo cp /etc/apt/source.list /etc/apt/source.list.bak

复制代码

然后进行修改:

  1. sudo vim /etc/apt/source.list

复制代码

把source.list的文件内容替换如下:

  1. deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
  2. deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
  3. deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
  4. deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
  5. deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
  6. deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
  7. deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
  8. deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
  9. deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
  10. deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted

复制代码

接着进行更新:

  1. sudo apt-get update
  2. sudo apt-get upgrade

复制代码

最后你可以尝试下安装软件或是更新,你会发现比以前会快很多,方法简单却十分好使!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top