df-docker icon indicating copy to clipboard operation
df-docker copied to clipboard

ubuntu:latest no longer supports php5 (as of 16.06)

Open cjeffers opened this issue 10 years ago • 1 comments

docker-compose build fails at apt-get install php5 (and other php5 packages) with the following error:

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate

This ask ubuntu post has instructions that involve adding a separate PPA (ondrej/php) which, when I tried, had some cert issues.

I was able to resolve the issue simply by changing the Dockerfile to start with FROM ubuntu:trusty. Since Trusty is the latest LTS which supports php5, I thought it would be a good place to go. The other option would be to change all the php dependencies to php 7, which may not be possible for a variety of reasons.

I would be happy to open a PR regarding this, but thought it was minor enough that an issue would be good to start with.

Thoughts?

cjeffers avatar Apr 26 '16 21:04 cjeffers

A PR would be great. Thanks!

todda48 avatar Apr 27 '16 18:04 todda48