GD library is missing piwigo

Hello I am now 2 days thinking about what I should do with the php 7 configuratin. I’m not sure why I can’t get an answer. Is there really nobody who knows about such a problem ???

I’m just lost on what is the exact issue we’re trying to solve and what happened …

Can you try to recap:

  • what you’re trying to do
    • I’m assuming: install piwigo
  • what you already tried
    • I’m assuming: installing piwigo from the webadmin or CLI
  • what was the expected result
    • I’m assuming: being able to access
  • what happened instead
    • here it’s not clear wether the install failed or not … you are showing the log of the remove of the app but not the install. So it’s not clear wether both failed or not or something else …
    • You are saying that it “started with an error about GD library missing” but it’s not clear if that was inside the install script or if the install succeeded then only after the install completed it complained about this …
    • So basically just try to give us every logs related to your piwigo install attempt … Ideally just click on “Share with yunopaste” and share the link directly (no need to copy/paste the whole thing in the thread, that makes it harder to read)

Can you try to recap:
• what you’re trying to do
o I’m assuming: install piwigo/ Yes this was my intention
• what you already tried
o I’m assuming: installing piwigo from the webadmin or CLI / from Webadmin
• what was the expected result / the installation of piwigo was compiled and piwigo show me the Login interface. I realised that I Don’t know which use I installed and after a while I think it’s better to uninstall try mindfully a new installation.
• 1 Installation https://paste.yunohost.org/raw/wufuzavego
• 2 uninstall https://paste.yunohost.org/raw/abaminofiq
• 3 Installation again https://paste.yunohost.org/raw/qucubopema
• 4 In the web interface of piwigo I saw a red error Information that GD library is missing .
• 5 I found the solution sudo apt-get install php7.0-gd.
• Now I saw the error in yunohost that the service php7.0 is not running. Message: The service ‘php7.0-fpm’ could not be started The systemctl start php7.0-fpm command could not be executed
• 6 uninstall Piwigo again https://paste.yunohost.org/raw/imemawubey
• Now we figure out that the service was masked , I unmasked sudo systemctl unmask php7.0-fpm. In yunohost I saw that the service run, but now I have the message description
Runs apps written in PHP with NGINX
status
exited 6 minutes ago
Start at startup
Activated
configuration
broken.
• This is still my problem. And also I would like to use piwigo .
• I think the main problem was sudo apt-get install php7.0-gd.

Alright so let’s start by fixing php7.0 … It says the configuration is broken

We can have more clues with :

php-fpm7.0 --test

admin@siggi200:~$ sudo php-fpm7.0 --test
sudo: php-fpm7.0: command not found
admin@siggi200:~$ php-fpm7.0 --test
Could not find the database of available applications, run update-command-not-fo und as root to fix this
php-fpm7.0: command not found

Hello i try this but i cant understand the result. It loos that somthing is missing

Zblerg okay it looks like there’s really something wrong about the php7.0 installation …

I would try to apt install php7.0-fpm --reinstall

(N.B.: the word reinstall may be scary but it only reinstall the binaries and won’t erase any existing configuration)

Be careful not to type “yes” too quickly if apt wants to remove other packages when doing so.

Hi it looks not so good, maybe its better to install yunohost new. The result was

admin@siggi200:~$ sudo apt install php7.0-fpm --reinstall
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.0-fpm : Depends: libpcre3 (>= 2:8.41) but 2:8.39-3 is to be installed
Depends: php7.0-cli but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Please no … bear with me …

This is some “usual” sury mess that we can fix in way less time that it’ll take to reinstall …

Can you show the output of

apt policy libpcre3

and

cat /etc/apt/preferences.d/* | grep -C3 sury

admin@siggi200:~$ apt policy libpcre3
libpcre3:
Installed: 2:8.39-3
Candidate: 2:8.39-3
Version table:
2:8.43-1+0~20190710.6+debian9~1.gbpbfc49f 200
200 Index of /php/ stretch/main armhf Packages
*** 2:8.39-3 500
500 Index of /debian stretch/main armhf Packages
100 /var/lib/dpkg/status

admin@siggi200:~$ cat /etc/apt/preferences.d/* | grep -C3 sury
Package: *
Pin: origin “packages.sury.org
Pin-Priority: 200

Package: php7.0*
Pin: origin “packages.sury.org
Pin-Priority: 600

Alright … so let’s try to do this :

cp /etc/apt/preferences.d.tmp/extra_php_version /tmp/extra_php_version
sed 's/^Pin-Priority: .*/Pin-Priority: 600/g' -i /etc/apt/preferences.d.tmp/extra_php_version
apt install php7.0-fpm -y
cp /tmp/extra_php_version /etc/apt/preferences.d.tmp/extra_php_version 

sorry no i need to ask

line by line
I have to put sudo in front

Ah yes you should put sudo in front of every line, or just become root for the whole session with “sudo su”

