Bug#945582: systemd: Upgrade fails due to missing library libsystemd-shared-241.so
Graham Cobb
g+debian at cobb.uk.net
Wed Nov 27 15:22:50 GMT 2019
On 27/11/2019 14:05, Ansgar wrote:
> On Wed, 2019-11-27 at 11:49 +0000, Graham Cobb wrote:
>> I am upgrading my debian testing system but the upgrades fail as systemd cannot be configured.
>>
>> Output from dpkg --configure systemd:
>>
>> Setting up systemd (243-8) ...
>> systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-241.so: cannot open shared object file: No such file or directory
>> dpkg: error processing package systemd (--configure):
>> installed systemd package post-installation script subprocess returned error exit status 127
>
> Hmm, this is strange. When the package is configured, it should
> already be extracted. And systemd-machine-id-setup from systemd-243
> shouldn't link against a libsystemd-shared-241.so.
>
> You said your system doesn't have merged-/usr, so I wonder why there
> seems to be /usr/bin/systemd-machine-id-setup and libsystemd-shared-
> 241.so in /usr.
>
> Could you run
>
> ls -l /usr/bin/systemd-machine-id-setup \
> /bin/systemd-machine-id-setup \
> /usr/lib/systemd/libsystemd-shared* \
> /lib/systemd/libsystemd-shared*
# ls -l /usr/bin/systemd-machine-id-setup \
> /bin/systemd-machine-id-setup \
> /usr/lib/systemd/libsystemd-shared* \
> /lib/systemd/libsystemd-shared*
-rwxr-xr-x 1 root root 26792 Nov 19 08:17 /bin/systemd-machine-id-setup
-rw-r--r-- 1 root root 2806128 Nov 19 08:17
/lib/systemd/libsystemd-shared-243.so
-rwxr-xr-x 1 root root 26792 May 24 2019
/usr/bin/systemd-machine-id-setup
-rw-r--r-- 1 root root 2670992 May 24 2019
/usr/lib/systemd/libsystemd-shared-241.so
> I suspect there are some old binaries (from systemd-241) around for
> some reason.
That does seem to be the case.
I note that dpkg -S can find packages responsible for the /bin
executables but not the /usr/bin ones:
# dpkg -S /bin/systemd-machine-id-setup
systemd: /bin/systemd-machine-id-setup
# dpkg -S /usr/bin/systemd-machine-id-setup
dpkg-query: no path found matching pattern /usr/bin/systemd-machine-id-setup
More information about the Pkg-systemd-maintainers
mailing list