我有一个Docker镜像,在其中运行着Ubuntu14.04的Docker主机。
在其中一个容器中,我试图运行Zookeeper并安装librdkafka库(Kafka连接到第三方软件的先决条件库)。我需要使用“make”命令来构建我的librdkafka库,以便在容器内运行Kafka适配器/连接器。
然而,有趣的是我无法在容器内运行“make”命令,但在Docker主机上却可以正常工作。当我尝试使用
apt-get install make
我收到了以下信息,但它对我来说没有太多意义:
root@svi-esp-service:/# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make 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 'make' has no installation candidate
有人能帮我理解为什么该制品在容器中没有安装,为什么我无法运行它吗?我时间紧迫,需要在容器中运行这个命令...真的很烦人。
提醒一下,我在列表文件中有以下内容:
root@svi-esp-service:/# cat /etc/apt/sources.list
deb http://http.debian.net/debian jessie main
deb http://http.debian.net/debian jessie-updates main
deb http://security.debian.org jessie/updates main
非常感谢您的帮助!