[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"

配置docker的源的时候 报错了.

[root@vagrant-centos65 yum.repos.d]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror, versionlock
adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
Trying other mirror.
Could not fetch/save url http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"

[Errno 14] PYCURL ERROR 22 -
查了很久 多半是什么404然后改下源.
Yum源损坏,按照如下进行下载并替换:
先把原本的yum源重命名进行保存
然后到http://mirrors.163.com/.help/centos.html下载自己需要的版本,我这里是centos6,
按照这个说的修改没效果.

最后在:/etc/yum.repos.d下发现已经有了一个docker-ce.repo
我把这个文件删除后,重新add-repo下就ok了

你可能感兴趣的:(linux)