ubuntu更换apt-get源

前端之家收集整理的这篇文章主要介绍了ubuntu更换apt-get源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Ubuntu的源列表在/etc/apt/sources.list中

清华大学源:

  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

阿里源

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

ubuntu官方源

  1. # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
  2.  
  3. # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
  4. # newer versions of the distribution.
  5. deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
  6. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
  7.  
  8. ## Major bug fix updates produced after the final release of the
  9. ## distribution.
  10. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
  11. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
  12.  
  13. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  14. ## team,and may not be under a free licence. Please satisfy yourself as to
  15. ## your rights to use the software. Also,please note that software in
  16. ## universe WILL NOT receive any review or updates from the Ubuntu security
  17. ## team.
  18. deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
  19. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
  20. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
  21. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
  22.  
  23. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  24. ## team,and may not be under a free licence. Please satisfy yourself as to
  25. ## your rights to use the software. Also,please note that software in
  26. ## multiverse WILL NOT receive any review or updates from the Ubuntu
  27. ## security team.
  28. deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
  29. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
  30. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
  31. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
  32.  
  33. ## N.B. software from this repository may not have been tested as
  34. ## extensively as that contained in the main release,although it includes
  35. ## newer versions of some applications which may provide useful features.
  36. ## Also,please note that software in backports WILL NOT receive any review
  37. ## or updates from the Ubuntu security team.
  38. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
  39. # deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
  40.  
  41. ## Uncomment the following two lines to add software from Canonical's
  42. ## 'partner' repository.
  43. ## This software is not part of Ubuntu,but is offered by Canonical and the
  44. ## respective vendors as a service to Ubuntu users.
  45. deb http://archive.canonical.com/ubuntu xenial partner
  46. # deb-src http://archive.canonical.com/ubuntu xenial partner
  47.  
  48. deb http://security.ubuntu.com/ubuntu xenial-security main restricted
  49. # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
  50. deb http://security.ubuntu.com/ubuntu xenial-security universe
  51. # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
  52. deb http://security.ubuntu.com/ubuntu xenial-security multiverse
  53. # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
  54. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted multiverse universe

猜你在找的Ubuntu相关文章