直接编辑:sudo /etc/apt/sources.list文件
deb http://源地址/ubuntu/ xenial main universe restricted multiverse
deb http://源地址/ubuntu/ xenial-updates main universe restricted multiverse
deb http://源地址/ubuntu/ xenial-backports main restricted universe multiverse
deb http://源地址/ubuntu/ xenial-security main universe restricted multiverse
deb http://源地址/ubuntu/ xenial-proposed main universe restricted multiverse
改完后运行:sudo apt-get update更新索引
===========我是华丽的分割线===========
更多知识:
点击关注专题:嵌入式Linux&ARM
或浏览器打开:https://www.jianshu.com/c/42d33cadb1c1
或扫描二维码:
![6217760-fb25d7cd85861e9a.jpg](https://i-blog.csdnimg.cn/blog_migrate/e5b2657bbbc9ed3e988cff5b2ce9aeec.jpeg)
扫我