Help plz. Error systemd: "systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-250.so: cannot open shared object file: No such file or directory"

– Please Write here your help request –
When updating the system, I get this error:

parrot-upgrade
Hit:1 https://linux.teamviewer.com/deb stable InRelease
Hit:2 Index of /repos/code/ stable InRelease
Hit:3 Index of /parrot/ parrot InRelease
Get:4 Index of /direct/parrot/ parrot-security InRelease [14.4 kB]
Get:5 Index of /parrot/ parrot-backports InRelease [14.5 kB]
Get:6 Index of /direct/parrot/ parrot-security/main amd64 Packages [354 kB]
Get:7 Index of /direct/parrot/ parrot-security/main i386 Packages [352 kB]
Get:8 Index of /direct/parrot/ parrot-security/non-free i386 Packages [621 B]
Get:9 Index of /direct/parrot/ parrot-security/non-free amd64 Packages [621 B]
Get:10 Index of /parrot/ parrot-backports/main amd64 Packages [882 kB]
Get:11 Index of /parrot/ parrot-backports/main i386 Packages [831 kB]
Get:12 Index of /parrot/ parrot-backports/contrib i386 Packages [12.2 kB]
Get:13 Index of /parrot/ parrot-backports/contrib amd64 Packages [19.2 kB]
Get:14 Index of /parrot/ parrot-backports/non-free amd64 Packages [23.2 kB]
Get:15 Index of /parrot/ parrot-backports/non-free i386 Packages [19.5 kB]
Hit:16 Index of /yandex-disk/deb/ stable InRelease
Fetched 2,524 kB in 4s (661 kB/s)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
50 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
Setting up systemd (247.3-7+deb11u1) …
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-250.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
Errors were encountered while processing:
systemd
failed to fix interrupted upgrades
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up systemd (247.3-7+deb11u1) …
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-250.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
Errors were encountered while processing:
systemd
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to fix conflicts
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
anonsurf anonsurf-gtk ara-icon-theme chromium chromium-common chromium-sandbox code
codium curl dpkg-dev fig2dev ifenslave inxi krb5-locales libc-l10n libcurl3-gnutls
libcurl3-gnutls:i386 libcurl3-nss libcurl4 libcurl4:i386 libdpkg-perl
libgssapi-krb5-2 libgssapi-krb5-2:i386 libhttp-parser2.9 libk5crypto3
libk5crypto3:i386 libkrb5-3 libkrb5-3:i386 libkrb5support0 libkrb5support0:i386
libpcre2-16-0 libpcre2-8-0 libpcre2-8-0:i386 libpoppler-cpp0v5 libpoppler-glib8
libpoppler-glib8:i386 libpoppler-qt5-1 libpoppler102 libpoppler102:i386 libxnvctrl0
locales locales-all maltego parrot-displaymanager parrot-menu poppler-utils
publicsuffix systemd-sysv thunderbird tmux
50 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/519 MB of archives.
After this operation, 12.3 MB of additional disk space will be used.
apt-listchanges: Reading changelogs…
Extracting templates from packages: 100%
Preconfiguring packages …
Setting up systemd (247.3-7+deb11u1) …
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-250.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
Errors were encountered while processing:
systemd
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

help me please


  • ParrotOS iso in use:

  • Application used for flashing the iso:

  • Logs/Terminal output (use pastebin or similar services):

  • Screenshots:

Have you tried

sudo apt install libsystemd-shared

sudo apt install libsystemd-shared
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
libsystemd-shared is already the newest version (251.3-1~bpo11+1).
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up systemd (247.3-7+deb11u1) …
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-250.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
dpkg: dependency problems prevent configuration of libnss-systemd:amd64:
libnss-systemd:amd64 depends on systemd (= 247.3-7+deb11u1); however:
Package systemd is not configured yet.

dpkg: error processing package libnss-systemd:amd64 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
systemd
libnss-systemd:amd64
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

This might be useful. There are other Googled webpages about this issue too.

1 Like

Thanks, but it didn’t work for me :(((
I deleted these files, the errors remained, I returned everything back.

how to remove duplicates? right

I’m only a hobbyist, not a Linux guru. Hopefully someone here can help you further, or you find an answer via Google.

1 Like

i solved my problem.
i found the file libsystemd-shared-250.so on my system
and copied it to the /lib/systemd folder
after that it was updated
thanks to all

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.