首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到包gluu server

找不到包gluu server
EN

Stack Overflow用户
提问于 2020-01-08 19:33:26
回答 2查看 206关注 0票数 3

我是mac用户,不能在mac上安装gluu,所以我尝试在Dockerfile中的ubuntu上安装它:

代码语言:javascript
复制
FROM ubuntu:16.04
RUN  apt-get update
RUN  apt-get upgrade
RUN apt-get install -y \
        curl \
        openssl \
        ca-certificates

RUN echo "deb https://repo.gluu.org/ubuntu/ bionic main" > /etc/apt/sources.list.d/gluu-repo.list
RUN curl https://repo.gluu.org/ubuntu/gluu-apt.key | apt-key add -
RUN  apt-get install gluu-server

但是我在终端中得到了这个错误:

代码语言:javascript
复制
E: Unable to locate package gluu-server
The command '/bin/sh -c apt-get install gluu-server' returned a non-zero code: 100

有谁可以帮我?

EN

回答 2

Stack Overflow用户

发布于 2020-01-13 12:20:58

这应该是可行的

代码语言:javascript
复制
FROM ubuntu:16.04
RUN  apt-get update
RUN  apt-get upgrade -y
RUN apt-get install \
        curl \
        openssl \
        ca-certificates \
        apt-transport-https -y


RUN echo "deb https://repo.gluu.org/ubuntu/ bionic main" > /etc/apt/sources.list.d/gluu-repo.list
RUN curl https://repo.gluu.org/ubuntu/gluu-apt.key | apt-key add -
RUN  apt-get update
RUN  apt-get install gluu-server -y
票数 2
EN

Stack Overflow用户

发布于 2020-01-11 21:18:44

请只需将行RUN apt-get install gluu server更改为RUN apt-get install gluu server-3.1.0,如果它不起作用,除了添加此运行apt-get install apt-transport-https after RUN curl E19| apt-key add -E210。

此外,您创建此docker映像的方式并不是最优的,您正在创建太多不推荐的图层,请不要在生产环境中这样做

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59644954

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档