我是靠谱客的博主 闪闪战斗机,这篇文章主要介绍debian9.6关于源main,contrib,non-free的小知识,现在分享给大家,希望可以做个参考。

 一般我们将原来的源改为国内的源,修改的是/etc/apt/sources.list文件,修改内容如下:

guoyanzhang@bogon:~$ sudo cat /etc/apt/sources.list
[sudo] guoyanzhang 的密码:
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib

deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib

也可以通过software & updates(搜索栏搜索)来修改,如下(debian software):

 可以看到我们修改source.list文件,里面有main,contrib,non-free这三个关键字,上面就是它们的意思,可以看到我们还可以从光盘中安装包。

至于我们修改为国内源就是如下(other software):

源代码就是deb-src。

最后

以上就是闪闪战斗机最近收集整理的关于debian9.6关于源main,contrib,non-free的小知识的全部内容,更多相关debian9.6关于源main,contrib,non-free内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(136)

评论列表共有 0 条评论

立即
投稿
返回
顶部