Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install PHP GD on version 7.2 UBUNTU

Tags:

php

When I try to install it with sudo apt-get install php7.2-gd But i get this error

Depends: libjpeg62-turbo (>= 1.3.1) but it is not installable
E: Unable to correct problems, you have held broken packages

I try to fix it and install libjpeg62-turbo

E: Package 'libjpeg62-turbo' has no installation candidate

The result is Package 'libjpeg62-turbo' has no installation candidate

like image 626
Melek Damak Avatar asked Mar 04 '23 11:03

Melek Damak


1 Answers

Here is the fix
Download the old version of libjpeg62-turbo

 wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+b1_amd64.deb

Run the below commands

 sudo dpkg -i libjpeg62-turbo_1.5.2-2+b1_amd64.deb

 apt-get install php7.2-gd

and then restart phpfpm

like image 86
Kuldeep Pal Avatar answered Mar 16 '23 09:03

Kuldeep Pal