大网数据广告活动
服务器运维问答

docker.io package reports missing only on EC2

· 52CE 我爱测

I'm trying to install Docker on a Debian Jessie EC2 image. Specifically, I'm using this AMI: https://wiki.debian.org/Cloud/AmazonEC2Image/Jessie . On a locally running Debian machine sudo apt-get install docker.io does the trick.…

问题原文

原帖链接 · Oliver Dain · CC BY-SA 3.0

I'm trying to install Docker on a Debian Jessie EC2 image. Specifically, I'm using this AMI: https://wiki.debian.org/Cloud/AmazonEC2Image/Jessie. On a locally running Debian machine sudo apt-get install docker.io does the trick. However, if I run that on an EC2 instance booted from the official Debian EC2 AMI I get:

admin@ip-10-136-121-82:~$ sudo apt-get install docker.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker.io is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker.io' has no installation candidate

Things I've tried:

  • Running apt-get update before the above install command
  • Changing /etc/apt/sources.list so it's identical to what I'm using successfully locally, then apt-get update and then retry the install
  • apt-get dist-upgrade, a reboot, and then retrying the install

None of the above work. At this point my best guess is that the AMI uses a different, Xen compatible kernel which isn't Docker compatible and somehow apt is smart enough to know that and hide incompatible packages, but that's a wild guess and, if correct, I don't know of a good way to correct that and still use the official Debian AMI.

any help?

已采纳解答

原帖链接 · Oliver Dain · CC BY-SA 3.0

Turns out jessie removed docker.io today and not all repos had updated when I did these experiments. To make things extra confusing, http.docker.net is really a broker service that sends you to other mirrors so EC2 was seeing one, up to date, mirror while my local box was seeing a mirror that still had docker.io available.

Package history: https://packages.qa.debian.org/d/docker.io.html

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-03-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。