Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + [[ -n advancecomp brotli gifsicle jhead jpegoptim libapr1-dev libjemalloc-dev libreadline-dev libunwind-dev libxslt1-dev optipng pngcrush libbz2-dev librsvg2-dev postgresql-server-dev-all yarn ]]
Info: DEBUG - + ynh_package_install advancecomp brotli gifsicle jhead jpegoptim libapr1-dev libjemalloc-dev libreadline-dev libunwind-dev libxslt1-dev optipng pngcrush libbz2-dev librsvg2-dev postgresql-server-dev-all yarn --dry-run
Info: DEBUG - + sed --quiet '/Reading state info/,$p'
Info: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install advancecomp brotli gifsicle jhead jpegoptim libapr1-dev libjemalloc-dev libreadline-dev libunwind-dev libxslt1-dev optipng pngcrush libbz2-dev librsvg2-dev postgresql-server-dev-all yarn --dry-run
Info: DEBUG - + ynh_wait_dpkg_free
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 advancecomp brotli gifsicle jhead jpegoptim libapr1-dev libjemalloc-dev libreadline-dev libunwind-dev libxslt1-dev optipng pngcrush libbz2-dev librsvg2-dev postgresql-server-dev-all yarn --dry-run
Info: WARNING - The following packages have unmet dependencies:
Info: WARNING - libapr1-dev : Depends: libapr1 (= 1.7.2-3+deb12u1) but it is not going to be installed
Info: WARNING - Depends: libsctp-dev but it is not going to be installed
Info: WARNING - librsvg2-dev : Depends: gir1.2-rsvg-2.0 (= 2.54.7+dfsg-1~deb12u1) but it is not going to be installed
Info: WARNING - Depends: libcairo2-dev (>= 1.2.0) but it is not going to be installed
Info: WARNING - Depends: libgdk-pixbuf-2.0-dev (>= 2.23.5-2) but it is not going to be installed
Info: WARNING - Depends: libglib2.0-dev (>= 2.50.0) but it is not going to be installed
Info: WARNING - postgresql-common-dev : Breaks: postgresql-server-dev-all (< 269) but 248 is to be installed
Info: WARNING - postgresql-server-dev-all : Depends: postgresql-common (= 248) but 281.pgdg120+1 is to be installed
Info: WARNING - Depends: postgresql-server-dev-15 but it is not going to be installed
Info: DEBUG - + ynh_die '--message=Unable to install dependencies'
Info: DEBUG - + ynh_exit_properly
Hello, I am experiencing the exact same issue as described in this thread.
My Yunohost installation is failing when I try to install the Discourse app due to a dependency conflict with PostgreSQL.
Here is a summary of my problem:
Yunohost Version: (12.1.17.1 (stable))
App Version: Discourse 3.4.2~ynh2
Error: The apt installation process is failing because of a version conflict with postgresql-common.
My system has a newer version of postgresql-common installed, which seems to be from an external repository, while the Discourse app’s required postgresql-server-dev-all package expects an older, specific version.
Here are the relevant outputs from my terminal that clearly show the conflict: