我是靠谱客的博主 爱撒娇保温杯,这篇文章主要介绍Docker ubuntu中更新软件源,现在分享给大家,希望可以做个参考。

cp /etc/apt/sources.list
/etc/apt/sources.list_buckup -> 将/etc/apt目录下的文件进行备份,防止意外

vi /apt/etc/sources.list 删除所有行(命令为ggdG),并将最后的阿里软件源粘贴,使用其他的也ok

apt-get clean -> 删除包缓存中的所有包
apt-get update -> 更新生效
deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe

最后

以上就是爱撒娇保温杯最近收集整理的关于Docker ubuntu中更新软件源的全部内容,更多相关Docker内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部