apt-get update 执行较慢问题

首先,备份一下Ubuntu 原来的源地址列表文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

在终端  cd /etc/apt 修改文件sources.list

vim sources.list

执行0, $d命令清空该文件,然后将一下内容复制进去,即将镜像源设置为阿里的

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
--------------------- 

原文参考:https://blog.csdn.net/stopping5/article/details/80493643 
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(docker)