Bug#827513: --unpack: /var/lib/dpkg/tmp.ci/preinst: line 18: sync_extensions: command not found
severity 827513 serious
tag 827513 + confirmed
tag 827513 + help
thanks
Hi,
On Fri, Jun 17, 2016 at 11:15:07AM +0300, Roman Lebedev wrote:
> Preparing to unpack
> .../libreoffice-mysql-connector_1.0.2+LibO5.1.4~rc2-1_amd64.deb ...
> /var/lib/dpkg/tmp.ci/preinst: line 18: sync_extensions: command not
> found
This is weird.
libreoffice-mysql-connector doesn't have a (explicit) preinst since ages.
And if it had, sync_extensions is also looong gone.
> dpkg: error processing archive
> /var/cache/apt/archives/libreoffice-mysql-connector_1.0.2+LibO5.1.4~rc2-1_amd64.deb
> (--unpack):
> subprocess new pre-installation script returned error exit status 127
But yeah, I can reproduce this after a initial
apt-get install libreoffice libreoffice-mysql-connector (which does succeed.)
with a simple apt-get install --reinstall.
[...]
Setting up libreoffice-mysql-connector (1.0.2+LibO5.1.4~rc2-1) ...
Processing triggers for libc-bin (2.22-10) ...
Processing triggers for systemd (230-2) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.34.0-1) ...
Processing triggers for libreoffice-common (1:5.1.4~rc2-1) ...
root@endor:/# apt-get install --reinstall libreoffice-mysql-connector
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 29 not upgraded.
Need to get 0 B/177 kB of archives.
After this operation, 0 B of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 29385 files and directories currently installed.)
Preparing to unpack .../libreoffice-mysql-connector_1.0.2+LibO5.1.4~rc2-1_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: line 18: sync_extensions: command not found
dpkg: error processing archive /var/cache/apt/archives/libreoffice-mysql-connector_1.0.2+LibO5.1.4~rc2-1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 127
Processing triggers for libreoffice-common (1:5.1.4~rc2-1) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@endor:/# grep sync_extensions /var/lib/dpkg/info/*
/var/lib/dpkg/info/libreoffice-common.postinst:make_lo_sync_extensions() {
/var/lib/dpkg/info/libreoffice-common.postinst: make_lo_sync_extensions
/var/lib/dpkg/info/libreoffice-mysql-connector.preinst:make_lo_sync_extensions() {
/var/lib/dpkg/info/libreoffice-mysql-connector.preinst: sync_extensions
/var/lib/dpkg/info/python3-uno.preinst:make_lo_sync_extensions() {
/var/lib/dpkg/info/python3-uno.preinst: sync_extensions
root@endor:/#
Indeed there is
if [ "$1" = "upgrade" ]; then
rm -rf /usr/lib/libreoffice/share/extensions/mysql-connector-ooo
sync_extensions
fi
which shouldn't be there.
(python-uno has a similar part but this one was version-guardad, so isn't
ran/failing)
It should simply be deleted by nopw; the question is where this comes from
(and why noone noticed until now...)
Regards,
Rene
Reply to: