在docker容器中找不到’make’命令
我有一个docker镜像,它使用ubuntu 14.04运行docker host.
在其中一个容器中,我正在尝试运行zookeeper并为kafka安装librdkafka库(先决条件库)以连接到第三方软件.我需要’make’命令在我将运行kafka适配器/连接器的容器中构建我的librdkafka库.
但是,有趣的是我无法在容器内运行’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
有人可以帮我理解为什么make没有安装在容器中,为什么我不能运行它?我落后于时间,需要在容器中运行此命令..真的很烦人.
就像抬头一样,我在列表文件中有以下内容:
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
帮助真的很感激!