systemd breaks due to old libsecomp libs left on the system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libseccomp (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Upgraded Ubuntu 18.04 to 20.04. Following the upgrade, booting was not possible. The error messages is:
/sbin/init: symbol lookup error: /lib/systemd/
[ 4.608900] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
See also attached photograph of screen during boot.
Upgrade followed steps from here: https:/
With the excpetion that The -d flag was used for the do-release-upgrade:
sudo do-release-upgrade -d -m desktop
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Prior to upgrade: Ubuntu 18.04.4
After upgrade (but never booted): Ubuntu (Kubuntu) 20.04
Note that Ubuntu had originally be installed, but kubuntu-desktop was recently installed to change to Kubuntu, but no booting problems were experienced before updating to 20.04.
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in
Unknown -- Package version may have changed when upgrading to 20.04.
3) What you expected to happen
Boot without kernel panic.
4) What happened instead
Could not boot. Even selecting safe mode from grub could not boot. Had to restore system from backups. Will not attempt upgrade again.
summary: |
- Kernel panic booting after 18.04 to 20.04 upgrade + systemd breaks due to old libsecomp libs left on the system |
This is something to do with linux 5 kernel api
You need to manually downgrade systemd - well - that's what I did.
when you boot with grub or refind - edit default entry and change the init=/bin/init to init=/bin/bash
That will bypass systemd starting up and drop you straight into a shell.
mount -o remount / 241-7~deb10u3_ amd64.deb
mount /usr
mount /var
mount /dev/sdc1 /mnt
dpkg -i /mnt/systemd_
On a system that works or download a previous version somehow.
dpkg -l systemd Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= ===-=== ======= ==-==== ======= ======= ======= ======= = /home/wozza# apt-cache policy systemd ftp.iinet. net.au/ debian/ debian bullseye/main amd64 Packages dpkg/status ftp.iinet. net.au/ debian/ debian stable/main amd64 Packages /home/wozza# apt-get download systemd= 241-7~deb10u3 ftp.iinet. net.au/ debian/ debian stable/main amd64 systemd amd64 241-7~deb10u3 [3,495 kB] wozza/systemd_ 241-7~deb10u3_ amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) /home/wozza# ll systemd_ 241-7~deb10u3_ amd64.deb 241-7~deb10u3_ amd64.deb /home/wozza# mount /dev/sdc1 /mnt /home/wozza# cp systemd_ 241-7~deb10u3_ amd64.deb /mnt/ /home/wozza# cd /mnt/ /mnt/unpack# dpkg-deb -R ../systemd_ 241-7~deb10u3_ amd64.deb .
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii systemd 245.5-2 amd64 system and service manager
root@leet:
systemd:
Installed: 245.5-2
Candidate: 245.5-2
Version table:
*** 245.5-2 500
500 http://
100 /var/lib/
241-7~deb10u3 500
500 http://
root@leet:
Get:1 http://
Fetched 3,495 kB in 11s (321 kB/s)
W: Download is performed unsandboxed as root as file '/home/
root@leet:
-rw-r--r-- 1 root root 3495428 Jan 31 15:11 systemd_
root@leet:
root@leet:
root@leet:
root@leet:/mnt# mkdir unpack
root@leet:/mnt# cd unpack/
root@leet:
worst comes to worse can copy the files across from unpack directory - good luck.