软件开发Docker

无法安装docker?

第一步出错:
root@bp:/home/bp# apt-get install docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker
root@bp:/home/bp# sudo apt-get update
Err http://security.ubuntu.com trusty-security InRelease

Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://cn.archive.ubuntu.com trusty InRelease

Err http://cn.archive.ubuntu.com trusty-updates InRelease

Err http://cn.archive.ubuntu.com trusty-backports InRelease

Err http://cn.archive.ubuntu.com trusty Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://cn.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://cn.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'cn.archive.ubuntu.com'

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'cn.archive.ubuntu.com'

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'cn.archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
第二步出错:root@bp:/home/bp# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@bp:/home/bp# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@bp:/home/bp#
第三步出错:root@bp:/home/bp# sudo apt-get install -y docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker.io
E: Couldn't find any package by regex 'docker.io'
一般情况这一步都能成功,按网上说的应用以下指令
root@bp:/home/bp# curl -sSL https://get.docker.com/ubuntu/ | sudo sh
还是报错curl: (6) Could not resolve host: get.docker.com

之后root@bp:/home/bp# sudo apt-get update && sudo apt-get upgrade
出现错误0% [Connecting to cn.archive.ubuntu.com] [Connecting to security.ubuntu.com]
Err http://security.ubuntu.com trusty-security InRelease

Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://cn.archive.ubuntu.com trusty InRelease

Err http://cn.archive.ubuntu.com trusty-updates InRelease

Err http://cn.archive.ubuntu.com trusty-backports InRelease

Err http://cn.archive.ubuntu.com trusty Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://cn.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Err http://cn.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'cn.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'cn.archive.ubuntu.com'

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'cn.archive.ubuntu.com'

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'cn.archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

哪位大圣看看如何解决

参与8

2同行回答

bryanbryan软件架构设计师金融研发
错误提示都是关系与无法解析域名的问题,测试一下这个域名是否正确,是不是apt的源配置不太准确,按照官方来就可以。显示全部

错误提示都是关系与无法解析域名的问题,测试一下这个域名是否正确,是不是apt的源配置不太准确,按照官方来就可以。

收起
银行 · 2018-10-10
yinxinyinxin项目经理某金融机构
【Docker】【中文】整理文档-安装篇/使用篇http://www.talkwithtrend.com/Document/detail/tid/179547给你推荐一个比较好的docker安装文档。显示全部

【Docker】【中文】整理文档-安装篇/使用篇
http://www.talkwithtrend.com/Document/detail/tid/179547

给你推荐一个比较好的docker安装文档。

收起
银行 · 2018-10-08
浏览1740

提问者

WSF123
软件开发工程师瑞斯康达科技发展股份有限公司

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2018-09-29
  • 关注会员:3 人
  • 问题浏览:2477
  • 最近回答:2018-10-10
  • X社区推广