Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/setup fails / Google Chrome not found #927

Closed
thomasklemm opened this issue Jun 3, 2021 · 7 comments · Fixed by #965
Closed

bin/setup fails / Google Chrome not found #927

thomasklemm opened this issue Jun 3, 2021 · 7 comments · Fixed by #965

Comments

@thomasklemm
Copy link

Hi there 👋 I'm experiencing a build failure when running bin/setup on a freshly cloned version of this repo, on a MacBook Air M1 with Docker Desktop 3.3.3 (64133).

Error message: E: Unable to locate package google-chrome-stable

The last lines of the build output:

#5 21.81 Hit:1 http://deb.debian.org/debian buster InRelease
#5 21.81 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
#5 21.82 Get:3 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
#5 21.83 Hit:4 http://deb.debian.org/debian buster-updates InRelease
#5 21.84 Hit:5 https://deb.nodesource.com/node_12.x buster InRelease
#5 21.85 Hit:6 https://dl.yarnpkg.com/debian stable InRelease
#5 22.03 Get:7 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1082 B]
#5 22.17 Fetched 2893 B in 0s (6924 B/s)
#5 22.17 Reading package lists...
#5 22.52 Reading package lists...
#5 22.85 Building dependency tree...
#5 22.92 Reading state information...
#5 22.96 E: Unable to locate package google-chrome-stable
------
executor failed running [/bin/sh -c apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat   && apt-get update   && apt-get install -y --no-install-recommends imagemagick postgresql-client   && curl -sL https://deb.nodesource.com/setup_12.x | bash -   && apt-get install -y --no-install-recommends nodejs   && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -   && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list   && apt-get update && apt-get install yarn   && apt-get update   && apt-get install -y xvfb   && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -   && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list   && apt-get update   && apt-get install -y google-chrome-stable   && mkdir $CHROMEDRIVER_DIR   && wget -q --continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"   && unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR]: exit code: 100
ERROR: Service 'web' failed to build : Build failed

Any help to debug this would be kindly appreciated.

@estebanutz
Copy link

Same here... @thomasklemm Did you find a solution since you posted this a month ago?

@thomasklemm
Copy link
Author

@estebanutz Unfortunately not, but didn‘t have a chance to further debug it

@damianlegawiec
Copy link
Member

Hmm can't reproduce this error.. could you try running this manually?

docker-compose build --no-cache web

@thomasklemm
Copy link
Author

@damianlegawiec Tried running docker-compose build --no-cache web on the current state in the main branch, getting the following output (MacBook Air M1):

➜  spree_starter git:(main) docker-compose build --no-cache web

Building web
[+] Building 20.6s (6/14)
 => [internal] load build definition from Dockerfile.development                                0.0s
 => => transferring dockerfile: 49B                                                             0.0s
 => [internal] load .dockerignore                                                               0.0s
 => => transferring context: 34B                                                                0.0s
 => [internal] load metadata for docker.io/library/ruby:2.7.3                                   0.6s
 => CACHED [ 1/10] FROM docker.io/library/ruby:2.7.3@sha256:ee2b19ced1d44600963c52691b9b6975e2  0.0s
 => [internal] load build context                                                               0.0s
 => => transferring context: 94B                                                                0.0s
 => ERROR [ 2/10] RUN apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq  19.8s
------
 > [ 2/10] RUN apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat   && apt-get update   && apt-get install -y --no-install-recommends imagemagick postgresql-client   && curl -sL https://deb.nodesource.com/setup_12.x | bash -   && apt-get install -y --no-install-recommends nodejs   && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -   && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list   && apt-get update && apt-get install yarn   && apt-get update   && apt-get install -y xvfb   && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -   && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list   && apt-get update   && apt-get install -y google-chrome-stable   && mkdir /chromedriver   && wget -q --continue -P /chromedriver "http://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip"   && unzip /chromedriver/chromedriver* -d /chromedriver:
#5 0.323 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#5 0.323 Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
#5 0.368 Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
#5 0.433 Get:4 http://security.debian.org/debian-security buster/updates/main arm64 Packages [294 kB]
#5 0.499 Get:5 http://deb.debian.org/debian buster/main arm64 Packages [7735 kB]
#5 1.196 Get:6 http://deb.debian.org/debian buster-updates/main arm64 Packages [14.5 kB]
#5 1.924 Fetched 8283 kB in 2s (5001 kB/s)
#5 1.924 Reading package lists...
#5 2.254 Reading package lists...
#5 2.571 Building dependency tree...
#5 2.633 Reading state information...
#5 2.642 Calculating upgrade...
#5 2.709 The following packages will be upgraded:
#5 2.709   krb5-multidev libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit11
#5 2.709   libkadm5srv-mit11 libkdb5-9 libkrb5-3 libkrb5-dev libkrb5support0
#5 2.710   libsystemd0 libudev1 linux-libc-dev
#5 2.755 13 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 2.755 Need to get 3107 kB of archives.
#5 2.755 After this operation, 0 B of additional disk space will be used.
#5 2.755 Get:1 http://security.debian.org/debian-security buster/updates/main arm64 libsystemd0 arm64 241-7~deb10u8 [314 kB]
#5 2.832 Get:2 http://security.debian.org/debian-security buster/updates/main arm64 libudev1 arm64 241-7~deb10u8 [146 kB]
#5 2.844 Get:3 http://security.debian.org/debian-security buster/updates/main arm64 libkrb5-dev arm64 1.17-3+deb10u2 [47.5 kB]
#5 2.847 Get:4 http://security.debian.org/debian-security buster/updates/main arm64 krb5-multidev arm64 1.17-3+deb10u2 [156 kB]
#5 2.861 Get:5 http://security.debian.org/debian-security buster/updates/main arm64 libgssrpc4 arm64 1.17-3+deb10u2 [88.8 kB]
#5 2.868 Get:6 http://security.debian.org/debian-security buster/updates/main arm64 libkdb5-9 arm64 1.17-3+deb10u2 [72.3 kB]
#5 2.875 Get:7 http://security.debian.org/debian-security buster/updates/main arm64 libkadm5srv-mit11 arm64 1.17-3+deb10u2 [83.8 kB]
#5 2.883 Get:8 http://security.debian.org/debian-security buster/updates/main arm64 libkadm5clnt-mit11 arm64 1.17-3+deb10u2 [71.9 kB]
#5 2.888 Get:9 http://security.debian.org/debian-security buster/updates/main arm64 libgssapi-krb5-2 arm64 1.17-3+deb10u2 [150 kB]
#5 2.903 Get:10 http://security.debian.org/debian-security buster/updates/main arm64 libkrb5-3 arm64 1.17-3+deb10u2 [351 kB]
#5 2.933 Get:11 http://security.debian.org/debian-security buster/updates/main arm64 libkrb5support0 arm64 1.17-3+deb10u2 [64.9 kB]
#5 2.937 Get:12 http://security.debian.org/debian-security buster/updates/main arm64 libk5crypto3 arm64 1.17-3+deb10u2 [123 kB]
#5 2.948 Get:13 http://security.debian.org/debian-security buster/updates/main arm64 linux-libc-dev arm64 4.19.194-3 [1439 kB]
#5 3.158 debconf: delaying package configuration, since apt-utils is not installed
#5 3.175 Fetched 3107 kB in 0s (8710 kB/s)
(Reading database ... 23960 files and directories currently installed.)
#5 3.201 Preparing to unpack .../libsystemd0_241-7~deb10u8_arm64.deb ...
#5 3.208 Unpacking libsystemd0:arm64 (241-7~deb10u8) over (241-7~deb10u7) ...
#5 3.245 Setting up libsystemd0:arm64 (241-7~deb10u8) ...
(Reading database ... 23960 files and directories currently installed.)
#5 3.271 Preparing to unpack .../libudev1_241-7~deb10u8_arm64.deb ...
#5 3.275 Unpacking libudev1:arm64 (241-7~deb10u8) over (241-7~deb10u7) ...
#5 3.305 Setting up libudev1:arm64 (241-7~deb10u8) ...
(Reading database ... 23960 files and directories currently installed.)
#5 3.331 Preparing to unpack .../00-libkrb5-dev_1.17-3+deb10u2_arm64.deb ...
#5 3.335 Unpacking libkrb5-dev:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.360 Preparing to unpack .../01-krb5-multidev_1.17-3+deb10u2_arm64.deb ...
#5 3.364 Unpacking krb5-multidev:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.432 Preparing to unpack .../02-libgssrpc4_1.17-3+deb10u2_arm64.deb ...
#5 3.436 Unpacking libgssrpc4:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.458 Preparing to unpack .../03-libkdb5-9_1.17-3+deb10u2_arm64.deb ...
#5 3.462 Unpacking libkdb5-9:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.485 Preparing to unpack .../04-libkadm5srv-mit11_1.17-3+deb10u2_arm64.deb ...
#5 3.488 Unpacking libkadm5srv-mit11:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.512 Preparing to unpack .../05-libkadm5clnt-mit11_1.17-3+deb10u2_arm64.deb ...
#5 3.516 Unpacking libkadm5clnt-mit11:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.539 Preparing to unpack .../06-libgssapi-krb5-2_1.17-3+deb10u2_arm64.deb ...
#5 3.543 Unpacking libgssapi-krb5-2:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.573 Preparing to unpack .../07-libkrb5-3_1.17-3+deb10u2_arm64.deb ...
#5 3.577 Unpacking libkrb5-3:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.624 Preparing to unpack .../08-libkrb5support0_1.17-3+deb10u2_arm64.deb ...
#5 3.628 Unpacking libkrb5support0:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.650 Preparing to unpack .../09-libk5crypto3_1.17-3+deb10u2_arm64.deb ...
#5 3.654 Unpacking libk5crypto3:arm64 (1.17-3+deb10u2) over (1.17-3+deb10u1) ...
#5 3.678 Preparing to unpack .../10-linux-libc-dev_4.19.194-3_arm64.deb ...
#5 3.682 Unpacking linux-libc-dev:arm64 (4.19.194-3) over (4.19.194-1) ...
#5 4.356 Setting up linux-libc-dev:arm64 (4.19.194-3) ...
#5 4.360 Setting up libkrb5support0:arm64 (1.17-3+deb10u2) ...
#5 4.365 Setting up libk5crypto3:arm64 (1.17-3+deb10u2) ...
#5 4.369 Setting up libkrb5-3:arm64 (1.17-3+deb10u2) ...
#5 4.374 Setting up libgssapi-krb5-2:arm64 (1.17-3+deb10u2) ...
#5 4.379 Setting up libgssrpc4:arm64 (1.17-3+deb10u2) ...
#5 4.383 Setting up libkdb5-9:arm64 (1.17-3+deb10u2) ...
#5 4.386 Setting up libkadm5srv-mit11:arm64 (1.17-3+deb10u2) ...
#5 4.390 Setting up libkadm5clnt-mit11:arm64 (1.17-3+deb10u2) ...
#5 4.394 Setting up krb5-multidev:arm64 (1.17-3+deb10u2) ...
#5 4.397 Setting up libkrb5-dev:arm64 (1.17-3+deb10u2) ...
#5 4.401 Processing triggers for libc-bin (2.28-10) ...
#5 5.774 debconf: delaying package configuration, since apt-utils is not installed
#5 5.806 Selecting previously unselected package cron.
(Reading database ... 23960 files and directories currently installed.)
#5 5.815 Preparing to unpack .../0-cron_3.0pl1-134+deb10u1_arm64.deb ...
#5 5.816 Unpacking cron (3.0pl1-134+deb10u1) ...
#5 5.835 Selecting previously unselected package xxd.
#5 5.837 Preparing to unpack .../1-xxd_2%3a8.1.0875-5_arm64.deb ...
#5 5.838 Unpacking xxd (2:8.1.0875-5) ...
#5 5.862 Selecting previously unselected package vim-common.
#5 5.863 Preparing to unpack .../2-vim-common_2%3a8.1.0875-5_all.deb ...
#5 5.868 Unpacking vim-common (2:8.1.0875-5) ...
#5 5.894 Selecting previously unselected package netcat-traditional.
#5 5.895 Preparing to unpack .../3-netcat-traditional_1.10-41.1_arm64.deb ...
#5 5.897 Unpacking netcat-traditional (1.10-41.1) ...
#5 5.913 Selecting previously unselected package build-essential.
#5 5.914 Preparing to unpack .../4-build-essential_12.6_arm64.deb ...
#5 5.916 Unpacking build-essential (12.6) ...
#5 5.930 Selecting previously unselected package libgpm2:arm64.
#5 5.932 Preparing to unpack .../5-libgpm2_1.20.7-5_arm64.deb ...
#5 5.934 Unpacking libgpm2:arm64 (1.20.7-5) ...
#5 5.947 Selecting previously unselected package netcat.
#5 5.949 Preparing to unpack .../6-netcat_1.10-41.1_all.deb ...
#5 5.950 Unpacking netcat (1.10-41.1) ...
#5 5.970 Selecting previously unselected package vim-runtime.
#5 5.971 Preparing to unpack .../7-vim-runtime_2%3a8.1.0875-5_all.deb ...
#5 5.977 Adding 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
#5 5.982 Adding 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
#5 5.984 Unpacking vim-runtime (2:8.1.0875-5) ...
#5 6.378 Selecting previously unselected package vim.
#5 6.380 Preparing to unpack .../8-vim_2%3a8.1.0875-5_arm64.deb ...
#5 6.384 Unpacking vim (2:8.1.0875-5) ...
#5 6.463 Setting up libgpm2:arm64 (1.20.7-5) ...
#5 6.467 Setting up netcat-traditional (1.10-41.1) ...
#5 6.472 update-alternatives: using /bin/nc.traditional to provide /bin/nc (nc) in auto mode
#5 6.474 Setting up cron (3.0pl1-134+deb10u1) ...
#5 6.502 Adding group `crontab' (GID 102) ...
#5 6.510 Done.
#5 6.520 invoke-rc.d: could not determine current runlevel
#5 6.522 invoke-rc.d: policy-rc.d denied execution of start.
#5 6.581 Setting up netcat (1.10-41.1) ...
#5 6.585 Setting up xxd (2:8.1.0875-5) ...
#5 6.589 Setting up vim-common (2:8.1.0875-5) ...
#5 6.597 Setting up build-essential (12.6) ...
#5 6.600 Setting up vim-runtime (2:8.1.0875-5) ...
#5 6.653 Setting up vim (2:8.1.0875-5) ...
#5 6.657 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
#5 6.659 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
#5 6.661 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
#5 6.663 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
#5 6.664 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
#5 6.667 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
#5 6.669 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
#5 6.671 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
#5 6.677 Processing triggers for hicolor-icon-theme (0.17-2) ...
#5 6.681 Processing triggers for libc-bin (2.28-10) ...
#5 6.689 Processing triggers for mime-support (3.62) ...
#5 6.773 Hit:1 http://security.debian.org/debian-security buster/updates InRelease
#5 6.773 Hit:2 http://deb.debian.org/debian buster InRelease
#5 6.786 Hit:3 http://deb.debian.org/debian buster-updates InRelease
#5 6.955 Reading package lists...
#5 7.298 Reading package lists...
#5 7.629 Building dependency tree...
#5 7.689 Reading state information...
#5 7.753 imagemagick is already the newest version (8:6.9.10.23+dfsg-2.1+deb10u1).
#5 7.753 The following additional packages will be installed:
#5 7.753   postgresql-client-11 postgresql-client-common
#5 7.753 Suggested packages:
#5 7.753   postgresql-11 postgresql-doc-11
#5 7.753 Recommended packages:
#5 7.753   lsb-release
#5 7.787 The following NEW packages will be installed:
#5 7.788   postgresql-client postgresql-client-11 postgresql-client-common
#5 7.836 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
#5 7.836 Need to get 1524 kB of archives.
#5 7.836 After this operation, 6504 kB of additional disk space will be used.
#5 7.836 Get:1 http://deb.debian.org/debian buster/main arm64 postgresql-client-common all 200+deb10u4 [85.1 kB]
#5 7.877 Get:2 http://deb.debian.org/debian buster/main arm64 postgresql-client-11 arm64 11.12-0+deb10u1 [1378 kB]
#5 8.000 Get:3 http://deb.debian.org/debian buster/main arm64 postgresql-client all 11+200+deb10u4 [61.1 kB]
#5 8.083 debconf: delaying package configuration, since apt-utils is not installed
#5 8.098 Fetched 1524 kB in 0s (7236 kB/s)
#5 8.112 Selecting previously unselected package postgresql-client-common.
(Reading database ... 25938 files and directories currently installed.)
#5 8.121 Preparing to unpack .../postgresql-client-common_200+deb10u4_all.deb ...
#5 8.123 Unpacking postgresql-client-common (200+deb10u4) ...
#5 8.142 Selecting previously unselected package postgresql-client-11.
#5 8.144 Preparing to unpack .../postgresql-client-11_11.12-0+deb10u1_arm64.deb ...
#5 8.145 Unpacking postgresql-client-11 (11.12-0+deb10u1) ...
#5 8.249 Selecting previously unselected package postgresql-client.
#5 8.251 Preparing to unpack .../postgresql-client_11+200+deb10u4_all.deb ...
#5 8.252 Unpacking postgresql-client (11+200+deb10u4) ...
#5 8.273 Setting up postgresql-client-common (200+deb10u4) ...
#5 8.280 Setting up postgresql-client-11 (11.12-0+deb10u1) ...
#5 8.565 update-alternatives: using /usr/share/postgresql/11/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
#5 8.582 Setting up postgresql-client (11+200+deb10u4) ...
#5 13.89
#5 13.89 ## Installing the NodeSource Node.js 12.x repo...
#5 13.89
#5 13.90
#5 13.90 ## Populating apt-get cache...
#5 13.90
#5 13.90 + apt-get update
#5 13.98 Hit:1 http://deb.debian.org/debian buster InRelease
#5 13.98 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
#5 14.00 Hit:3 http://deb.debian.org/debian buster-updates InRelease
#5 14.17 Reading package lists...
#5 14.52
#5 14.52 ## Installing packages required for setup: lsb-release...
#5 14.52
#5 14.52 + apt-get install -y lsb-release > /dev/null 2>&1
#5 15.27
#5 15.27 ## Confirming "buster" is supported...
#5 15.27
#5 15.27 + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/buster/Release'
#5 15.37
#5 15.37 ## Adding the NodeSource signing key to your keyring...
#5 15.37
#5 15.37 + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
#5 15.47
#5 15.47 ## Creating apt sources list file for the NodeSource Node.js 12.x repo...
#5 15.47
#5 15.47 + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x buster main' > /etc/apt/sources.list.d/nodesource.list
#5 15.48 + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x buster main' >> /etc/apt/sources.list.d/nodesource.list
#5 15.48
#5 15.48 ## Running `apt-get update` for you...
#5 15.48
#5 15.48 + apt-get update
#5 15.56 Hit:1 http://deb.debian.org/debian buster InRelease
#5 15.56 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
#5 15.58 Hit:3 http://deb.debian.org/debian buster-updates InRelease
#5 15.60 Get:4 https://deb.nodesource.com/node_12.x buster InRelease [4584 B]
#5 15.80 Get:5 https://deb.nodesource.com/node_12.x buster/main arm64 Packages [766 B]
#5 15.81 Fetched 5350 B in 0s (18.0 kB/s)
#5 15.81 Reading package lists...
#5 16.13
#5 16.13 ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
#5 16.13 ## You may also need development tools to build native addons:
#5 16.13      sudo apt-get install gcc g++ make
#5 16.13 ## To install the Yarn package manager, run:
#5 16.13      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
#5 16.13      echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#5 16.13      sudo apt-get update && sudo apt-get install yarn
#5 16.13
#5 16.13
#5 16.14 Reading package lists...
#5 16.46 Building dependency tree...
#5 16.53 Reading state information...
#5 16.59 The following NEW packages will be installed:
#5 16.59   nodejs
#5 16.70 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
#5 16.70 Need to get 17.4 MB of archives.
#5 16.70 After this operation, 92.4 MB of additional disk space will be used.
#5 16.70 Get:1 https://deb.nodesource.com/node_12.x buster/main arm64 nodejs arm64 12.22.4-1nodesource1 [17.4 MB]
#5 18.32 debconf: delaying package configuration, since apt-utils is not installed
#5 18.34 Fetched 17.4 MB in 2s (10.6 MB/s)
#5 18.36 Selecting previously unselected package nodejs.
(Reading database ... 26279 files and directories currently installed.)
#5 18.37 Preparing to unpack .../nodejs_12.22.4-1nodesource1_arm64.deb ...
#5 18.37 Unpacking nodejs (12.22.4-1nodesource1) ...
#5 19.64 Setting up nodejs (12.22.4-1nodesource1) ...
#5 19.70 Warning: apt-key output should not be parsed (stdout is not a terminal)
#5 19.76 Segmentation fault
#5 19.76 gpg: no valid OpenPGP data found.
------
executor failed running [/bin/sh -c apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat   && apt-get update   && apt-get install -y --no-install-recommends imagemagick postgresql-client   && curl -sL https://deb.nodesource.com/setup_12.x | bash -   && apt-get install -y --no-install-recommends nodejs   && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -   && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list   && apt-get update && apt-get install yarn   && apt-get update   && apt-get install -y xvfb   && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -   && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list   && apt-get update   && apt-get install -y google-chrome-stable   && mkdir $CHROMEDRIVER_DIR   && wget -q --continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"   && unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR]: exit code: 2
ERROR: Service 'web' failed to build : Build failed
➜  spree_starter git:(main)

@estebanutz
Copy link

estebanutz commented Aug 10, 2021

@damianlegawiec same error for me as @thomasklemm running your suggested command.

@thomasklemm
Copy link
Author

thomasklemm commented Aug 23, 2021

Error still happening with latest main (a4db9d7) locally on the MacBook Air M1. Running in GitHub Codespaces works though, which is really cool.

[+] Building 22.0s (6/12)
 => [internal] load build definition from Dockerfile.development                                0.0s
 => => transferring dockerfile: 49B                                                             0.0s
 => [internal] load .dockerignore                                                               0.0s
 => => transferring context: 34B                                                                0.0s
 => [internal] load metadata for docker.io/library/ruby:2.7.4                                   0.7s
 => CACHED [1/8] FROM docker.io/library/ruby:2.7.4@sha256:920c07c509772dfd5c7a21c2b408899321a5  0.0s
 => [internal] load build context                                                               0.0s
 => => transferring context: 62B                                                                0.0s
 => ERROR [2/8] RUN apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq -  21.3s
------
 > [2/8] RUN apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat   && apt-get update   && apt-get install -y --no-install-recommends imagemagick postgresql-client   && apt-get update   && apt-get install -y xvfb   && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -   && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list   && apt-get update   && apt-get install -y google-chrome-stable   && mkdir /chromedriver   && wget -q --continue -P /chromedriver "http://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip"   && unzip /chromedriver/chromedriver* -d /chromedriver:
#5 0.319 Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
#5 0.319 Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
#5 0.360 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
#5 0.439 Get:4 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [25.8 kB]
#5 0.520 Get:5 http://deb.debian.org/debian bullseye/main arm64 Packages [8066 kB]
#5 1.986 Fetched 8285 kB in 2s (4815 kB/s)
#5 1.986 Reading package lists...
#5 2.316 Reading package lists...
#5 2.635 Building dependency tree...
#5 2.722 Reading state information...
#5 2.737 Calculating upgrade...
#5 2.846 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 4.358 debconf: delaying package configuration, since apt-utils is not installed
#5 4.409 Selecting previously unselected package cron.
(Reading database ... 22736 files and directories currently installed.)
#5 4.433 Preparing to unpack .../0-cron_3.0pl1-137_arm64.deb ...
#5 4.435 Unpacking cron (3.0pl1-137) ...
#5 4.468 Selecting previously unselected package xxd.
#5 4.470 Preparing to unpack .../1-xxd_2%3a8.2.2434-3_arm64.deb ...
#5 4.473 Unpacking xxd (2:8.2.2434-3) ...
#5 4.520 Selecting previously unselected package vim-common.
#5 4.521 Preparing to unpack .../2-vim-common_2%3a8.2.2434-3_all.deb ...
#5 4.528 Unpacking vim-common (2:8.2.2434-3) ...
#5 4.568 Selecting previously unselected package build-essential.
#5 4.570 Preparing to unpack .../3-build-essential_12.9_arm64.deb ...
#5 4.574 Unpacking build-essential (12.9) ...
#5 4.604 Selecting previously unselected package libgpm2:arm64.
#5 4.606 Preparing to unpack .../4-libgpm2_1.20.7-8_arm64.deb ...
#5 4.611 Unpacking libgpm2:arm64 (1.20.7-8) ...
#5 4.639 Selecting previously unselected package netcat-openbsd.
#5 4.641 Preparing to unpack .../5-netcat-openbsd_1.217-3_arm64.deb ...
#5 4.645 Unpacking netcat-openbsd (1.217-3) ...
#5 4.670 Selecting previously unselected package netcat.
#5 4.672 Preparing to unpack .../6-netcat_1.10-46_all.deb ...
#5 4.676 Unpacking netcat (1.10-46) ...
#5 4.713 Selecting previously unselected package vim-runtime.
#5 4.715 Preparing to unpack .../7-vim-runtime_2%3a8.2.2434-3_all.deb ...
#5 4.724 Adding 'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime'
#5 4.733 Adding 'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime'
#5 4.737 Unpacking vim-runtime (2:8.2.2434-3) ...
#5 5.302 Selecting previously unselected package vim.
#5 5.304 Preparing to unpack .../8-vim_2%3a8.2.2434-3_arm64.deb ...
#5 5.316 Unpacking vim (2:8.2.2434-3) ...
#5 5.434 Setting up libgpm2:arm64 (1.20.7-8) ...
#5 5.444 Setting up cron (3.0pl1-137) ...
#5 5.493 Adding group `crontab' (GID 102) ...
#5 5.504 Done.
#5 5.525 invoke-rc.d: could not determine current runlevel
#5 5.527 invoke-rc.d: policy-rc.d denied execution of start.
#5 5.602 Setting up netcat-openbsd (1.217-3) ...
#5 5.613 update-alternatives: using /bin/nc.openbsd to provide /bin/nc (nc) in auto mode
#5 5.620 Setting up netcat (1.10-46) ...
#5 5.629 Setting up xxd (2:8.2.2434-3) ...
#5 5.639 Setting up vim-common (2:8.2.2434-3) ...
#5 5.657 Setting up build-essential (12.9) ...
#5 5.665 Setting up vim-runtime (2:8.2.2434-3) ...
#5 5.738 Setting up vim (2:8.2.2434-3) ...
#5 5.748 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
#5 5.750 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
#5 5.753 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
#5 5.758 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
#5 5.761 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
#5 5.765 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
#5 5.771 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
#5 5.776 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
#5 5.788 Processing triggers for libc-bin (2.31-13) ...
#5 5.816 Processing triggers for hicolor-icon-theme (0.17-2) ...
#5 5.928 Hit:1 http://deb.debian.org/debian bullseye InRelease
#5 5.928 Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
#5 5.941 Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
#5 6.161 Reading package lists...
#5 6.501 Reading package lists...
#5 6.822 Building dependency tree...
#5 6.909 Reading state information...
#5 7.007 imagemagick is already the newest version (8:6.9.11.60+dfsg-1.3).
#5 7.007 The following additional packages will be installed:
#5 7.007   postgresql-client-13 postgresql-client-common
#5 7.007 Suggested packages:
#5 7.007   postgresql-13 postgresql-doc-13
#5 7.042 The following NEW packages will be installed:
#5 7.042   postgresql-client postgresql-client-13 postgresql-client-common
#5 7.100 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
#5 7.100 Need to get 1622 kB of archives.
#5 7.100 After this operation, 6861 kB of additional disk space will be used.
#5 7.100 Get:1 http://deb.debian.org/debian bullseye/main arm64 postgresql-client-common all 225 [89.3 kB]
#5 7.139 Get:2 http://deb.debian.org/debian bullseye/main arm64 postgresql-client-13 arm64 13.3-1 [1467 kB]
#5 7.279 Get:3 http://deb.debian.org/debian bullseye/main arm64 postgresql-client all 13+225 [64.8 kB]
#5 7.366 debconf: delaying package configuration, since apt-utils is not installed
#5 7.390 Fetched 1622 kB in 0s (6912 kB/s)
#5 7.410 Selecting previously unselected package postgresql-client-common.
(Reading database ... 24784 files and directories currently installed.)
#5 7.424 Preparing to unpack .../postgresql-client-common_225_all.deb ...
#5 7.426 Unpacking postgresql-client-common (225) ...
#5 7.465 Selecting previously unselected package postgresql-client-13.
#5 7.465 Preparing to unpack .../postgresql-client-13_13.3-1_arm64.deb ...
#5 7.469 Unpacking postgresql-client-13 (13.3-1) ...
#5 7.624 Selecting previously unselected package postgresql-client.
#5 7.626 Preparing to unpack .../postgresql-client_13+225_all.deb ...
#5 7.628 Unpacking postgresql-client (13+225) ...
#5 7.660 Setting up postgresql-client-common (225) ...
#5 7.678 Setting up postgresql-client-13 (13.3-1) ...
#5 8.103 update-alternatives: using /usr/share/postgresql/13/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
#5 8.127 Setting up postgresql-client (13+225) ...
#5 8.219 Hit:1 http://deb.debian.org/debian bullseye InRelease
#5 8.219 Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
#5 8.230 Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
#5 8.452 Reading package lists...
#5 8.786 Reading package lists...
#5 9.104 Building dependency tree...
#5 9.195 Reading state information...
#5 9.304 The following additional packages will be installed:
#5 9.304   libdrm-amdgpu1 libdrm-common libdrm-nouveau2 libdrm-radeon1 libdrm2
#5 9.304   libfontenc1 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
#5 9.304   libglx0 libllvm11 libsensors-config libsensors5 libunwind8 libvulkan1
#5 9.304   libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0
#5 9.304   libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0
#5 9.304   libxdamage1 libxfixes3 libxfont2 libxkbfile1 libxmu6 libxmuu1 libxpm4
#5 9.304   libxshmfence1 libxxf86vm1 libz3-4 mesa-vulkan-drivers x11-xkb-utils xauth
#5 9.304   xfonts-base xfonts-encodings xfonts-utils xkb-data xserver-common
#5 9.305 Suggested packages:
#5 9.305   lm-sensors
#5 9.461 The following NEW packages will be installed:
#5 9.461   libdrm-amdgpu1 libdrm-common libdrm-nouveau2 libdrm-radeon1 libdrm2
#5 9.461   libfontenc1 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
#5 9.461   libglx0 libllvm11 libsensors-config libsensors5 libunwind8 libvulkan1
#5 9.461   libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0
#5 9.461   libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0
#5 9.461   libxdamage1 libxfixes3 libxfont2 libxkbfile1 libxmu6 libxmuu1 libxpm4
#5 9.462   libxshmfence1 libxxf86vm1 libz3-4 mesa-vulkan-drivers x11-xkb-utils xauth
#5 9.462   xfonts-base xfonts-encodings xfonts-utils xkb-data xserver-common xvfb
#5 9.521 0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
#5 9.521 Need to get 45.1 MB of archives.
#5 9.521 After this operation, 165 MB of additional disk space will be used.
#5 9.521 Get:1 http://deb.debian.org/debian bullseye/main arm64 libdrm-common all 2.4.104-1 [14.9 kB]
#5 9.538 Get:2 http://deb.debian.org/debian bullseye/main arm64 libdrm2 arm64 2.4.104-1 [41.3 kB]
#5 9.555 Get:3 http://deb.debian.org/debian bullseye/main arm64 libdrm-amdgpu1 arm64 2.4.104-1 [28.0 kB]
#5 9.560 Get:4 http://deb.debian.org/debian bullseye/main arm64 libdrm-nouveau2 arm64 2.4.104-1 [26.1 kB]
#5 9.564 Get:5 http://deb.debian.org/debian bullseye/main arm64 libdrm-radeon1 arm64 2.4.104-1 [29.3 kB]
#5 9.571 Get:6 http://deb.debian.org/debian bullseye/main arm64 libfontenc1 arm64 1:1.1.4-1 [23.6 kB]
#5 9.576 Get:7 http://deb.debian.org/debian bullseye/main arm64 libglapi-mesa arm64 20.3.5-1 [96.7 kB]
#5 9.586 Get:8 http://deb.debian.org/debian bullseye/main arm64 libz3-4 arm64 4.8.10-1 [6117 kB]
#5 10.14 Get:9 http://deb.debian.org/debian bullseye/main arm64 libllvm11 arm64 1:11.0.1-2 [14.7 MB]
#5 11.43 Get:10 http://deb.debian.org/debian bullseye/main arm64 libsensors-config all 1:3.6.0-7 [32.3 kB]
#5 11.43 Get:11 http://deb.debian.org/debian bullseye/main arm64 libsensors5 arm64 1:3.6.0-7 [51.2 kB]
#5 11.43 Get:12 http://deb.debian.org/debian bullseye/main arm64 libvulkan1 arm64 1.2.162.0-1 [95.7 kB]
#5 11.44 Get:13 http://deb.debian.org/debian bullseye/main arm64 libgl1-mesa-dri arm64 20.3.5-1 [6552 kB]
#5 12.02 Get:14 http://deb.debian.org/debian bullseye/main arm64 libglvnd0 arm64 1.3.2-1 [44.3 kB]
#5 12.02 Get:15 http://deb.debian.org/debian bullseye/main arm64 libx11-xcb1 arm64 2:1.7.2-1 [203 kB]
#5 12.03 Get:16 http://deb.debian.org/debian bullseye/main arm64 libxcb-dri2-0 arm64 1.14-3 [103 kB]
#5 12.04 Get:17 http://deb.debian.org/debian bullseye/main arm64 libxcb-dri3-0 arm64 1.14-3 [102 kB]
#5 12.05 Get:18 http://deb.debian.org/debian bullseye/main arm64 libxcb-glx0 arm64 1.14-3 [118 kB]
#5 12.06 Get:19 http://deb.debian.org/debian bullseye/main arm64 libxcb-present0 arm64 1.14-3 [101 kB]
#5 12.07 Get:20 http://deb.debian.org/debian bullseye/main arm64 libxcb-sync1 arm64 1.14-3 [105 kB]
#5 12.07 Get:21 http://deb.debian.org/debian bullseye/main arm64 libxcb-xfixes0 arm64 1.14-3 [105 kB]
#5 12.08 Get:22 http://deb.debian.org/debian bullseye/main arm64 libxdamage1 arm64 1:1.1.5-2 [15.7 kB]
#5 12.09 Get:23 http://deb.debian.org/debian bullseye/main arm64 libxfixes3 arm64 1:5.0.3-2 [22.1 kB]
#5 12.09 Get:24 http://deb.debian.org/debian bullseye/main arm64 libxshmfence1 arm64 1.3-1 [8712 B]
#5 12.09 Get:25 http://deb.debian.org/debian bullseye/main arm64 libxxf86vm1 arm64 1:1.1.4-1+b2 [20.1 kB]
#5 12.09 Get:26 http://deb.debian.org/debian bullseye/main arm64 libglx-mesa0 arm64 20.3.5-1 [186 kB]
#5 12.11 Get:27 http://deb.debian.org/debian bullseye/main arm64 libunwind8 arm64 1.3.2-2 [50.5 kB]
#5 12.11 Get:28 http://deb.debian.org/debian bullseye/main arm64 libwayland-client0 arm64 1.18.0-2~exp1.1 [26.5 kB]
#5 12.12 Get:29 http://deb.debian.org/debian bullseye/main arm64 libxmu6 arm64 2:1.1.2-2+b3 [57.8 kB]
#5 12.12 Get:30 http://deb.debian.org/debian bullseye/main arm64 libxpm4 arm64 1:3.5.12-1 [43.9 kB]
#5 12.12 Get:31 http://deb.debian.org/debian bullseye/main arm64 libxaw7 arm64 2:1.0.13-1.1 [184 kB]
#5 12.14 Get:32 http://deb.debian.org/debian bullseye/main arm64 libxcb-randr0 arm64 1.14-3 [113 kB]
#5 12.15 Get:33 http://deb.debian.org/debian bullseye/main arm64 libxfont2 arm64 1:2.0.4-1 [127 kB]
#5 12.16 Get:34 http://deb.debian.org/debian bullseye/main arm64 libxkbfile1 arm64 1:1.1.0-1 [71.5 kB]
#5 12.17 Get:35 http://deb.debian.org/debian bullseye/main arm64 libxmuu1 arm64 2:1.1.2-2+b3 [24.1 kB]
#5 12.17 Get:36 http://deb.debian.org/debian bullseye/main arm64 mesa-vulkan-drivers arm64 20.3.5-1 [2687 kB]
#5 12.40 Get:37 http://deb.debian.org/debian bullseye/main arm64 x11-xkb-utils arm64 7.7+5 [153 kB]
#5 12.42 Get:38 http://deb.debian.org/debian bullseye/main arm64 xauth arm64 1:1.1-1 [40.0 kB]
#5 12.42 Get:39 http://deb.debian.org/debian bullseye/main arm64 xfonts-encodings all 1:1.0.4-2.1 [573 kB]
#5 12.47 Get:40 http://deb.debian.org/debian bullseye/main arm64 xfonts-utils arm64 1:7.7+6 [85.6 kB]
#5 12.47 Get:41 http://deb.debian.org/debian bullseye/main arm64 xfonts-base all 1:1.0.5 [5897 kB]
#5 12.99 Get:42 http://deb.debian.org/debian bullseye/main arm64 xkb-data all 2.29-2 [655 kB]
#5 13.05 Get:43 http://deb.debian.org/debian bullseye/main arm64 xserver-common all 2:1.20.11-1 [2283 kB]
#5 13.25 Get:44 http://deb.debian.org/debian bullseye/main arm64 libglx0 arm64 1.3.2-1 [32.0 kB]
#5 13.25 Get:45 http://deb.debian.org/debian bullseye/main arm64 libgl1 arm64 1.3.2-1 [91.4 kB]
#5 13.26 Get:46 http://deb.debian.org/debian bullseye/main arm64 xvfb arm64 2:1.20.11-1 [2986 kB]
#5 13.65 debconf: delaying package configuration, since apt-utils is not installed
#5 13.68 Fetched 45.1 MB in 4s (11.1 MB/s)
#5 13.70 Selecting previously unselected package libdrm-common.
(Reading database ... 25149 files and directories currently installed.)
#5 13.73 Preparing to unpack .../00-libdrm-common_2.4.104-1_all.deb ...
#5 13.73 Unpacking libdrm-common (2.4.104-1) ...
#5 13.76 Selecting previously unselected package libdrm2:arm64.
#5 13.76 Preparing to unpack .../01-libdrm2_2.4.104-1_arm64.deb ...
#5 13.77 Unpacking libdrm2:arm64 (2.4.104-1) ...
#5 13.81 Selecting previously unselected package libdrm-amdgpu1:arm64.
#5 13.81 Preparing to unpack .../02-libdrm-amdgpu1_2.4.104-1_arm64.deb ...
#5 13.81 Unpacking libdrm-amdgpu1:arm64 (2.4.104-1) ...
#5 13.84 Selecting previously unselected package libdrm-nouveau2:arm64.
#5 13.85 Preparing to unpack .../03-libdrm-nouveau2_2.4.104-1_arm64.deb ...
#5 13.85 Unpacking libdrm-nouveau2:arm64 (2.4.104-1) ...
#5 13.88 Selecting previously unselected package libdrm-radeon1:arm64.
#5 13.88 Preparing to unpack .../04-libdrm-radeon1_2.4.104-1_arm64.deb ...
#5 13.89 Unpacking libdrm-radeon1:arm64 (2.4.104-1) ...
#5 13.92 Selecting previously unselected package libfontenc1:arm64.
#5 13.92 Preparing to unpack .../05-libfontenc1_1%3a1.1.4-1_arm64.deb ...
#5 13.92 Unpacking libfontenc1:arm64 (1:1.1.4-1) ...
#5 13.96 Selecting previously unselected package libglapi-mesa:arm64.
#5 13.96 Preparing to unpack .../06-libglapi-mesa_20.3.5-1_arm64.deb ...
#5 13.96 Unpacking libglapi-mesa:arm64 (20.3.5-1) ...
#5 14.00 Selecting previously unselected package libz3-4:arm64.
#5 14.00 Preparing to unpack .../07-libz3-4_4.8.10-1_arm64.deb ...
#5 14.01 Unpacking libz3-4:arm64 (4.8.10-1) ...
#5 14.45 Selecting previously unselected package libllvm11:arm64.
#5 14.45 Preparing to unpack .../08-libllvm11_1%3a11.0.1-2_arm64.deb ...
#5 14.46 Unpacking libllvm11:arm64 (1:11.0.1-2) ...
#5 15.67 Selecting previously unselected package libsensors-config.
#5 15.67 Preparing to unpack .../09-libsensors-config_1%3a3.6.0-7_all.deb ...
#5 15.67 Unpacking libsensors-config (1:3.6.0-7) ...
#5 15.70 Selecting previously unselected package libsensors5:arm64.
#5 15.70 Preparing to unpack .../10-libsensors5_1%3a3.6.0-7_arm64.deb ...
#5 15.73 Unpacking libsensors5:arm64 (1:3.6.0-7) ...
#5 15.76 Selecting previously unselected package libvulkan1:arm64.
#5 15.76 Preparing to unpack .../11-libvulkan1_1.2.162.0-1_arm64.deb ...
#5 15.77 Unpacking libvulkan1:arm64 (1.2.162.0-1) ...
#5 15.81 Selecting previously unselected package libgl1-mesa-dri:arm64.
#5 15.81 Preparing to unpack .../12-libgl1-mesa-dri_20.3.5-1_arm64.deb ...
#5 15.82 Unpacking libgl1-mesa-dri:arm64 (20.3.5-1) ...
#5 16.31 Selecting previously unselected package libglvnd0:arm64.
#5 16.32 Preparing to unpack .../13-libglvnd0_1.3.2-1_arm64.deb ...
#5 16.32 Unpacking libglvnd0:arm64 (1.3.2-1) ...
#5 16.36 Selecting previously unselected package libx11-xcb1:arm64.
#5 16.36 Preparing to unpack .../14-libx11-xcb1_2%3a1.7.2-1_arm64.deb ...
#5 16.36 Unpacking libx11-xcb1:arm64 (2:1.7.2-1) ...
#5 16.40 Selecting previously unselected package libxcb-dri2-0:arm64.
#5 16.40 Preparing to unpack .../15-libxcb-dri2-0_1.14-3_arm64.deb ...
#5 16.41 Unpacking libxcb-dri2-0:arm64 (1.14-3) ...
#5 16.44 Selecting previously unselected package libxcb-dri3-0:arm64.
#5 16.44 Preparing to unpack .../16-libxcb-dri3-0_1.14-3_arm64.deb ...
#5 16.45 Unpacking libxcb-dri3-0:arm64 (1.14-3) ...
#5 16.48 Selecting previously unselected package libxcb-glx0:arm64.
#5 16.48 Preparing to unpack .../17-libxcb-glx0_1.14-3_arm64.deb ...
#5 16.48 Unpacking libxcb-glx0:arm64 (1.14-3) ...
#5 16.52 Selecting previously unselected package libxcb-present0:arm64.
#5 16.52 Preparing to unpack .../18-libxcb-present0_1.14-3_arm64.deb ...
#5 16.52 Unpacking libxcb-present0:arm64 (1.14-3) ...
#5 16.57 Selecting previously unselected package libxcb-sync1:arm64.
#5 16.57 Preparing to unpack .../19-libxcb-sync1_1.14-3_arm64.deb ...
#5 16.57 Unpacking libxcb-sync1:arm64 (1.14-3) ...
#5 16.61 Selecting previously unselected package libxcb-xfixes0:arm64.
#5 16.61 Preparing to unpack .../20-libxcb-xfixes0_1.14-3_arm64.deb ...
#5 16.61 Unpacking libxcb-xfixes0:arm64 (1.14-3) ...
#5 16.65 Selecting previously unselected package libxdamage1:arm64.
#5 16.65 Preparing to unpack .../21-libxdamage1_1%3a1.1.5-2_arm64.deb ...
#5 16.65 Unpacking libxdamage1:arm64 (1:1.1.5-2) ...
#5 16.68 Selecting previously unselected package libxfixes3:arm64.
#5 16.69 Preparing to unpack .../22-libxfixes3_1%3a5.0.3-2_arm64.deb ...
#5 16.69 Unpacking libxfixes3:arm64 (1:5.0.3-2) ...
#5 16.72 Selecting previously unselected package libxshmfence1:arm64.
#5 16.72 Preparing to unpack .../23-libxshmfence1_1.3-1_arm64.deb ...
#5 16.73 Unpacking libxshmfence1:arm64 (1.3-1) ...
#5 16.76 Selecting previously unselected package libxxf86vm1:arm64.
#5 16.76 Preparing to unpack .../24-libxxf86vm1_1%3a1.1.4-1+b2_arm64.deb ...
#5 16.76 Unpacking libxxf86vm1:arm64 (1:1.1.4-1+b2) ...
#5 16.79 Selecting previously unselected package libglx-mesa0:arm64.
#5 16.80 Preparing to unpack .../25-libglx-mesa0_20.3.5-1_arm64.deb ...
#5 16.80 Unpacking libglx-mesa0:arm64 (20.3.5-1) ...
#5 16.84 Selecting previously unselected package libunwind8:arm64.
#5 16.84 Preparing to unpack .../26-libunwind8_1.3.2-2_arm64.deb ...
#5 16.84 Unpacking libunwind8:arm64 (1.3.2-2) ...
#5 16.87 Selecting previously unselected package libwayland-client0:arm64.
#5 16.87 Preparing to unpack .../27-libwayland-client0_1.18.0-2~exp1.1_arm64.deb ...
#5 16.88 Unpacking libwayland-client0:arm64 (1.18.0-2~exp1.1) ...
#5 16.90 Selecting previously unselected package libxmu6:arm64.
#5 16.90 Preparing to unpack .../28-libxmu6_2%3a1.1.2-2+b3_arm64.deb ...
#5 16.91 Unpacking libxmu6:arm64 (2:1.1.2-2+b3) ...
#5 16.94 Selecting previously unselected package libxpm4:arm64.
#5 16.94 Preparing to unpack .../29-libxpm4_1%3a3.5.12-1_arm64.deb ...
#5 16.95 Unpacking libxpm4:arm64 (1:3.5.12-1) ...
#5 16.98 Selecting previously unselected package libxaw7:arm64.
#5 16.98 Preparing to unpack .../30-libxaw7_2%3a1.0.13-1.1_arm64.deb ...
#5 16.98 Unpacking libxaw7:arm64 (2:1.0.13-1.1) ...
#5 17.03 Selecting previously unselected package libxcb-randr0:arm64.
#5 17.03 Preparing to unpack .../31-libxcb-randr0_1.14-3_arm64.deb ...
#5 17.04 Unpacking libxcb-randr0:arm64 (1.14-3) ...
#5 17.08 Selecting previously unselected package libxfont2:arm64.
#5 17.08 Preparing to unpack .../32-libxfont2_1%3a2.0.4-1_arm64.deb ...
#5 17.09 Unpacking libxfont2:arm64 (1:2.0.4-1) ...
#5 17.14 Selecting previously unselected package libxkbfile1:arm64.
#5 17.14 Preparing to unpack .../33-libxkbfile1_1%3a1.1.0-1_arm64.deb ...
#5 17.15 Unpacking libxkbfile1:arm64 (1:1.1.0-1) ...
#5 17.18 Selecting previously unselected package libxmuu1:arm64.
#5 17.18 Preparing to unpack .../34-libxmuu1_2%3a1.1.2-2+b3_arm64.deb ...
#5 17.19 Unpacking libxmuu1:arm64 (2:1.1.2-2+b3) ...
#5 17.21 Selecting previously unselected package mesa-vulkan-drivers:arm64.
#5 17.22 Preparing to unpack .../35-mesa-vulkan-drivers_20.3.5-1_arm64.deb ...
#5 17.22 Unpacking mesa-vulkan-drivers:arm64 (20.3.5-1) ...
#5 17.46 Selecting previously unselected package x11-xkb-utils.
#5 17.46 Preparing to unpack .../36-x11-xkb-utils_7.7+5_arm64.deb ...
#5 17.46 Unpacking x11-xkb-utils (7.7+5) ...
#5 17.50 Selecting previously unselected package xauth.
#5 17.50 Preparing to unpack .../37-xauth_1%3a1.1-1_arm64.deb ...
#5 17.51 Unpacking xauth (1:1.1-1) ...
#5 17.53 Selecting previously unselected package xfonts-encodings.
#5 17.54 Preparing to unpack .../38-xfonts-encodings_1%3a1.0.4-2.1_all.deb ...
#5 17.54 Unpacking xfonts-encodings (1:1.0.4-2.1) ...
#5 17.61 Selecting previously unselected package xfonts-utils.
#5 17.61 Preparing to unpack .../39-xfonts-utils_1%3a7.7+6_arm64.deb ...
#5 17.62 Unpacking xfonts-utils (1:7.7+6) ...
#5 17.66 Selecting previously unselected package xfonts-base.
#5 17.67 Preparing to unpack .../40-xfonts-base_1%3a1.0.5_all.deb ...
#5 17.67 Unpacking xfonts-base (1:1.0.5) ...
#5 18.07 Selecting previously unselected package xkb-data.
#5 18.07 Preparing to unpack .../41-xkb-data_2.29-2_all.deb ...
#5 18.08 Unpacking xkb-data (2.29-2) ...
#5 18.18 Selecting previously unselected package xserver-common.
#5 18.18 Preparing to unpack .../42-xserver-common_2%3a1.20.11-1_all.deb ...
#5 18.18 Unpacking xserver-common (2:1.20.11-1) ...
#5 18.23 Selecting previously unselected package libglx0:arm64.
#5 18.23 Preparing to unpack .../43-libglx0_1.3.2-1_arm64.deb ...
#5 18.23 Unpacking libglx0:arm64 (1.3.2-1) ...
#5 18.27 Selecting previously unselected package libgl1:arm64.
#5 18.27 Preparing to unpack .../44-libgl1_1.3.2-1_arm64.deb ...
#5 18.27 Unpacking libgl1:arm64 (1.3.2-1) ...
#5 18.31 Selecting previously unselected package xvfb.
#5 18.31 Preparing to unpack .../45-xvfb_2%3a1.20.11-1_arm64.deb ...
#5 18.31 Unpacking xvfb (2:1.20.11-1) ...
#5 18.43 Setting up libxcb-dri3-0:arm64 (1.14-3) ...
#5 18.44 Setting up libx11-xcb1:arm64 (2:1.7.2-1) ...
#5 18.45 Setting up libxmu6:arm64 (2:1.1.2-2+b3) ...
#5 18.46 Setting up libxdamage1:arm64 (1:1.1.5-2) ...
#5 18.47 Setting up libxcb-xfixes0:arm64 (1.14-3) ...
#5 18.48 Setting up libxpm4:arm64 (1:3.5.12-1) ...
#5 18.48 Setting up libglvnd0:arm64 (1.3.2-1) ...
#5 18.49 Setting up libxcb-glx0:arm64 (1.14-3) ...
#5 18.50 Setting up libsensors-config (1:3.6.0-7) ...
#5 18.51 Setting up xkb-data (2.29-2) ...
#5 18.52 Setting up libxaw7:arm64 (2:1.0.13-1.1) ...
#5 18.53 Setting up libunwind8:arm64 (1.3.2-2) ...
#5 18.53 Setting up libxxf86vm1:arm64 (1:1.1.4-1+b2) ...
#5 18.54 Setting up libxcb-present0:arm64 (1.14-3) ...
#5 18.55 Setting up libfontenc1:arm64 (1:1.1.4-1) ...
#5 18.55 Setting up libz3-4:arm64 (4.8.10-1) ...
#5 18.56 Setting up libllvm11:arm64 (1:11.0.1-2) ...
#5 18.57 Setting up libxfixes3:arm64 (1:5.0.3-2) ...
#5 18.58 Setting up libxcb-sync1:arm64 (1.14-3) ...
#5 18.59 Setting up xfonts-encodings (1:1.0.4-2.1) ...
#5 18.60 Setting up libsensors5:arm64 (1:3.6.0-7) ...
#5 18.61 Setting up libglapi-mesa:arm64 (20.3.5-1) ...
#5 18.61 Setting up libvulkan1:arm64 (1.2.162.0-1) ...
#5 18.62 Setting up libxcb-dri2-0:arm64 (1.14-3) ...
#5 18.63 Setting up libxshmfence1:arm64 (1.3-1) ...
#5 18.64 Setting up libxcb-randr0:arm64 (1.14-3) ...
#5 18.65 Setting up libxkbfile1:arm64 (1:1.1.0-1) ...
#5 18.66 Setting up libdrm-common (2.4.104-1) ...
#5 18.67 Setting up libxfont2:arm64 (1:2.0.4-1) ...
#5 18.68 Setting up libxmuu1:arm64 (2:1.1.2-2+b3) ...
#5 18.69 Setting up libwayland-client0:arm64 (1.18.0-2~exp1.1) ...
#5 18.69 Setting up x11-xkb-utils (7.7+5) ...
#5 18.70 Setting up xfonts-utils (1:7.7+6) ...
#5 18.71 Setting up xfonts-base (1:1.0.5) ...
#5 18.78 Setting up libdrm2:arm64 (2.4.104-1) ...
#5 18.79 Setting up xauth (1:1.1-1) ...
#5 18.79 Setting up xserver-common (2:1.20.11-1) ...
#5 18.80 Setting up libdrm-amdgpu1:arm64 (2.4.104-1) ...
#5 18.81 Setting up mesa-vulkan-drivers:arm64 (20.3.5-1) ...
#5 18.82 Setting up libdrm-nouveau2:arm64 (2.4.104-1) ...
#5 18.83 Setting up libdrm-radeon1:arm64 (2.4.104-1) ...
#5 18.83 Setting up libgl1-mesa-dri:arm64 (20.3.5-1) ...
#5 18.84 Setting up libglx-mesa0:arm64 (20.3.5-1) ...
#5 18.86 Setting up libglx0:arm64 (1.3.2-1) ...
#5 18.86 Setting up libgl1:arm64 (1.3.2-1) ...
#5 18.87 Setting up xvfb (2:1.20.11-1) ...
#5 18.88 Processing triggers for fontconfig (2.13.1-4.2) ...
#5 19.11 Processing triggers for libc-bin (2.31-13) ...
#5 19.26 Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
#5 19.92 OK
#5 20.00 Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
#5 20.01 Hit:2 http://deb.debian.org/debian bullseye InRelease
#5 20.03 Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
#5 20.11 Get:4 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
#5 20.34 Get:5 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1100 B]
#5 20.35 Fetched 2911 B in 0s (7060 B/s)
#5 20.35 Reading package lists...
#5 20.70 Reading package lists...
#5 21.03 Building dependency tree...
#5 21.12 Reading state information...
#5 21.18 E: Unable to locate package google-chrome-stable
------
executor failed running [/bin/sh -c apt-get update -yq   && apt-get upgrade -yq   && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat   && apt-get update   && apt-get install -y --no-install-recommends imagemagick postgresql-client   && apt-get update   && apt-get install -y xvfb   && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -   && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list   && apt-get update   && apt-get install -y google-chrome-stable   && mkdir $CHROMEDRIVER_DIR   && wget -q --continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"   && unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR]: exit code: 100
ERROR: Service 'web' failed to build : Build failed

@thomasklemm
Copy link
Author

thomasklemm commented Aug 23, 2021

Thanks for the fix @damianlegawiec!

For reference, if someone is coming across this issue by googling E: Unable to locate package google-chrome-stable:

Investigated this a bit more earlier today and noticed that there's reports of the same E: Unable to locate package google-chrome-stable build error happening for people on Apple Silicon / M1:

When I tried the approach from this PR building the image worked, by adding platform: linux/x86_64 to the web and worker services in docker-compose.yml.

In the .docker-compose.yml in this repo here, I added the platform key in these two places to get the build working:

version: '3.7'
services:
  ...
  web:
    platform: linux/x86_64 # Adding this made the build work
    ...
  worker:
    platform: linux/x86_64 # Adding this made the build work
    ...

Docs: Docker Compose docs on setting the platform for the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants