配置软件源的方式有两个

第一种直接修改

/etc/apt/sources.list

软后执行:

apt-get update

第二种,在/etc/apt/sources.list.d目录下添加软件源文件,根据你的软件源作用来起名,例如我们要用到google chrome的一些软件,就可以起名为:

google-chrome.list

添加如下内容:

deb http://dl.google.com/linux/chrome/deb/ stable main

保存后执行:

apt-get update

软件安装使用命令:

apt-get install <软件名>   #例如 apt-get install tree

 

 

参考文档:

https://blog.csdn.net/weixin_34194379/article/details/94235655

posted on 2021-02-22 13:44  EZgod  阅读(475)  评论(0编辑  收藏  举报