You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Matthew Ouyang <ma...@gmail.com> on 2021/07/11 11:49:29 UTC

Dev Setup - Windows 10 + Docker

I'm trying to setup a development environment on a Windows 10 machine with
the provided Docker image
(https://beam.apache.org/contribute/#container-docker-based).  However
I'm
getting the following error.  It seems like it's unable to download the
packages that it needs.  Is there additional setup that I need to do?  Do I
need to change something so that apt-get can "locate" these packages?


#12 [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep
-v '^#' /package/pkglist | cat)
#12 sha256:8a9d3d436304470d200ff8cfaf552dcb42540a55cb84daede6d7148eb100da81
#12 4.585 Reading package lists...
#12 9.922 Building dependency tree...
#12 10.74 Reading state information...
#12 12.12 E: Unable to locate package
#12 12.12 E: Unable to locate package bash-completion
#12 12.12 E: Unable to locate package build-essential
#12 12.12 E: Unable to locate package bzip2
#12 12.12 E: Unable to locate package wget
#12 12.12 E: Unable to locate package curl
#12 12.12 E: Unable to locate package docker.io
#12 12.12 E: Couldn't find any package by glob 'docker.io
#12 12.12    '
#12 12.12 E: Couldn't find any package by regex 'docker.io
#12 12.12    '
#12 12.12 E: Unable to locate package g++
#12 12.12 E: Couldn't find any package by regex 'g++
#12 12.12    '
#12 12.12 E: Unable to locate package gcc
#12 12.12 E: Unable to locate package git
#12 12.12 E: Unable to locate package gnupg-agent
#12 12.12 E: Unable to locate package rsync
#12 12.12 E: Unable to locate package sudo
#12 12.12 E: Unable to locate package vim
#12 12.12 E: Unable to locate package locales
#12 12.12 E: Unable to locate package wget
#12 12.12 E: Unable to locate package time
#12 12.12 E: Unable to locate package openjdk-8-jdk
#12 12.12 E: Unable to locate package python3-setuptools
#12 12.13 E: Unable to locate package python3-pip
#12 12.13 E: Unable to locate package python3.6
#12 12.13 E: Couldn't find any package by glob 'python3.6
#12 12.13    '
#12 12.13 E: Couldn't find any package by regex 'python3.6
#12 12.13    '
#12 12.13 E: Unable to locate package python3.7
#12 12.13 E: Couldn't find any package by glob 'python3.7
#12 12.13    '
#12 12.13 E: Couldn't find any package by regex 'python3.7
#12 12.13    '
#12 12.13 E: Unable to locate package python3.8
#12 12.13 E: Couldn't find any package by glob 'python3.8
#12 12.13    '
#12 12.13 E: Couldn't find any package by regex 'python3.8
#12 12.13    '
#12 12.13 E: Unable to locate package tox
#12 12.13 E: Unable to locate package docker.io
#12 12.13 E: Couldn't find any package by glob 'docker.io
#12 12.13    '
#12 12.13 E: Couldn't find any package by regex 'docker.io
#12 12.13    '
#12 ERROR: executor failed running [/bin/bash -o pipefail -c apt-get
-q install -y --no-install-recommends $(grep -v '^#' /package/pkglist
| cat)]: exit code: 100
------
 > [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep -v
'^#' /package/pkglist | cat):
------
executor failed running [/bin/bash -o pipefail -c apt-get -q install
-y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)]:
exit code: 100

Re: Dev Setup - Windows 10 + Docker

Posted by Matthew Ouyang <ma...@gmail.com>.
It doesn't seem like it.  I also tried turning off the firewall completely
but appeared to have no effect as well.

On Mon, Jul 12, 2021 at 11:50 AM Tyson Hamilton <ty...@google.com> wrote:

