Debain软件源sources.list文件的更新

来源:互联网 发布:纽约大学录取条件 知乎 编辑:程序博客网 时间:2024/06/08 09:24

apt-get install apt-spy

apt-spy -d stable -a asia -t 5

其中-d选项指定发行版本,可选项为”stable、testing、unstable”。unstable为非稳定版,stable为稳定版,建议选择stable。
-a选项指定debian安装源服务器的区域,如asia、Europe、North-America。asia为亚洲,建议选择此项。
-t为超时阈值。设置较小的值可以忽略较慢的服务器。为了选择较小的服务器,可以选择一个比较小的值。

cp /etc/apt/sources.list.d/apt-spy.list /etc/apt/sources.list

apt-get update

0 0
原创粉丝点击