admin@siggi200:~$ sudo cp /etc/apt/preferences.d.tmp/extra_php_version /tmp/extra_php_version
cp: cannot stat ‘/etc/apt/preferences.d.tmp/extra_php_version’: No such file or directory
admin@siggi200:~$ sudo sed ‘s/^Pin-Priority: .*/Pin-Priority: 600/g’ -i /etc/apt/preferences.d.tmp/extra_php_version
sed: can’t read /etc/apt/preferences.d.tmp/extra_php_version: No such file or directory
admin@siggi200:~$ sudo apt install php7.0-fpm -y
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.0-fpm : Depends: libpcre3 (>= 2:8.41) but 2:8.39-3 is to be installed
Depends: php7.0-cli but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
admin@siggi200:~$ sudo cp /tmp/extra_php_version /etc/apt/preferences.d.tmp/extra_php_version
cp: cannot stat ‘/tmp/extra_php_version’: No such file or directory
admin@siggi200:~$

Ugh sorry my bad I made a typo …

cp /etc/apt/preferences.d/extra_php_version /tmp/extra_php_version
sed 's/^Pin-Priority: .*/Pin-Priority: 600/g' -i /etc/apt/preferences.d/extra_php_version
apt install php7.0-fpm -y
cp /tmp/extra_php_version /etc/apt/preferences.d/extra_php_version 

admin@siggi200:~$ sudo cp /etc/apt/preferences.d/extra_php_version /tmp/extra_php_version
admin@siggi200:~$ sudo sed ‘s/^Pin-Priority: .*/Pin-Priority: 600/g’ -i /etc/apt/preferences.d/extra_php_version
admin@siggi200:~$ sudo apt install php7.0-fpm -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libpcre3 php7.0-cli php7.0-json php7.0-opcache php7.0-readline
Suggested packages:
php-pear
The following NEW packages will be installed:
php7.0-cli php7.0-fpm php7.0-json php7.0-opcache php7.0-readline
The following packages will be upgraded:
libpcre3
1 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 2,528 kB/2,620 kB of archives.
After this operation, 5,461 kB of additional disk space will be used.
Get:1 Index of /php/ stretch/main armhf libpcre3 armhf 2:8.43-1+0~20190710.6+debian9~1.gbpbfc49f [323 kB]
Get:2 Index of /php/ stretch/main armhf php7.0-cli armhf 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f [1,099 kB]
Get:3 Index of /php/ stretch/main armhf php7.0-fpm armhf 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f [1,105 kB]
Fetched 2,528 kB in 1s (1,445 kB/s)
(Reading database … 43699 files and directories currently installed.)
Preparing to unpack …/libpcre3_2%3a8.43-1+0~20190710.6+debian9~1.gbpbfc49f_armhf.deb …
Unpacking libpcre3:armhf (2:8.43-1+0~20190710.6+debian9~1.gbpbfc49f) over (2:8.39-3) …
Setting up libpcre3:armhf (2:8.43-1+0~20190710.6+debian9~1.gbpbfc49f) …
Selecting previously unselected package php7.0-json.
(Reading database … 43699 files and directories currently installed.)
Preparing to unpack …/php7.0-json_7.0.33-29+0~20200514.36+debian9~1.gbp126f6f_armhf.deb …
Unpacking php7.0-json (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Selecting previously unselected package php7.0-opcache.
Preparing to unpack …/php7.0-opcache_7.0.33-29+0~20200514.36+debian9~1.gbp126f6f_armhf.deb …
Unpacking php7.0-opcache (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Selecting previously unselected package php7.0-readline.
Preparing to unpack …/php7.0-readline_7.0.33-29+0~20200514.36+debian9~1.gbp126f6f_armhf.deb …
Unpacking php7.0-readline (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Selecting previously unselected package php7.0-cli.
Preparing to unpack …/php7.0-cli_7.0.33-29+0~20200514.36+debian9~1.gbp126f6f_armhf.deb …
Unpacking php7.0-cli (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Selecting previously unselected package php7.0-fpm.
Preparing to unpack …/php7.0-fpm_7.0.33-29+0~20200514.36+debian9~1.gbp126f6f_armhf.deb …
Unpacking php7.0-fpm (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Setting up php7.0-readline (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …

Creating config file /etc/php/7.0/mods-available/readline.ini with new version
Setting up php7.0-opcache (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …

Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
Processing triggers for libc-bin (2.24-11+deb9u4) …
Setting up php7.0-json (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …

Creating config file /etc/php/7.0/mods-available/json.ini with new version
Processing triggers for systemd (232-25+deb9u12) …
Processing triggers for man-db (2.7.6.1-2) …
Setting up php7.0-cli (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Setting up php7.0-fpm (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Installing new version of config file /etc/init.d/php7.0-fpm …
Installing new version of config file /etc/php/7.0/fpm/pool.d/www.conf …
Removing obsolete conffile /etc/init/php7.0-fpm.conf …
Processing triggers for php7.0-cli (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
Processing triggers for systemd (232-25+deb9u12) …
Processing triggers for php7.0-fpm (7.0.33-29+0~20200514.36+debian9~1.gbp126f6f) …
admin@siggi200:~$ sudo cp /tmp/extra_php_version /etc/apt/preferences.d/extra_php_version

I am impressed
Now php 7.0 works perfectly
Thank you for your help
I will try to install Piwigo tomorrow

(Note that this whole story was probably related to our most infamous bug about sury’s pinning (well, that’s hugely technical…). We’re hopeful that the latest release from yesterday should improve the situation, though there may still be small issues to handle on a per-app basis.)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.