Pixelfed install failing

I am trying to install Pixelfed under a new subdomain, as the upgrade did not work ( Pixelfed from 0.11.4~ynh2 to 0.11.8~ynh5

No I am trying to install a new instance under a different sub-domain, but it fails as well:

2023-07-09 19:09:34,833: WARNING - The following packages have unmet dependencies:
2023-07-09 19:09:34,833: WARNING -  php8.2-cli : Depends: php8.2-opcache but it is not going to be installed
2023-07-09 19:09:34,834: WARNING -               Depends: php8.2-readline but it is not going to be installed
2023-07-09 19:09:34,834: WARNING -  php8.2-fpm : Depends: php8.2-opcache but it is not going to be installed
2023-07-09 19:09:34,835: WARNING -  php8.2-imagick : Breaks: php-imagick (< 3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27~)
2023-07-09 19:09:34,835: WARNING -  php8.2-redis : Depends: php8.2-igbinary but it is not going to be installed
2023-07-09 19:09:34,835: WARNING -                 Breaks: php-redis (< 5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337~)
2023-07-09 19:09:34,836: WARNING -  pngquant : Depends: libimagequant0 (>= 2.11.10) but it is not going to be installed
2023-07-09 19:09:34,836: DEBUG - + ynh_die '--message=Unable to install dependencies'
2023-07-09 19:09:34,853: WARNING - Unable to install dependencies
2023-07-09 19:09:34,854: DEBUG - + ynh_exit_properly
2023-07-09 19:09:34,854: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2023-07-09 19:09:36,357: ERROR - provision_or_update failed for apt : An error occured inside the script snippet

More details: https://paste.yunohost.org/raw/ayahucoyaf

Any idea what I could do?

Responses in French should work as well.

Thanks, Askan

That’s a recurring issue with php-imagick blocking apt dependency … Not 100% sure how it happens

Anyway, the “right” package should be php8.2-imagick

Let’s look at the output of apt install php8.2-imagick php-imagick- --dry-run

(Note the - char after php-imagick which means it’s meant to be removed

If apt is happy with the command and doesnt plan to remove a whole bunch of other stuff, we’ll actually run it

Do you have some log to share ?

@Lapineige

Thanks for helping

Yes here: https://paste.yunohost.org/raw/efurenivun
In addition I do not see the Pixeldfed tile anymore.

@Aleks - Thansk for your help

Here is the output after running the command: sudo apt install php8.2-imagick php-imagick- --dry-run

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  imagemagick imagemagick-6.q16 libarchive13 libc-client2007e libldb2
  libnetpbm10 libsmbclient libtalloc2 libtdb1 libtevent0 libwbclient0 libzip4
  mlock netpbm php7.4-apcu php7.4-bcmath php7.4-bz2 php7.4-gmp php7.4-imap
  php7.4-zip python3-gpg python3-ldb python3-samba python3-talloc python3-tdb
  samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  php8.2-cli php8.2-common php8.2-opcache php8.2-phpdbg php8.2-readline
The following packages will be REMOVED:
  nextcloud-ynh-deps php-imagick
The following NEW packages will be installed:
  php8.2-cli php8.2-common php8.2-imagick php8.2-opcache php8.2-phpdbg
  php8.2-readline
0 upgraded, 6 newly installed, 2 to remove and 0 not upgraded.
Remv nextcloud-ynh-deps [22.2.10~ynh1]
Remv php-imagick [3.4.4+php8.0+3.4.4-2+deb11u2]
Inst php8.2-common (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-opcache (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-readline (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 bullseye [amd64])
Conf php8.2-common (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-opcache (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-readline (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 bullseye [amd64])

@Aleks
Not sure if it is related, but I also cannot start the supervisor service. Here the log: hastebin

Hmmm let’s try this instead:

sudo apt install nextcloud-ynh-deps php8.2-imagick php-imagick- --dry-run

@Aleks
I run the command sudo apt install nextcloud-ynh-deps php8.2-imagick php-imagick- --dry-run
I could not install Pixelfed.
Here the log:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nextcloud-ynh-deps is already the newest version (22.2.10~ynh1).
The following additional packages will be installed:
  php7.4-imagick php8.2-cli php8.2-common php8.2-opcache php8.2-phpdbg
  php8.2-readline
The following packages will be REMOVED:
  php-imagick
The following NEW packages will be installed:
  php7.4-imagick php8.2-cli php8.2-common php8.2-imagick php8.2-opcache
  php8.2-phpdbg php8.2-readline
0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded.
Remv php-imagick [3.4.4+php8.0+3.4.4-2+deb11u2] [nextcloud-ynh-deps:amd64 ]
Inst php7.4-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 bullseye [amd64])
Inst php8.2-common (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-opcache (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-readline (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Inst php8.2-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 bullseye [amd64])
Conf php7.4-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 bullseye [amd64])
Conf php8.2-common (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-opcache (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-readline (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561a bullseye [amd64])
Conf php8.2-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 bullseye [amd64])

The log of the failed install: https://paste.yunohost.org/raw/qoreziriye

Yes we only ran simulations for now so there’s no point in trying to brute-force the install of Pixelfed while not fixing the initial issue

The simulation (“dry-run”) looks good, so let’s proceed with it (same command without the --dry-run) :

sudo apt install nextcloud-ynh-deps php8.2-imagick php-imagick-

Thanks Aleks

I did do sudo apt install nextcloud-ynh-deps php8.2-imagick php-imagick-

Here is the log:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nextcloud-ynh-deps is already the newest version (22.2.10~ynh1).
The following additional packages will be installed:
  php7.4-imagick php8.2-cli php8.2-common php8.2-opcache php8.2-phpdbg
  php8.2-readline
The following packages will be REMOVED:
  php-imagick
The following NEW packages will be installed:
  php7.4-imagick php8.2-cli php8.2-common php8.2-imagick php8.2-opcache
  php8.2-phpdbg php8.2-readline
0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded.
Need to get 4,658 kB of archives.
After this operation, 21.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://packages.sury.org/php bullseye/main amd64 php7.4-imagick amd64 3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 [103 kB]
Get:2 https://packages.sury.org/php bullseye/main amd64 php8.2-common amd64 8.2.7-1+0~20230609.23+debian11~1.gbp21561a [668 kB]
Get:3 https://packages.sury.org/php bullseye/main amd64 php8.2-opcache amd64 8.2.7-1+0~20230609.23+debian11~1.gbp21561a [339 kB]
Get:4 https://packages.sury.org/php bullseye/main amd64 php8.2-readline amd64 8.2.7-1+0~20230609.23+debian11~1.gbp21561a [12.5 kB]
Get:5 https://packages.sury.org/php bullseye/main amd64 php8.2-cli amd64 8.2.7-1+0~20230609.23+debian11~1.gbp21561a [1,708 kB]
Get:6 https://packages.sury.org/php bullseye/main amd64 php8.2-phpdbg amd64 8.2.7-1+0~20230609.23+debian11~1.gbp21561a [1,724 kB]
Get:7 https://packages.sury.org/php bullseye/main amd64 php8.2-imagick amd64 3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27 [103 kB]
Fetched 4,658 kB in 0s (11.0 MB/s)      
dpkg: php-imagick: dependency problems, but removing anyway as you requested:
 nextcloud-ynh-deps depends on php7.4-imagick; however:
  Package php7.4-imagick is not installed.
  Package php-imagick which provides php7.4-imagick is to be removed.

(Reading database ... 76682 files and directories currently installed.)
Removing php-imagick (3.4.4+php8.0+3.4.4-2+deb11u2) ...
Selecting previously unselected package php7.4-imagick.
(Reading database ... 76677 files and directories currently installed.)
Preparing to unpack .../0-php7.4-imagick_3.7.0-4+0~20230701.41+debian11~1.gbpbf7
e27_amd64.deb ...
Unpacking php7.4-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27) ...
Selecting previously unselected package php8.2-common.
Preparing to unpack .../1-php8.2-common_8.2.7-1+0~20230609.23+debian11~1.gbp2156
1a_amd64.deb ...
Unpacking php8.2-common (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
Selecting previously unselected package php8.2-opcache.
Preparing to unpack .../2-php8.2-opcache_8.2.7-1+0~20230609.23+debian11~1.gbp215
61a_amd64.deb ...
Unpacking php8.2-opcache (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
Selecting previously unselected package php8.2-readline.
Preparing to unpack .../3-php8.2-readline_8.2.7-1+0~20230609.23+debian11~1.gbp21
561a_amd64.deb ...
Unpacking php8.2-readline (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
Selecting previously unselected package php8.2-cli.
Preparing to unpack .../4-php8.2-cli_8.2.7-1+0~20230609.23+debian11~1.gbp21561a_
amd64.deb ...
Unpacking php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
Selecting previously unselected package php8.2-phpdbg.
Preparing to unpack .../5-php8.2-phpdbg_8.2.7-1+0~20230609.23+debian11~1.gbp2156
1a_amd64.deb ...
Unpacking php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
Selecting previously unselected package php8.2-imagick.
Preparing to unpack .../6-php8.2-imagick_3.7.0-4+0~20230701.41+debian11~1.gbpbf7
e27_amd64.deb ...
Unpacking php8.2-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27) ...
Setting up php8.2-common (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...

Creating config file /etc/php/8.2/mods-available/calendar.ini with new version

Creating config file /etc/php/8.2/mods-available/ctype.ini with new version

Creating config file /etc/php/8.2/mods-available/exif.ini with new version

Creating config file /etc/php/8.2/mods-available/fileinfo.ini with new version

Creating config file /etc/php/8.2/mods-available/ffi.ini with new version

Creating config file /etc/php/8.2/mods-available/ftp.ini with new version

Creating config file /etc/php/8.2/mods-available/gettext.ini with new version

Creating config file /etc/php/8.2/mods-available/iconv.ini with new version

Creating config file /etc/php/8.2/mods-available/pdo.ini with new version

Creating config file /etc/php/8.2/mods-available/phar.ini with new version

Creating config file /etc/php/8.2/mods-available/posix.ini with new version

Creating config file /etc/php/8.2/mods-available/shmop.ini with new version

Creating config file /etc/php/8.2/mods-available/sockets.ini with new version

Creating config file /etc/php/8.2/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/8.2/mods-available/sysvsem.ini with new version

Creating config file /etc/php/8.2/mods-available/sysvshm.ini with new version

Creating config file /etc/php/8.2/mods-available/tokenizer.ini with new version
Setting up php7.4-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27) ...
Setting up php8.2-opcache (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...

Creating config file /etc/php/8.2/mods-available/opcache.ini with new version
Setting up php8.2-readline (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...

Creating config file /etc/php/8.2/mods-available/readline.ini with new version
Setting up php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
update-alternatives: using /usr/bin/phar8.2 to provide /usr/bin/phar (phar) in a
uto mode
update-alternatives: using /usr/bin/phar.phar8.2 to provide /usr/bin/phar.phar (
phar.phar) in auto mode

Creating config file /etc/php/8.2/cli/php.ini with new version
Setting up php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) ...
update-alternatives: using /usr/bin/phpdbg8.2 to provide /usr/bin/phpdbg (phpdbg
) in auto mode

Creating config file /etc/php/8.2/phpdbg/php.ini with new version
Setting up php8.2-imagick (3.7.0-4+0~20230701.41+debian11~1.gbpbf7e27) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for php7.4-fpm (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abe
f) ...
Processing triggers for php7.4-cli (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abe
f) ...
Processing triggers for php8.2-cli (8.2.7-1+0~20230609.23+debian11~1.gbp21561a) 
...
Processing triggers for php8.2-phpdbg (8.2.7-1+0~20230609.23+debian11~1.gbp21561
a) ...

Then let’s try to reinstall Pixelfed now

Did not work out: https://paste.yunohost.org/raw/eburanipuk

Hmpf sounds like there’s a similar story for php-redis

Let’s look at sudo apt install nextcloud-ynh-deps php8.2-redis php-redis --dry-run, and if apt seems happy and doesnt plan to remove a whole bunch of unrelated stuff, run the same command without --dry-run

Unfortunately:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php-redis is already the newest version (5.3.2+4.3.0-2+deb11u1).
php-redis set to manually installed.
nextcloud-ynh-deps is already the newest version (22.2.10~ynh1).
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:
 php8.2-redis : Breaks: php-redis (< 5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337~)
E: Unable to correct problems, you have held broken packages.

I will now be a couple days off, therefore may not reply quickly. But I certainly want to fix the problem

Zblerg sorry, we’re missing the - after php-redis to mean that we want to remove it, not install it:

sudo apt install nextcloud-ynh-deps php8.2-redis php-redis- --dry-run

I believe this looks better:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nextcloud-ynh-deps is already the newest version (22.2.10~ynh1).
The following additional packages will be installed:
  php7.4-igbinary php7.4-redis php8.2-igbinary
The following packages will be REMOVED:
  php-igbinary php-redis
The following NEW packages will be installed:
  php7.4-igbinary php7.4-redis php8.2-igbinary php8.2-redis
0 upgraded, 4 newly installed, 2 to remove and 0 not upgraded.
Remv php-redis [5.3.2+4.3.0-2+deb11u1] [nextcloud-ynh-deps:amd64 wallabag2-ynh-deps:amd64 ]
Inst php7.4-redis (5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337 bullseye [amd64])
Remv php-igbinary [3.2.1+2.0.8-2] [nextcloud-ynh-deps:amd64 ]
Inst php7.4-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca bullseye [amd64])
Inst php8.2-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca bullseye [amd64])
Inst php8.2-redis (5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337 bullseye [amd64])
Conf php7.4-redis (5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337 bullseye [amd64])
Conf php7.4-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca bullseye [amd64])
Conf php8.2-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca bullseye [amd64])
Conf php8.2-redis (5.3.7++-1+0~20230619.51+debian11~1.gbp4ff337 bullseye [amd64])

@Aleks It worked! I could install Pixelfed. I really appreciate your help and patience! Thanks a lot!

2 Likes

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