配置Ubuntu Server高速apt-get源

2022年 10月 18日 发表评论
免费、便宜/高性价比 服务器汇总(已更新):点击这里了解

本站教程收集整理的这篇文章主要介绍了配置Ubuntu Server高速apt-get源,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。

今天刚装上Ubuntu Server 12,默认的apt-get源比较慢。更改一下源地址。

方法:

1、修改源地址:
cp/etc/apt/sources.list/etc/apt/sources.list.bak
vim/etc/apt/sources.list

加入如下内容(中科大的):

debhttp://mirrorS.Ustc.edu.cn/ubuntu/ precise-updates main reStricted
deb-src http://mirrorS.Ustc.edu.cn/ubuntu/ precise-updates main reStricted
deb http://mirrorS.Ustc.edu.cn/ubuntu/ precise universe
deb-src http://mirrorS.Ustc.edu.cn/ubuntu/ precise universe
deb http://mirrorS.Ustc.edu.cn/ubuntu/ precise-updates universe
deb-src http://mirrorS.Ustc.edu.cn/ubuntu/ precise-updates universe
deb http://mirrorS.Ustc.edu.cn/ubuntu/ precise multiverse
deb-src http://mirrorS.Ustc.edu.cn/ubuntu/ precise multiverse
deb http://mirrorS.Ustc.edu.cn/ubuntu/ precise-updates multiverse
deb-src http://mirrorS.Ustc.edu.cn/ubuntu/ precise-updates multiverse
deb http://mirrorS.Ustc.edu.cn/ubuntu/ precise-BACkportsmain reStricted universe multiverse
deb-src http://mirrorS.Ustc.edu.cn/ubuntu/ precise-BACkports main reStricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main reStricted
deb-src http://security.ubuntu.com/ubuntu precise-security main reStricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

比较快的源:

搜狐源:
deb http://mirrors.sohu.com/ubuntu/ precise-updates main reStricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main reStricted
deb http://mirrors.sohu.com/ubuntu/ precise universe
deb-src http://mirrors.sohu.com/ubuntu/ precise universe
deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb http://mirrors.sohu.com/ubuntu/ precise multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-BACkports main reStricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-BACkports main reStricted universe multiverse

网易源:

deb http://mirrors.163.com/ubuntu/ precise-updates main reStricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main reStricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-BACkports main reStricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-BACkports main reStricted universe multiverse

更新看看速度:
sudo apt-getupdate sudo apt-get upgrade

本站总结

以上是本站教程为你收集整理的配置Ubuntu Server高速apt-get源全部内容,希望文章能够帮你解决配置Ubuntu Server高速apt-get源所遇到的程序开发问题。

如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。

小咸鱼

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: