Issue
Xray: Installation Fails on Debian 11 Due to Missing libllvm13 library required to Postgres
While installing the Xray version(s) lower to v3.107.x with bundled Postgresql, you may notice the below error:
Creating PostgreSQL data folder on /var/opt/postgres/data
Installing/Verifying PostgreSQL (this may take several minutes)...
Locale en_US.utf8 is present
Installing (postgresql-15_15.6-1.pgdg110+2_amd64.deb) ...
Installing missing (postgresql-15_15.6-1.pgdg110+2_amd64.deb) dependencies requires internet access, proceeding with installation...
[ERROR] Installing postgresql-15_15.6-1.pgdg110+2_amd64.deb package failed
The above error note indicates the new dependency that was added to the Postgres Debian V11 package and is failing to fetch the package (bundled with the Xray package) during the new Xray installation setup.
The component libllvm13 is missing in the bundle, which is a dependency for PostgreSQL.
Resolution
To resolve this issue, please execute the following command to install the missing dependency:
apt-get install libllvm13
Note: Issue is specific to only new installations of Xray lesser than 3.107.x on Debian 11 with bundled Postgres and shouldn’t impact any upgrades or installation of later Xray versions.