【问题标题】:docker returned a non-zero code: 100 while installing windscribe vpn on an ubuntu containerdocker在ubuntu容器上安装windscribe vpn时返回了一个非零代码:100
【发布时间】:2021-10-30 14:05:09
【问题描述】:

我正在尝试在 docker 容器上安装 windscribe vpn,但我从命令 docker-compose build 得到此输出,其他类似问题似乎不相关

Errors were encountered while processing:
 resolvconf
 windscribe-cli
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get -y update && apt-get install -y windscribe-cli' returned a non-zero code: 100

这是我的 dockerfile 中的代码

FROM ubuntu:latest

RUN apt-get update && apt-get install -y apt-transport-https
RUN apt-get install -y gnupg
#install windscribe
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key FDC247B7
RUN echo 'deb https://repo.windscribe.com/ubuntu bionic main' | tee /etc/apt/sources.list.d/windscribe-repo.list
RUN apt install --reinstall ca-certificates -y
RUN apt-get -y update && apt-get install -y windscribe-cli

【问题讨论】:

    标签: docker ubuntu docker-compose dockerfile vpn


    【解决方案1】:

    deb https://repo.windscribe.com/ubuntu 仿生主

    看起来您想添加一个bionic(AKA.ubuntu18.04) 源,而您的基本映像ubuntu:latestfocal(AKA.ubuntu20.04):

    $ docker run --rm ubuntu:latest cat /etc/issue
    Ubuntu 20.04.3 LTS \n \l
    

    这种debian包不匹配可能会导致这种错误,所以把FROM ubuntu:latest改成FROM ubuntu:18.04可能会有好运。

    【讨论】:

      猜你喜欢
      • 2018-11-15
      • 1970-01-01
      • 2016-12-29
      • 1970-01-01
      • 2019-05-10
      • 2021-08-12
      • 2016-10-26
      • 2018-10-09
      • 1970-01-01
      相关资源
      最近更新 更多