phusion / baseimage-docker

A minimal Ubuntu base image modified for Docker-friendliness
http://phusion.github.io/baseimage-docker/
MIT License
8.96k stars 1.09k forks source link

Is the version of 0.10.2 alreadly outdated..? #610

Closed engkimo closed 2 years ago

engkimo commented 2 years ago

Details

Hi. When I builded php7.2-environment on this version of image as usual, but It failed and outputed build-error like the following.

2022-04-25 13 09 08 2022-04-25 13 09 35

I loged in this container of image and tried to directly install php7.2 but couldn't do that too.

root@244a3fc54f77:/# apt install -y software-properties-common && add-apt-repository -y ppa:ondrej/php
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.96.20.7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gpg: keyring `/tmp/tmpvmsb3xts/secring.gpg' created
gpg: keyring `/tmp/tmpvmsb3xts/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpvmsb3xts/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
root@244a3fc54f77:/#
root@244a3fc54f77:/#
root@244a3fc54f77:/#
root@244a3fc54f77:/#
root@244a3fc54f77:/# apt upgrade -y -o Dpkg::Options::="--force-confdef" && \
>     apt install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
>         php7.2 \
>         php7.2-dev \
>         php7.2-mbstring \
>         php7.2-xml \
>         php7.2-curl \
>         php7.2-pgsql \
>         php7.2-gd \
>         php7.2-zip \
>         postgresql-client \
>         vim \
>     && apt clean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim 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: Unable to locate package php7.2
E: Couldn't find any package by glob 'php7.2'
E: Couldn't find any package by regex 'php7.2'
E: Unable to locate package php7.2-dev
E: Couldn't find any package by glob 'php7.2-dev'
E: Couldn't find any package by regex 'php7.2-dev'
E: Unable to locate package php7.2-mbstring
E: Couldn't find any package by glob 'php7.2-mbstring'
E: Couldn't find any package by regex 'php7.2-mbstring'
E: Unable to locate package php7.2-xml
E: Couldn't find any package by glob 'php7.2-xml'
E: Couldn't find any package by regex 'php7.2-xml'
E: Unable to locate package php7.2-curl
E: Couldn't find any package by glob 'php7.2-curl'
E: Couldn't find any package by regex 'php7.2-curl'
E: Unable to locate package php7.2-pgsql
E: Couldn't find any package by glob 'php7.2-pgsql'
E: Couldn't find any package by regex 'php7.2-pgsql'
E: Unable to locate package php7.2-gd
E: Couldn't find any package by glob 'php7.2-gd'
E: Couldn't find any package by regex 'php7.2-gd'
E: Unable to locate package php7.2-zip
E: Couldn't find any package by glob 'php7.2-zip'
E: Couldn't find any package by regex 'php7.2-zip'
E: Unable to locate package postgresql-client
E: Package 'vim' has no installation candidate
root@244a3fc54f77:/#

Should I not use like this old version of images from now on..?

Image version:

0.10.2

samip5 commented 2 years ago

You're using EOL version of Ubuntu so that's why it doesn't find it. That 0.10.2 is from 4 years ago.

Please use version called focal ghcr.io/phusion/baseimage:focal-1.2.0 or phusion/baseimage:focal-1.2.0.

engkimo commented 2 years ago

@samip5 Thank you for your quick reply! Certainly, it seems that the version of os is old. I thought GPG KEY was still valid and I could use this OS if I updated the package repository. However, I'll replace it with a new one.