> Are any packages successfully downloaded?
>
> If not, it could be the windows firewall blocking the docker application.
>
> On Sun, Jul 11, 2021, 4:49 AM Matthew Ouyang <ma...@gmail.com>
> wrote:
>
>> I'm trying to setup a development environment on a Windows 10 machine with
>> the provided Docker image (https://beam.apache.org/contribute/#container-docker-based).  However I'm
>> getting the following error.  It seems like it's unable to download the
>> packages that it needs.  Is there additional setup that I need to do?  Do I
>> need to change something so that apt-get can "locate" these packages?
>>
>>
>> #12 [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)
>> #12 sha256:8a9d3d436304470d200ff8cfaf552dcb42540a55cb84daede6d7148eb100da81
>> #12 4.585 Reading package lists...
>> #12 9.922 Building dependency tree...
>> #12 10.74 Reading state information...
>> #12 12.12 E: Unable to locate package
>> #12 12.12 E: Unable to locate package bash-completion
>> #12 12.12 E: Unable to locate package build-essential
>> #12 12.12 E: Unable to locate package bzip2
>> #12 12.12 E: Unable to locate package wget
>> #12 12.12 E: Unable to locate package curl
>> #12 12.12 E: Unable to locate package docker.io
>> #12 12.12 E: Couldn't find any package by glob 'docker.io
>> #12 12.12    '
>> #12 12.12 E: Couldn't find any package by regex 'docker.io
>> #12 12.12    '
>> #12 12.12 E: Unable to locate package g++
>> #12 12.12 E: Couldn't find any package by regex 'g++
>> #12 12.12    '
>> #12 12.12 E: Unable to locate package gcc
>> #12 12.12 E: Unable to locate package git
>> #12 12.12 E: Unable to locate package gnupg-agent
>> #12 12.12 E: Unable to locate package rsync
>> #12 12.12 E: Unable to locate package sudo
>> #12 12.12 E: Unable to locate package vim
>> #12 12.12 E: Unable to locate package locales
>> #12 12.12 E: Unable to locate package wget
>> #12 12.12 E: Unable to locate package time
>> #12 12.12 E: Unable to locate package openjdk-8-jdk
>> #12 12.12 E: Unable to locate package python3-setuptools
>> #12 12.13 E: Unable to locate package python3-pip
>> #12 12.13 E: Unable to locate package python3.6
>> #12 12.13 E: Couldn't find any package by glob 'python3.6
>> #12 12.13    '
>> #12 12.13 E: Couldn't find any package by regex 'python3.6
>> #12 12.13    '
>> #12 12.13 E: Unable to locate package python3.7
>> #12 12.13 E: Couldn't find any package by glob 'python3.7
>> #12 12.13    '
>> #12 12.13 E: Couldn't find any package by regex 'python3.7
>> #12 12.13    '
>> #12 12.13 E: Unable to locate package python3.8
>> #12 12.13 E: Couldn't find any package by glob 'python3.8
>> #12 12.13    '
>> #12 12.13 E: Couldn't find any package by regex 'python3.8
>> #12 12.13    '
>> #12 12.13 E: Unable to locate package tox
>> #12 12.13 E: Unable to locate package docker.io
>> #12 12.13 E: Couldn't find any package by glob 'docker.io
>> #12 12.13    '
>> #12 12.13 E: Couldn't find any package by regex 'docker.io
>> #12 12.13    '
>> #12 ERROR: executor failed running [/bin/bash -o pipefail -c apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)]: exit code: 100
>> ------
>>  > [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat):
>> ------
>> executor failed running [/bin/bash -o pipefail -c apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)]: exit code: 100
>>
>>
>>

Re: Dev Setup - Windows 10 + Docker

Posted by Tyson Hamilton <ty...@google.com>.
Are any packages successfully downloaded?

If not, it could be the windows firewall blocking the docker application.

On Sun, Jul 11, 2021, 4:49 AM Matthew Ouyang <ma...@gmail.com>
wrote:

> I'm trying to setup a development environment on a Windows 10 machine with
> the provided Docker image (https://beam.apache.org/contribute/#container-docker-based).  However I'm
> getting the following error.  It seems like it's unable to download the
> packages that it needs.  Is there additional setup that I need to do?  Do I
> need to change something so that apt-get can "locate" these packages?
>
>
> #12 [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)
> #12 sha256:8a9d3d436304470d200ff8cfaf552dcb42540a55cb84daede6d7148eb100da81
> #12 4.585 Reading package lists...
> #12 9.922 Building dependency tree...
> #12 10.74 Reading state information...
> #12 12.12 E: Unable to locate package
> #12 12.12 E: Unable to locate package bash-completion
> #12 12.12 E: Unable to locate package build-essential
> #12 12.12 E: Unable to locate package bzip2
> #12 12.12 E: Unable to locate package wget
> #12 12.12 E: Unable to locate package curl
> #12 12.12 E: Unable to locate package docker.io
> #12 12.12 E: Couldn't find any package by glob 'docker.io
> #12 12.12    '
> #12 12.12 E: Couldn't find any package by regex 'docker.io
> #12 12.12    '
> #12 12.12 E: Unable to locate package g++
> #12 12.12 E: Couldn't find any package by regex 'g++
> #12 12.12    '
> #12 12.12 E: Unable to locate package gcc
> #12 12.12 E: Unable to locate package git
> #12 12.12 E: Unable to locate package gnupg-agent
> #12 12.12 E: Unable to locate package rsync
> #12 12.12 E: Unable to locate package sudo
> #12 12.12 E: Unable to locate package vim
> #12 12.12 E: Unable to locate package locales
> #12 12.12 E: Unable to locate package wget
> #12 12.12 E: Unable to locate package time
> #12 12.12 E: Unable to locate package openjdk-8-jdk
> #12 12.12 E: Unable to locate package python3-setuptools
> #12 12.13 E: Unable to locate package python3-pip
> #12 12.13 E: Unable to locate package python3.6
> #12 12.13 E: Couldn't find any package by glob 'python3.6
> #12 12.13    '
> #12 12.13 E: Couldn't find any package by regex 'python3.6
> #12 12.13    '
> #12 12.13 E: Unable to locate package python3.7
> #12 12.13 E: Couldn't find any package by glob 'python3.7
> #12 12.13    '
> #12 12.13 E: Couldn't find any package by regex 'python3.7
> #12 12.13    '
> #12 12.13 E: Unable to locate package python3.8
> #12 12.13 E: Couldn't find any package by glob 'python3.8
> #12 12.13    '
> #12 12.13 E: Couldn't find any package by regex 'python3.8
> #12 12.13    '
> #12 12.13 E: Unable to locate package tox
> #12 12.13 E: Unable to locate package docker.io
> #12 12.13 E: Couldn't find any package by glob 'docker.io
> #12 12.13    '
> #12 12.13 E: Couldn't find any package by regex 'docker.io
> #12 12.13    '
> #12 ERROR: executor failed running [/bin/bash -o pipefail -c apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)]: exit code: 100
> ------
>  > [ 8/19] RUN apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat):
> ------
> executor failed running [/bin/bash -o pipefail -c apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat)]: exit code: 100
>
>
>