[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#887629: libc6: bad upgrade path: libexpat1 unpacked and python3 called before libc6 unpacked



control: reassign -1 apt,dpkg
control: affects -1 libc6
control: affects -1 libexpat1

On 2018-01-18 15:53, Andreas Beckmann wrote:
> Package: libc6
> Version: 2.26-2
> Severity: serious
> User: debian-qa@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package fails to upgrade from
> 'stretch'.
> It installed fine in 'stretch', then the upgrade to 'buster' fails.
> 
> >From the attached log (scroll to the bottom...):
> 
> [...]
>   Preparing to unpack .../libexpat1-dev_2.2.5-3_i386.deb ...
>   Unpacking libexpat1-dev:i386 (2.2.5-3) over (2.2.0-2+deb9u1) ...
>   Preparing to unpack .../libexpat1_2.2.5-3_i386.deb ...
>   Unpacking libexpat1:i386 (2.2.5-3) over (2.2.0-2+deb9u1) ...

$ apt-cache show libexpat1
Package: libexpat1
Source: expat
Version: 2.2.5-3
Installed-Size: 429
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Architecture: i386
Depends: libc6 (>= 2.25)

So libexpat1 correctly depends on libc6 (>= 2.25), which is not
even unpacked at that point.

> [...]
>   Preparing to unpack .../3-libglib2.0-dev_2.54.3-1_i386.deb ...
>   /usr/bin/python3: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /lib/i386-linux-gnu/libexpat.so.1)
>   dpkg: warning: subprocess old pre-removal script returned error exit status 1
>   dpkg: trying script from the new package instead ...
>   dpkg: error processing archive /tmp/apt-dpkg-install-wfemKS/3-libglib2.0-dev_2.54.3-1_i386.deb (--unpack):
>    there is no script in the new version of the package - giving up
>   /usr/bin/python3: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /lib/i386-linux-gnu/libexpat.so.1)

This failure is normal given libexpat1 requires the new libc which has
not been unpacked yet.

>   dpkg: error while cleaning up:
>    subprocess installed post-installation script returned error exit status 1
> [...]
>   Preparing to unpack .../9-libc6_2.26-2_i386.deb ...
>   Unpacking libc6:i386 (2.26-2) over (2.24-11+deb9u1) ...
>   Errors were encountered while processing:
>    /tmp/apt-dpkg-install-wfemKS/3-libglib2.0-dev_2.54.3-1_i386.deb

And libc6 2.26-2 is only unpacked afterwards.

> This was a test in an i386 chroot with --install-recommends enabled,
> the package tested was multimedia-devel.
> Note that this runs with apt from stretch since this is an upgrade test ...
> 
> Something (I don't know what) probably needs to get stricter dependencies.

I disagree. The dependencies of libexpat1 are correct, libexpat1 needs a
new libc6 and correctly depends on it. Therefore it's not a bug of libc6
nor libexpat1. It looks to me like a bug in apt or dpkg. I am therefore
reassigning the bug to these packages, so the maintainers can have a
look at the issue.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: