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。

猜你喜欢

转载自blog.csdn.net/weixin_39465823/article/details/86560922