Issue
I installed php7.3 on my debian stretch system and it was working find. After I tried to install php7.3-gd, my php no longer works. when I run php i get /usr/bin/php file not found
. When I try to reinstall php I get this error
The following packages have unmet dependencies:
php7.3 : Depends: libapache2-mod-php7.3 but it is not going to be installed or
php7.3-fpm but it is not going to be installed or
php7.3-cgi but it is not going to be installed
php7.3-cli : Depends: php7.3-opcache but it is not going to be installed
Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed
php7.3-curl : Depends: libcurl4 (>= 7.44.0) but it is not installable
E: Unable to correct problems, you have held broken packages
Solution
1- sudo apt-get update –fix-missing
2- sudo dpkg –configure -a
3- sudo apt-get install -f
one of those command should fix your broken install
Answered By - iCODEiT Answer Checked By - Clifford M. (WPSolving Volunteer)