I am running Apache / PHP using Docker. Linux distro is Debian. I am trying to install php7.3-gd. I run command:
apt-get install php7.3-gd
But I get: E: Package 'php7.3-gd' has no installation candidate
so I have tried downloading the source to build it myself, but I need to install php7.3-dev, and this is either available.
So I found this page to download it, I see I can add a mirror to sources, I add it and then run apt-get update and apt-get install php7.3-dev, but no luck.
Any ideas what am I missing?
System Info
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
PHP:
PHP 7.3.14 (cli) (built: Feb 1 2020 20:10:52) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies
Best Answer
That package exists, are you sure you don't simply need to
apt-get update
to update the cache first? https://packages.debian.org/search?keywords=php7.3-gd if it still does not work can you provide the output ofapt policy
, it sounds like you might be missing the Buster repository.Docker images generally ship with no cache to reduce size.