[Bug 1969353] Re: Apt/Grub issue with 22.04 Upgrade (Missing libcrypto.so.1.1)
Simon Chopin
1969353 at bugs.launchpad.net
Thu Apr 21 10:14:49 UTC 2022
I looked into the details, and my conclusions are that the grub-
customizer package has a completely broken removal/upgrade story.
The package only installs some binaries, without any custom maintainer
scripts or fancy things. Once you run the main program, it goes and
modifies the /etc/grub.d scripts automatically for you to customize them
as specified. That part already feels weird to me, but wouldn't
necessarily cause problems.
However, there are some customizations that are apparently not doable by
simply editing the existing configuration scripts. For those, the
program moves all existing conf scripts out of the way, and instead
installs "proxy scripts" written in a custom language that basically
filter the output of the original scripts. The language interpreter is a
standard ELF binary with standard dynamic linking, which seems to need
the whole Qt stack for some reason. Said interpreter is copied to
/etc/grub.d/bin/grubcfg_proxy, presumably so that the system keeps
working even if the user uninstalls grub-customizer.
That logic is actually broken, since removing the grub-customizer
package might lead to the removal of its dependencies, e.g. the Qt
stack, leading to a broken binary.
My suggestion for the path forward would be to patch the application to
have /etc/grub.d/bin/grubcfg_proxy be a shell script that invokes the
dpkg-managed proxy if it's available, else prints out a warning and
executes the original script. We couple that with a post-rm maintainer
script that ensures that the /etc-installed script is the one from the
current version of the package. We'd need to SRU this to Impish, Focal,
and Jammy.
That wouldn't fix every issue with the package, notably leaving the
purge situation still broken, but at least that'd fix the problem at
hand.
Thoughts?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1969353
Title:
Apt/Grub issue with 22.04 Upgrade (Missing libcrypto.so.1.1)
Status in grub-customizer package in Ubuntu:
New
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
I would like to report an issue with the final phase of the upgrade to
22.04 (the final package cleanup) where it tries to update grub after
removing some older kernels but fails due to a missing file
(libcrypto.so.1.1) - See details in the log attached.
I was unable to fix this using apt alone since it abolutely wants to
fix this. I identified that the missing file was part of the libssl
package. I added Impish-Security back into the sources.list but I
still couldn't install libssl1.1 as apt wanted to update grub first
for some reason.
For anyone with this issue, I managed to fix it eventually by
downloading the libssl deb manually and running 'sudo apt --fix-broken
install'.
I don't know for sure where the issue comes from but this was a farly
recent install of Ubuntu 21.10. I can see that libssl existed up to
Impish only so it's either a temporary issue and it will be added
between now and the upgrade date, or the package has been removed and
some other people may face the same problem.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-release-upgrader-core 1:22.04.9
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CrashDB: ubuntu
CrashReports:
640:1000:123:6404482:2022-04-18 14:59:09.480963945 +0800:2022-04-18 15:37:28.386895744 +0800:/var/crash/_usr_bin_gnome-control-center.1000.crash
600:0:123:801423:2022-04-18 15:23:35.872834781 +0800:2022-04-18 15:37:28.402892412 +0800:/var/crash/linux-image-5.13.0-39-generic.0.crash
640:0:123:395731:2022-04-18 16:31:42.762021782 +0800:2022-04-18 16:31:42.434015345 +0800:/var/crash/_bin_brltty.0.crash
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 18 17:25:32 2022
InstallationDate: Installed on 2022-04-06 (11 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to jammy on 2022-04-18 (0 days ago)
VarLogDistupgradeXorgFixuplog:
INFO:root:/usr/bin/do-release-upgrade running
INFO:root:No xorg.conf, exiting
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-customizer/+bug/1969353/+subscriptions
More information about the foundations-bugs
mailing list