cotech / website

The Cooperative Technologists WordPress website
https://www.coops.tech/
GNU General Public License v3.0
24 stars 5 forks source link

Errors in apt-get update when running docker-compose from scratch #65

Closed floehopper closed 6 years ago

floehopper commented 6 years ago

I just tried setting up the docker development environment from scratch using docker-compose up -d, but I get the following errors. It looks as if various packages are missing for Ubuntu Wily, but it's not obvious to me how to fix this. Does anyone have any ideas?

Step 3/7 : RUN apt-get update && apt-get install -y vim mysql-client
 ---> Running in c082a10a79d6
Ign http://archive.ubuntu.com wily InRelease
Get:1 http://dl.hhvm.com wily InRelease [2394 B]
Get:2 http://ppa.launchpad.net wily InRelease [15.4 kB]
Ign http://dl.hhvm.com wily InRelease
Ign http://archive.ubuntu.com wily-updates InRelease
Get:3 http://dl.hhvm.com wily/main amd64 Packages [1773 B]
Get:4 http://ppa.launchpad.net wily/main amd64 Packages [20 B]
Ign http://archive.ubuntu.com wily-security InRelease
Ign http://archive.ubuntu.com wily Release.gpg
Ign http://archive.ubuntu.com wily-updates Release.gpg
Ign http://archive.ubuntu.com wily-security Release.gpg
Ign http://archive.ubuntu.com wily Release
Ign http://archive.ubuntu.com wily-updates Release
Ign http://archive.ubuntu.com wily-security Release
Err http://archive.ubuntu.com wily/main Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily/restricted Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily/universe Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily/main amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily/universe amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-updates/main Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-updates/restricted Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-updates/universe Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-updates/main amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-updates/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-updates/universe amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-security/main Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-security/restricted Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-security/universe Sources
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-security/main amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-security/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
Err http://archive.ubuntu.com wily-security/universe amd64 Packages
  404  Not Found [IP: 91.189.88.162 80]
W: GPG error: http://dl.hhvm.com wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B4112585D386EB94
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/main/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/restricted/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/universe/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-updates/main/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-updates/restricted/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-updates/universe/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-updates/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-security/main/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-security/restricted/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-security/universe/source/Sources  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-security/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-security/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.162 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 19.6 kB in 1min 35s (204 B/s)
ERROR: Service 'wordpress' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y vim mysql-client' returned a non-zero code: 100
chriscroome commented 6 years ago

I don't use OSX but do these Debian notes help?

nicksellen commented 6 years ago

@chriscroome it's an error inside the docker container build

It's because we use adamyeats/docker-nginx-hhvm-bedrock for the wordpress base, which uses Ubuntu Wily, which is EOL'd now [1].

Solution: rejig it to use two containers, an nginx and a php one (could be either php-fpm or use php -S builtin webserver).

[1] http://fridge.ubuntu.com/2016/07/28/ubuntu-15-10-wily-werewolf-end-of-life-reached-on-july-28-2016/

decentral1se commented 6 years ago

A rejig sounded scary so I tried to cut corners but still lost an hour :)

Please give https://github.com/cotech/website/pull/76 a review and that should get this working again.