Debian7 apt源设置
生活随笔
收集整理的這篇文章主要介紹了
Debian7 apt源设置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
剛裝完系統時是沒有 apt-spy 的,這時候我們可以暫時先找個可用的源代替,如(寫在 /etc/apt/sources.list 中):
deb http://http.us.debian.org/debian/ stable main
執行以下命令更新軟件包列表:
apt-get update
然后執行以下命令安裝 apt-spy:
apt-get install apt-spy
從源上下載一份源的鏡像列表(http://http.us.debian.org/debian/README.mirrors.txt):
apt-spy update
測試亞洲地區的源的速度,并自動寫入 sources.list:
apt-spy -d unstable -a asia -t 5
最終,sources.list 內容為:
deb http://ftp.hk.debian.org/debian/ stable main
deb-src http://ftp.hk.debian.org/debian/ stable main
deb http://security.debian.org/ stable/updates main
?
轉載于:https://www.cnblogs.com/duyy/p/3640009.html
總結
以上是生活随笔為你收集整理的Debian7 apt源设置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一步步学习微软InfoPath2010和
- 下一篇: 趣谈unicode,ansi,utf-8