配置Linux軟件下載源(Ubuntu)

  由於ubuntu 的默認源是國外的,下載軟件速度非常慢,並且經常下載失敗,下面主要是介紹一種如何添加國內源作爲軟件下載源的簡單方法。

1.軟件下載源的配置文件的路徑:/etc/apt/sources.list

blob.png


2.添加下載源地址

(1)打開“Software&Updates”。直接雙擊“sources.list”文件也可以打開“Software&Updates”。顯示對話框如下所示。


blob.png

blob.png


(2)點擊“Other Software”->“Add...”,打開對話框如下。

blob.png


(3)將需要添加的下載源地址添加到“APT line”中,點擊“Add Source”。

blob.png


3.更新源列表

 sudo apt-get update

 sudo apt-get upgrade

blob.png

blob.png


附件:從網絡中收集的下載源地址:

#tsing hua mirror site

  1. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe

  2. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe

  3. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe

  4. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe

  5. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe

  6. deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe

  7. deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe

  8. deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe

  9. deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe

  10. deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe


#163 mirror site

  1. deb http://mirrors.163.com/debian/ lenny main contrib non-free

  2. deb-src http://mirrors.163.com/debian lenny main contrib non-free 

  3. deb http://mirrors.163.com/debian-security/ stable/updates main

  4. deb-src http://mirrors.163.com/debian-security/ stable/updates main

  5. deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

  6. deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

  7. deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

  8. deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

  9. deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

  10. deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

  11. deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

  12. deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

  13. deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

  14. deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse


#official mirror site

  deb http://ftp.debian.org/debian/ lenny main contrib non-free

  deb-src http://ftp.debian.org/debian/ lenny main contrib non-free

  deb http://ftp.us.debian.org/debian/ lenny main contrib non-free

  deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

  deb http://security.debian.org/ stable/updates main

  deb-src http://security.debian.org/ stable/updates main

  deb http://volatile.debian.org/debian-volatile stable/volatile main

  deb-src http://volatile.debian.org/debian-volatile stable/volatile main


# ustc debian-multimedia

  deb http://debian.ustc.edu.cn/debian-multimedia/ stable main

  deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main

 

# ustc debian-security

  deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib

  deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章