美文网首页
Debian修改apt-get 源

Debian修改apt-get 源

作者: 六分 | 来源:发表于2019-06-21 18:09 被阅读0次

用网易163源的方法

  • 第一步
mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list && \
echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
  • 第二步
apt-get update -y

接着就可以使用了,例如apt-get install vim -y

相关文章

网友评论

      本文标题:Debian修改apt-get 源

      本文链接:https://www.haomeiwen.com/subject/jupuqctx.html