Bug#1128302: python3-pyarrow: trying to overwrite '/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.2300.1.0', which is also in package libarrow-python2300
Adrian Bunk
bunk at debian.org
Tue Feb 17 17:58:29 GMT 2026
Package: python3-pyarrow
Version: 23.0.1-1
Severity: serious
X-Debbugs-Cc: Steffen Moeller <moeller at debian.org>
https://ci.debian.net/packages/a/apache-arrow/testing/arm64/68733441/
...
60s Preparing to unpack …/python3-pyarrow_23.0.1-1_arm64.deb…
60s Unpacking python3-pyarrow (23.0.1-1)…
60s dpkg: error processing archive /var/cache/apt/archives/python3-pyarrow_23.0.1-1_arm64.deb (--unpack):
60s trying to overwrite '/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.2300.1.0', which is also in package libarrow-python2300 (23.0.1-1)
60s Errors were encountered while processing:
60s /var/cache/apt/archives/python3-pyarrow_23.0.1-1_arm64.deb
...
The problem is the following in debian/rules:
rm -rf debian/python3-pyarrow/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.$(SOVERSION).0.0
rm -rf debian/python3-pyarrow/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.$(SOVERSION)
"-f" instructs rm to silently ignore it when the file does not exist.
Both fixing this issue and turning it into an error when it fails is:
- rm -rf debian/python3-pyarrow/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.$(SOVERSION).0.0
- rm -rf debian/python3-pyarrow/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.$(SOVERSION)
+ rm debian/python3-pyarrow/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.$(SOVERSION).1.0
+ rm debian/python3-pyarrow/usr/lib/python3/dist-packages/pyarrow/libarrow_python.so.$(SOVERSION)
I would suggest reviewing all removals in debian/rules, e.g. whatever the problem behind
rm -rf $(CURDIR)/debian/tmp/usr/lib/python3/python3.14
is, it might do the wrong thing when the package gets rebuilt for the upcoming Python 3.14
defaults transition.
More information about the debian-science-maintainers
mailing list