ubuntu更改国内镜像文件

用java几年,最近想了解一下Python,打算安装Ubuntu系统,Ubuntu系统安装难免遇到一些问题,再次罗列

问题:Ubuntu系统安装,前部分有部分文件和命令的下载,如果不使用国内镜像文件,下载速度非常慢,这时就需要考虑更换镜像(推荐阿里的镜像)

补充(虚拟机用vm virtualbox )

镜像文件修改路径:vim /etc/apt/sources.list , 如果更改之前需要做保存,可以用cp /etc/apt/sources.list /etc/apt/sources.back

后添加阿里镜像:

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://www.heiqu.com/zwzfdz.html