下面的内容应该开箱即用吗?
$ docker pull ubuntu:14.04
$ docker run -ti ubuntu:14.04
root@8f0dcfdae9b6:/# apt-get update不幸的是,我得到了:
...
Get:18 http://archive.ubuntu.com trusty-security/universe amd64 Packages [146 kB]
Fetched 2490 kB in 8s (284 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.因此,我开始尝试手动添加GPG密钥的整个过程,就像here建议的那样,但官方的Ubuntu图像会如此开箱即用,这似乎是疯了。
这是Docker的事情吗,还是你认为Ubuntu的档案中有什么东西被破坏了?
编辑
我也试过Ubuntu 14.04.2。
编辑2
只在Boot2docker / OS X上发生。在Ubuntu (主机系统)上不会重新创建。我尝试过升级boot2docker (升级到1.8),并从一个新的ISO镜像开始,但这没有帮助。
发布于 2015-08-12 17:12:55
我相信这是旧版Ubuntu普遍存在的问题,并不局限于Docker。
试试ubuntu:14.04.2
发布于 2015-08-12 20:14:38
最终唯一起作用的是,在尝试用apt-key adv手动设置GPG密钥无济于事之后,用this tool生成的条目覆盖apt sources.list文件。
需要明确的是,我仍然会收到一些包无法验证的警告,但至少在更新后,我所依赖的包的实际安装成功了。所以这不是一个真正的解决方案,更像是一个黑客。
https://stackoverflow.com/questions/31960585
复制相似问题