debian 源设置 ( apt-get 不能安装)

使用说明

以Jessie为例, 编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份)

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

或者下载相应版本的sources.list, 覆盖/etc/apt/sources.list即可(操作前请做好相应备份)

说明:beaglebone默认用的是 wheezy版本,所以要把上面的Jessie替换一下。

 建议使用下面的源:

此外,还有中国地区的

## china  
deb http://ftp.cn.debian.org/debian/ wheezy main contrib non-free  
deb-src http://ftp.cn.debian.org/debian/ wheezy main contrib non-free  
  
deb http://ftp.cn.debian.org/debian/ wheezy-proposed-updates main contrib non-free  
deb-src http://ftp.cn.debian.org/debian/ wheezy-proposed-updates main contrib non-free  
  
deb http://ftp.cn.debian.org/debian/ wheezy-backports main contrib non-free  
deb-src http://ftp.cn.debian.org/debian/ wheezy-backports main contrib non-free  
  
# debian security updates  
deb http://security.debian.org/ wheezy/updates main contrib non-free  
deb-src http://security.debian.org/ wheezy/updates main contrib non-free  
  
# multimedia  
deb http://deb-multimedia.org wheezy main non-free  

= sid =

## china  
deb http://ftp.cn.debian.org/debian/ sid main contrib non-free  
deb-src http://ftp.cn.debian.org/debian/ sid main contrib non-free  
  
# multimedia  
deb http://deb-multimedia.org sid main non-free  

 

posted @ 2017-02-14 16:18  QIYUEXIN  阅读(2462)  评论(0编辑  收藏  举报