28916 (1) [Avatar] Offline
#1
Yesterday (2018-02-19), when I tried to build the image from the Dockerfile with the 1.5 tag, instead of getting a clean build I get an error

Reading package lists...
W: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu yakkety Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu yakkety-updates Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu yakkety-backports Release' does not have a Release file.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/yakkety-security/universe/source/Sources 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/yakkety/universe/source/Sources 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/yakkety-updates/universe/source/Sources 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/yakkety-backports/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y php7.0 && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100


If I just grab the howtocodewell/manning-webserver-01:1.5 image and build a container from that, it just works, so presumably grabbing and updating the ubuntu 16.10 image worked when Peter created his docker image, but it doesn’t when you try to build it from scratch today. (Experimenting with other starting ubuntu tags, e.g. 17.10, resulted in the image being built without error but the phpinfo didn’t display – it appeared to be html-sanitized as preformatted text.)

Thanks,
Sean Miller
Peter Fisher (4) [Avatar] Offline
#2
Hi Sean,
Thanks for making me aware of this issue.
I think its due to the Ubuntu version being out of date. 16:10 is now EOL.

I will have a think about the best ways to manage this as I don't want to it to become an issue with future releases.

Thanks again for letting me know

Peter Fisher (4) [Avatar] Offline
#3
To get around this issue I have updated the base images for the web server to use a LTS version of Ubuntu.

Docker hub: https://hub.docker.com/r/howtocodewell/manning-webserver-01
Github: https://github.com/pfwd/manning-docker-in-motion