Debian distribution upgrade to Bullseye failed with Systemd lookup error: undefined symbol: seccomp_api_get

Written by - 0 comments

Published on - Listed in Linux LXC Systemd


While upgrading a Debian 10 (Buster) LXC container to the current stable Debian 11 (Bullseye), the dist-upgrade process failed unexpectedly with the following error:

root@debian:~# apt-get dist-upgrade
[...]
Setting up mount (2.36.1-8+deb11u1) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.175-2.1) ...
Setting up libcryptsetup12:amd64 (2:2.3.7-1+deb11u1) ...
Setting up systemd (247.3-7+deb11u1) ...
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/networkd.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service -> /lib/systemd/system/systemd-pstore.service.
systemd-machine-id-setup: symbol lookup error: /lib/systemd/libsystemd-shared-247.so: undefined symbol: seccomp_api_get
dpkg: error processing package systemd (--configure):
 installed systemd package post-installation script subprocess returned error exit status 127
Setting up dmsetup (2:1.02.175-2.1) ...
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

All subsequent trials to continue the dist-upgrade failed.

This is the first time I personally ran into that specific error, but luckily I am not the first one to encounter this one. On StackExchange another user ran into the same Systemd related error and the solution is basically to remove the existing seccomp libraries (which cause the conflict):

root@debian:~# mv /lib/x86_64-linux-gnu/libseccomp.so.2* /tmp/

The distribution upgrade was then able to continue and finished correctly:

root@debian:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
[...]
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 24455 files and directories currently installed.)
Preparing to unpack .../guile-2.2-libs_2.2.7+1-6_amd64.deb ...
Unpacking guile-2.2-libs:amd64 (2.2.7+1-6) over (2.2.4+1-2+deb10u1) ...
(Reading database ... 24454 files and directories currently installed.)
Removing libgc1c2:amd64 (1:7.6.4-0.4) ...
Selecting previously unselected package libgc1:amd64.
(Reading database ... 24446 files and directories currently installed.)
Preparing to unpack .../libgc1_1%3a8.0.4-3_amd64.deb ...
Unpacking libgc1:amd64 (1:8.0.4-3) ...
Setting up systemd (247.3-7+deb11u1) ...
Removing obsolete conffile /etc/dhcp/dhclient-exit-hooks.d/timesyncd ...
Removing obsolete conffile /etc/systemd/timesyncd.conf ...
Removing obsolete conffile /etc/pam.d/systemd-user ...
[...]
done.



Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.