APT源

Debian 6.0.7

deb http://mirrors.163.com/debian squeeze main non-free contrib
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main non-free contrib
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free

deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free

deb http://http.us.debian.org/debian squeeze main contrib non-free
deb http://non-us.debian.org/debian-non-US squeeze/non-US main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free

Debian(squeeze) 设置 apt 源

deb http://mirrors.ustc.edu.cn/debian/ squeeze main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ squeeze-proposed-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ squeeze main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ squeeze-proposed-updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-backports/ squeeze-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-backports/ squeeze-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-multimedia/ squeeze-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ squeeze-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ squeeze/updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ squeeze/updates main non-free contrib
# apt-get update

如何更新Debian源和导入公钥

  1. 一、国内源:

      163

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

    deb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free

    deb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free

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

    deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free

    deb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free

      教育

    deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib

    deb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-free

    deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free

    科技大学

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

    deb-src http://ftp.cn.debian.org/debian squeeze main contrib non-free  *主站

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

    deb-src http://ftp.tw.debian.org/debian squeeze main contrib non-free  香港

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

    deb-src http://ftp.hk.debian.org/debian squeeze main contrib non-free  搜狐镜像

    deb http://mirrors.sohu.com/debian squeeze main contrib non-free

    deb-src http://mirrors.sohu.com/debian squeeze main contrib non-free  北京理工大学

    deb http://mirror.bitunion.org/debian/ stable main contrib non-free

    deb-src http://mirror.bitunion.org/debian/ stable main contrib non-free

    二、官方源

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

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

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

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

    deb http://mirrors.kernel.org/debian/ squeeze main contrib non-free

    deb-src http://mirrors.kernel.org/debian/ squeeze main contrib non-free

    三、dotdeb源  官方

    deb http://packages.dotdeb.org stable all

    deb-src http://packages.dotdeb.org stable all

    deb http://php53.dotdeb.org stable all

    deb-src http://php53.dotdeb.org stable all  dotdeb japan 源

    deb http://download.softagency.net/debian/dotdeb/ stable all

    deb-src http://download.softagency.net/debian/dotdeb/ stable all

    ------------------------------------------------------------------

  2.  

    在此说明配置源的方法:

    很简单,把源地址写进 /etc/apt/sources.list 就可以了。

    可以用 # 注释。

    推荐163,搜狐等源。

  3.  

    sources.list 写好后,需要更新一下。使用如下命令:

    apt-get update

    如果提醒你需要导入密钥,则:

    gpg --keyserver <KeyServer> --recv <公钥签名>gpg --export --armor <公钥签名> | sudo apt-key add -

    其中:

    <KeyServer>,key服务器,可以填 keyserver.ubuntu.com ,当然也可以是   其他的喽。

    公钥签名会在update的提示中说明的。

    也可是使用如下形式:

    apt-key adv --keyserver <KeyServer> --recv-keys <公钥签名>

  4. 5

    经过以上步骤,源已经更新完毕,可以试着使用新源更新一下软件库喽:

    apt-get upgrade

上一篇:记一次yii2 上传文件


下一篇:VS Code 自动修改和保存 代码风格 == eslint+prettier