php7.1-gd 설치 문제

php7.1-gd 설치 문제

debian9에서 실행 중이고 ppa:ondrej/php저장소를 사용하고 있지만 php7.1을 설치할 수 없습니다. 누락된 종속성도 설치되지 않습니다. 설치하려고 하면 apt install php7.1-gd이런 오류가 발생합니다.

apt-get install php7.1-gd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.1-gd : Depends: libgd3 (>= 2.1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

설치하려고 할 때 발생하는 오류입니다.libgd3

apt install libgd3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgd3 : Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed
          Depends: libfontconfig1 (>= 2.12.6) but 2.11.0-6.7+b1 is to be installed
          Depends: libjpeg8 (>= 8c) but it is not installable
E: Unable to correct problems, you have held broken packages.

답변1

Debian 9에서는 PPA를 사용하지 말고, 다음에 설명된 대로 적절한 저장소를 사용하십시오.온드레이의README.txt:

sudo apt-get -y install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt-get update

php7.1-gd이를 통해 Debian 9에서 충족되는 종속성을 설치할 수 있습니다 .

답변2

패키지는 여기에서 찾을 수 있습니다:

http://ftp.br.debian.org/debian/pool/main/libj/libjpeg-turbo

wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
dpkg -i libjpeg62-turbo_1.5.1-2_amd64.deb

관련 정보