Lychee Installation Failed

My YunoHost server

Hardware: VirtualBox VM
YunoHost version: 4.2.8.3 (stable).
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I recently used the app installer to install Lychee but the installation was not successful. I received the following errors. I’m just trying to install the stock app from the application menu - nothing custom or fancy.

Error
An error occurred inside the app installation script
Sub-operations
[ Update accesses for permission ‘lychee’ ]
[ Create permission ‘lychee’ ]
[ Update url related to permission ‘lychee’ ]

2021-09-17 04:25:42,218: WARNING - E: Packages need to be removed but remove is disabled.
2021-09-17 04:25:42,220: DEBUG - ++ cat /tmp/tmp.s2MgfDkrnn/dpkg_log
2021-09-17 04:25:42,220: DEBUG - ++ grep -oP '(?<=-ynh-deps depends on ).*(?=; however)'
2021-09-17 04:25:42,222: DEBUG - ++ tr '\n' ' '
2021-09-17 04:25:42,224: DEBUG - + local 'problematic_dependencies=php7.4 php7.4-xml php7.4-imagick php7.4-bcmath php7.4-mbstring php7.4-gd php7.4-mysqli php7.4-zip php7.4-intl '
2021-09-17 04:25:42,224: DEBUG - + [[ -n php7.4 php7.4-xml php7.4-imagick php7.4-bcmath php7.4-mbstring php7.4-gd php7.4-mysqli php7.4-zip php7.4-intl  ]]
2021-09-17 04:25:42,224: DEBUG - + ynh_package_install php7.4 php7.4-xml php7.4-imagick php7.4-bcmath php7.4-mbstring php7.4-gd php7.4-mysqli php7.4-zip php7.4-intl --dry-run
2021-09-17 04:25:42,225: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install php7.4 php7.4-xml php7.4-imagick php7.4-bcmath php7.4-mbstring php7.4-gd php7.4-mysqli php7.4-zip php7.4-intl --dry-run
2021-09-17 04:25:42,225: DEBUG - + ynh_wait_dpkg_free
2021-09-17 04:25:42,225: DEBUG - + grep -v 'fix-broken\|Reading state info'
2021-09-17 04:25:42,226: DEBUG - + sed --quiet '/Reading state info/,$p'
2021-09-17 04:25:42,308: DEBUG - + return 0
2021-09-17 04:25:42,308: DEBUG - + LC_ALL=C
2021-09-17 04:25:42,308: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-09-17 04:25:42,308: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install php7.4 php7.4-xml php7.4-imagick php7.4-bcmath php7.4-mbstring php7.4-gd php7.4-mysqli php7.4-zip php7.4-intl --dry-run
2021-09-17 04:25:42,703: WARNING - The following packages have unmet dependencies:
2021-09-17 04:25:42,704: WARNING -  php7.4-imagick : Breaks: php-imagick (< 3.5.1-1+0~20210825.29+debian10~1.gbp4a47e2~)
2021-09-17 04:25:42,704: WARNING -  php7.4-intl : Depends: libicu65 (>= 65.1-1~) but it is not going to be installed
2021-09-17 04:25:42,705: DEBUG - + ynh_die '--message=Unable to install dependencies'
2021-09-17 04:25:42,721: DEBUG - + ret_code=1
2021-09-17 04:25:42,722: DEBUG - + echo 'Unable to install dependencies'
2021-09-17 04:25:42,722: DEBUG - + exit 1
2021-09-17 04:25:42,722: DEBUG - + ynh_exit_properly
2021-09-17 04:25:42,722: DEBUG - + local exit_code=1
2021-09-17 04:25:42,722: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-09-17 04:25:42,722: WARNING - Unable to install dependencies
2021-09-17 04:25:42,723: DEBUG - + '[' 1 -eq 0 ']'
2021-09-17 04:25:42,723: DEBUG - + trap '' EXIT
2021-09-17 04:25:42,723: DEBUG - + set +o errexit
2021-09-17 04:25:42,724: DEBUG - + set +o nounset
2021-09-17 04:25:42,724: DEBUG - + sleep 0.5
2021-09-17 04:25:43,227: DEBUG - + type -t ynh_clean_setup
2021-09-17 04:25:43,227: DEBUG - + exit 1
2021-09-17 04:25:44,231: ERROR - Unable to install lychee: An error occurred inside the app installation script

Can you to run : sudo apt remove php-imagick but don’t confirm right away, let’s first check if that triggers some other deletion

I’m suspecting that some app may have installed php-imagick but this is not the right way to do (the right way is to install php7.x-imagick, but that’s super technical to explain)

