You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build system places liblzma.so.5 at /usr/local/lib
The version used is incompatible with the expectations of the Debian based install system (which seems to label the version 5.6 but expects 5.4, see this thread for similar symptoms.
After this, attempting any apt, apt-get, dpkg etc operation results in symptoms like those below.
Removing the library from this folder fixes this (but breaks watchman). I guess I was lucky that I didn't change the prefix to /usr as this would have been harder to debug.
❯ watchman
watchman: error while loading shared libraries: /usr/local/lib/liblzma.so.5: cannot open shared object file: No such file or directory
(Is this at the root of why there hasn't been a Linux build since 2024-04 ?)
Posting this for information as much as anything else : building and installing from source on Linux will put many people's systems into a broken state they might not have the skills to recover from.
After this operation, 5,431 kB disk space will be freed.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg-deb: /usr/local/lib/liblzma.so.5: version `XZ_5.4' not found (required by dpkg-deb)
dpkg: error processing archive /var/cache/apt/archives/python3.12-dev_3.12.3-1ubuntu0.5_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 1
dpkg-deb: /usr/local/lib/liblzma.so.5: version `XZ_5.4' not found (required by dpkg-deb)
dpkg: error processing archive /var/cache/apt/archives/libpython3.12-dev_3.12.3-1ubuntu0.5_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 1
dpkg-deb: /usr/local/lib/liblzma.so.5: version `XZ_5.4' not found (required by dpkg-deb)
dpkg: error processing archive /var/cache/apt/archives/libpython3.12t64_3.12.3-1ubuntu0.5_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 1
dpkg-deb: /usr/local/lib/liblzma.so.5: version `XZ_5.4' not found (required by dpkg-deb)
dpkg: error processing archive /var/cache/apt/archives/libssl-dev_3.0.13-0ubuntu3.5_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 1
No apport report written because MaxReports is reached already
dpkg-deb: /usr/local/lib/liblzma.so.5: version `XZ_5.4' not found (required by dpkg-deb)
dpkg: error processing archive /var/cache/apt/archives/libssl3t64_3.0.13-0ubuntu3.5_amd64.deb (--unpack):
Verified/Diagnosed this by
Noting the mod time on the library in /usr/local/lib
Guessing that it might have been an install from source that put it there
Searching $HOME for files that were modded that day
Seeing the watchman folder
Finding a liblzma.so.5 file in the build outputs timestamped 6 minutes before the offending lib
Comparing the sha1sum of both files and noting them to be identical.
The text was updated successfully, but these errors were encountered:
In my Linux Mint 22.1 (Based on Ubuntu 24.04) /usr/local/lib/liblzma.so.5 was installed by watchman, causing issues with apt, I fix this issue doing:
# Backup liblzma.so.5 installed by watchman
sudo mv /usr/local/lib/liblzma.so.5 $HOME/
# Create a symbolic link with the liblzma.so installed in the distro
sudo ln -s /usr/lib/x86_64-linux-gnu/liblzma.so /usr/local/lib/liblzma.so.5
Problem :
Build and installed
watchman
from source.The build system places
liblzma.so.5
at/usr/local/lib
The version used is incompatible with the expectations of the Debian based install system (which seems to label the version 5.6 but expects 5.4, see this thread for similar symptoms.
After this, attempting any
apt
,apt-get
,dpkg
etc operation results in symptoms like those below.Removing the library from this folder fixes this (but breaks watchman). I guess I was lucky that I didn't change the prefix to
/usr
as this would have been harder to debug.(Is this at the root of why there hasn't been a Linux build since 2024-04 ?)
Posting this for information as much as anything else : building and installing from source on Linux will put many people's systems into a broken state they might not have the skills to recover from.
Verified/Diagnosed this by
/usr/local/lib
$HOME
for files that were modded that daywatchman
folderliblzma.so.5
file in the build outputs timestamped 6 minutes before the offending libsha1sum
of both files and noting them to be identical.The text was updated successfully, but these errors were encountered: