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

Build Workspace Fails on apt-get update -yqq #2728

Closed
garretto opened this issue Sep 29, 2020 · 1 comment
Closed

Build Workspace Fails on apt-get update -yqq #2728

garretto opened this issue Sep 29, 2020 · 1 comment

Comments

@garretto
Copy link

garretto commented Sep 29, 2020

Description:

Trying to use laradock for the first time. Running docker-compose up -d nginx mysql fails on apt-get update -yqq.

Expected Behavior:

Containers should build and start.

Context information:

Step 18/284 : RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     groupadd -g ${PGID} laradock &&     useradd -u ${PUID} -g laradock -m laradock -G docker_env &&     usermod -p "*" laradock -s /bin/bash &&     apt-get install -yqq       apt-utils       libzip-dev zip unzip       php${LARADOCK_PHP_VERSION}-zip       nasm &&       php -m | grep -q 'zip'
 ---> Running in 0512bd43a721
+ apt-get update -yqq
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/source/by-hash/SHA256/85a7976ea41248e3229e294ef1c4a08e1f8d73eea8e72fb2f3e9019fee580f05  File has unexpected size (13190 != 383410). Mirror sync in progress? [IP: 91.189.88.152 80]
   Hashes of expected file:
    - Filesize:383410 [weak]
    - SHA256:85a7976ea41248e3229e294ef1c4a08e1f8d73eea8e72fb2f3e9019fee580f05
    - SHA1:7dd0496a39f48f393561fc92511a2457819a9303 [weak]
    - MD5Sum:5f4049f849a5c11b2a6a9891784d6eb1 [weak]
   Release file created at: Tue, 29 Sep 2020 01:33:12 +0000
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/source/by-hash/SHA256/048d421bd4238b19ecc322b0a60b8d1f15273fe0af3b321e5aab32e44f750e9e  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-amd64/by-hash/SHA256/85dd67482418054348b32656256f41ed6b981b0770698b2d206ea5c392070ccb  
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/binary-amd64/by-hash/SHA256/0f8165743907a079f16e3799bd2b25d167a798eee3e9742d4444410904998b40  
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     groupadd -g ${PGID} laradock &&     useradd -u ${PUID} -g laradock -m laradock -G docker_env &&     usermod -p "*" laradock -s /bin/bash &&     apt-get install -yqq       apt-utils       libzip-dev zip unzip       php${LARADOCK_PHP_VERSION}-zip       nasm &&       php -m | grep -q 'zip'' returned a non-zero code: 100

Output of docker version

Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:41:33 2020
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:49:27 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Running on Mac OS Catalina.

@garretto
Copy link
Author

Problem was that Screen Time - Content & Privacy Restrictions were enabled on Mac. Turning this off resolved this issue.

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

No branches or pull requests

1 participant