admin@willette:~$ sudo apt remove php-imagick
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ffmpeg fontconfig hicolor-icon-theme i965-va-driver imagemagick
  imagemagick-6-common imagemagick-6.q16 intel-media-va-driver libaacs0
  libaom0 libarchive13 libass9 libasyncns0 libavc1394-0 libavcodec58
  libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56
  libbdplus0 libbluray2 libbs2b0 libc-client2007e libcaca0 libcairo2
  libcdio-cdda2 libcdio-paranoia2 libcdio18 libchromaprint1 libcodec2-0.8.1
  libcrystalhd3 libdatrie1 libdc1394-22 libde265-0 libdjvulibre-text
  libdjvulibre21 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2
  libdrm-radeon1 libdrm2 libfftw3-double3 libflac8 libflite1
  libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1
  libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgme0
  libgpgme11 libgraphite2-3 libgsm1 libharfbuzz0b libheif1 libice6
  libiec61883-0 libigdgmm5 libilmbase23 libjack-jackd2-0 libjansson4
  libjxr-tools libjxr0 libldb1 liblilv-0-0 libllvm7 liblqr-1-0
  libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
  libmp3lame0 libmpg123-0 libmysofa0 libnetpbm10 libnorm1 libnuma1 libogg0
  libopenal-data libopenal1 libopenexr23 libopenmpt0 libopus0 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpgm-5.2-0
  libpixman-1-0 libpostproc55 libpulse0 libraw1394-11 librsvg2-2
  librsvg2-common librubberband2 libsamplerate0 libsdl2-2.0-0
  libsensors-config libsensors5 libserd-0-0 libshine3 libsm6 libsmbclient
  libsndfile1 libsndio7.0 libsord-0-0 libsoxr0 libspeex1 libsratom-0-0
  libssh-gcrypt-4 libswresample3 libswscale5 libtalloc2 libtdb1 libtevent0
  libthai-data libthai0 libtheora0 libtwolame0 libva-drm2 libva-x11-2 libva2
  libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvorbis0a libvorbisenc2
  libvorbisfile3 libvpx5 libwavpack1 libwayland-client0 libwayland-cursor0
  libwayland-egl1 libwbclient0 libwebpmux3 libwmf0.2-7 libx11-xcb1 libx264-155
  libx265-165 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
  libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0
  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0
  libxrandr2 libxrender1 libxshmfence1 libxss1 libxtst6 libxv1 libxvidcore4
  libxxf86vm1 libzip4 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers
  mesa-vdpau-drivers mlock netpbm php-apcu php-apcu-bc php-igbinary php-redis
  php7.3-bcmath php7.3-bz2 php7.3-gmp php7.3-imap php7.3-zip python-crypto
  python-gpg python-ldb python-samba python-talloc python-tdb samba-common
  samba-common-bin samba-dsdb-modules samba-libs smbclient ttf-dejavu-core
  va-driver-all vdpau-driver-all x11-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  nextcloud-ynh-deps php-imagick
0 upgraded, 0 newly installed, 2 to remove and 51 not upgraded.
After this operation, 508 kB disk space will be freed.
Do you want to continue? [Y/n] 

Hmokay, what version of Nextcloud is currently installed on your server ?

22.1.1~ynh1

Hmokay so let’s look at the output of :

apt show nextcloud-ynh-deps
Package: nextcloud-ynh-deps
Version: 22.1.1~ynh1
Status: install ok installed
Priority: optional
Section: misc
Maintainer: root <root@willette.me>
Installed-Size: 10.2 kB
Depends: imagemagick, libmagickcore-6.q16-6-extra, acl, tar, smbclient, at, php7.3-bz2, php7.3-imap, php7.3-gmp, php7.3-gd, php7.3-json, php7.3-intl, php7.3-curl, php7.3-apcu, php7.3-redis, php7.3-ldap, php7.3-imagick, php7.3-zip, php7.3-mbstring, php7.3-xml, php7.3-mysql, php7.3-igbinary, php7.3-bcmath
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Fake package for nextcloud (YunoHost app) dependencies
 This meta-package is only responsible of installing its dependencies.

Alrighty, I’m seeing on my machine that there’s in fact several version / sources for this package … let’s try this:

apt install php-imagick=3.5.1-1+0~20210825.29+debian10~1.gbp4a47e2

(For people that may encounter this in the future, look at the available version using apt policy php-imagick)

3 Likes

That worked! Installer completed successfully after installing that version

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