linux相关源配置

1. debian apt-get源配置

配置方法bash

debian 7.x (wheezy)阿里云

编辑/etc/apt/sources.list文件(须要使用sudo), 在文件最前面添加如下条目(操做前请作好相应备份)spa

deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
deb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
复制代码

debian 8.x (jessie)code

编辑/etc/apt/sources.list文件(须要使用sudo), 在文件最前面添加如下条目(操做前请作好相应备份)get

deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
复制代码

debian 9.x (stretch)it

编辑/etc/apt/sources.list文件(须要使用sudo), 在文件最前面添加如下条目(操做前请作好相应备份)class

deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
复制代码

配置完更新一下源就能够:sed

apt-get update
apt-get upgrade
复制代码

参考

阿里云debian apt-get源配置配置

相关文章
相关标签/搜索