Can't install Paperless-ngx

What type of hardware are you using: Bare Metal, 32 GB RAM
What YunoHost version are you running: 12.1.15.1
What app is this about: paperless-ngx 2.18.2~ynh1

Describe your issue

Can’t install the app.

YunoHost on a Debian 12 installation with XFCE.

Share relevant logs or error messages

https://paste.yunohost.org/raw/suxojuyoyi

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - checking for memalign... yes
Info: DEBUG - checking for aligned_alloc... yes
Info: DEBUG - checking for _aligned_malloc... no
Info: DEBUG - checking for posix_memalign... yes
Info: DEBUG - checking for URF support... yes
Info: DEBUG - checking for SmartOffice support... no
Info: DEBUG - checking for local CAL library source... no
Info: DEBUG - checking for GTK+ 3.x... no
Info: DEBUG - checking for GTK+ 2.x... no
Info: DEBUG - checking for X... libraries , headers
Info: DEBUG - checking for gethostbyname... yes
Info: DEBUG - checking for connect... yes
Info: DEBUG - checking for remove... yes
Info: DEBUG - checking for shmat... yes
Info: DEBUG - checking for IceConnectionNumber in -lICE... no
Info: DEBUG - checking for XOpenDisplay in -lX11... yes
Info: DEBUG - checking for XdbeQueryExtension in -lXext... no
Info: DEBUG - checking for XtAppCreateShell in -lXt... no
Info: DEBUG - configure: error: X11 libraries (libX11, libXt, libXext) not available, either install them, or rerun configure with "--without-x"
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure…

See also:

Installing yunohost on a machine with desktop environment will lead to many complications and issues.

2 Likes

OK, i have installed a new YunoHost server with the official x64 ISO v.12.0.

But installation failed again:
https://paste.yunohost.org/raw/amekecamoy

yunohost app install paperless-ngx

Info: paperless-ngx wird installiert…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning ports...
Info: Provisioning apt...
Warnung: E: Packages need to be removed but remove is disabled.
Warnung: The following packages have unmet dependencies:
Warnung:  libpq-dev : Depends: libpq5 (= 15.14-0+deb12u1) but 17.6-1.pgdg12+1 is to be installed
Warnung: Unable to install apt dependencies
Fehler: provision_or_update failed for apt : An error occured inside the script snippet : Unable to install apt dependencies
Info: Der Vorgang'Installiere die Applikation 'paperless-ngx'' konnte nicht abgeschlossen werden. Bitte teile das vollständige Protokoll dieser Operation mit dem Befehl 'yunohost log share 20250908-203017-app_install-paperless-ngx', um Hilfe zu erhalten
Warnung: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - dpkg: paperless-ngx-ynh-deps: dependency problems, but configuring anyway as you requested:
Info: DEBUG -  paperless-ngx-ynh-deps depends on libpq-dev; however:
Info: DEBUG -   Package libpq-dev is not installed.
Info: DEBUG -
Info: DEBUG - Setting up paperless-ngx-ynh-deps (2.18.2~ynh1) ...
Info: DEBUG - + mapfile -t problematic_dependencies
Info: DEBUG - ++ grep -oP '(?<=-ynh-deps depends on ).*(?=; however)' /tmp/tmp.KwbG1QrDWi/dpkg_log
Info: DEBUG - + (( 1 != 0 ))
Info: DEBUG - + _ynh_apt_install libpq-dev --dry-run
Info: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install libpq-dev --dry-run
Info: DEBUG - + _ynh_wait_dpkg_free
Info: DEBUG - + sed --quiet '/Reading state info/,$p'
Info: DEBUG - + grep -v 'fix-broken\|Reading state info'
Info: DEBUG - + return 0
Info: 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 libpq-dev --dry-run
Info: WARNING - The following packages have unmet dependencies:
Info: WARNING -  libpq-dev : Depends: libpq5 (= 15.14-0+deb12u1) but 17.6-1.pgdg12+1 is to be installed
Info: DEBUG - + ynh_die 'Unable to install apt dependencies'
Info: WARNING - Unable to install apt dependencies
Info: ERROR - provision_or_update failed for apt : An error occured inside the script snippet : Unable to install apt dependencies
Warnung: Failed to provision apt : Der Vorgang'Installiere die Applikation 'paperless-ngx'' konnte nicht abgeschlossen werden. Bitte teile das vollständige Protokoll dieser Operation mit dem Befehl 'yunohost log share 20250908-203017-app_install-paperless-ngx', um Hilfe zu erhalten
Info: Deprovisioning sources...
Info: Deprovisioning system_user...
Info: Deprovisioning install_dir...
Info: Deprovisioning data_dir...
Info: Deprovisioning permissions...
Info: Deprovisioning ports...
Info: Deprovisioning apt...
Fehler: Automatische Ressourcen-Allokation (provisioning), die Unterbindung des Zugriffts auf Ressourcen (deprovisioning) oder die Aktualisierung der Ressourcen für paperless-ngx schlug fehl: Der Vorgang'Installiere die Applikation 'paperless-ngx'' konnte nicht abgeschlossen werden. Bitte teile das vollständige Protokoll dieser Operation mit dem Befehl 'yunohost log share 20250908-203017-app_install-paperless-ngx', um Hilfe zu erhalten
Fehler: None

Can you share the output of

sudo apt policy libpq5

and

sudo apt policy libpq-dev

sudo apt policy libpq5

libpq5:
  Installiert:           17.6-1.pgdg12+1
  Installationskandidat: 17.6-1.pgdg12+1
  Versionstabelle:
 *** 17.6-1.pgdg12+1 100
        100 /var/lib/dpkg/status
     15.14-0+deb12u1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages
     15.10-0+deb12u1 500
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages




sudo apt policy libpq-dev

libpq-dev:
  Installiert:           (keine)
  Installationskandidat: 15.14-0+deb12u1
  Versionstabelle:
     15.14-0+deb12u1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages
     15.10-0+deb12u1 500
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages

Meanwhile i have installed a few more apps on the fresh server, and the output looks like this now:

sudo apt policy libpq5

libpq5:
  Installiert:           17.6-1.pgdg12+1
  Installationskandidat: 17.6-1.pgdg12+1
  Versionstabelle:
 *** 17.6-1.pgdg12+1 100
        100 /var/lib/dpkg/status



sudo apt policy libpq-dev

libpq-dev:
  Installiert:           17.6-1.pgdg12+1
  Installationskandidat: 17.6-1.pgdg12+1
  Versionstabelle:
 *** 17.6-1.pgdg12+1 100
        100 /var/lib/dpkg/status

But the installation of Paperless-ngx still fails:

2025-09-09 16:05:08,103: DEBUG - configure: error: X11 libraries (libX11, libXt, libXext) not available, either install them, or rerun configure with "--without-x"

https://paste.yunohost.org/raw/jokarawuno

Meanwhile i have updated to YunoHost 12.1.22, but the new version of Paperless-ngx 2.18.4~ynh1 fails with the same error message as before:

configure: error: X11 libraries (libX11, libXt, libXext) not available, either install them, or rerun configure with "--without-x"

https://paste.yunohost.org/raw/agoquvicov

If have installed the server with the original YunoHost v.12.0 ISO.

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