When I run -
apt-get install php-dev
I see a bunch of php 7.0 packages being installed -
The following additional packages will be installed: dh-php libexporter-tiny-perl liblist-moreutils-perl libssl-dev libssl-doc php7.0-cli php7.0-common php7.0-dev php7.0-json php7.0-opcache php7.0-readline pkg-php-tools shtool zlib1g-dev
But I definitely have php 7.3 installed -
php -v PHP 7.3.1-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jan 13 2019 10:19:01) ( NTS )
How can I debug my system to figure out why php-dev is trying to install the older version of these packages? I want the 7.3 version of phpize to be installed but instead the 7.0 version is installed.
Ubuntu version - Ubuntu 16.04.6 LTS
I tried to understand how php-dev tries to figure out which version of php is installed on the machine, but I couldn't find any docs to that end.