[Bug 1969353] Re: Apt/Grub issue with 22.04 Upgrade (Missing libcrypto.so.1.1)
Batwam
1969353 at bugs.launchpad.net
Fri Apr 22 15:34:37 UTC 2022
the final "/main_dir" looks like a typo. also, the first cp would fail
as $proxy_script already includes the full path. One problem I see is
that, for me at least, the files in the proxifiedScripts folders have
been stripped of their numbers ("10_linux" is called "linux" for
instance). so before copying the file back, you would need to take the
script name and strip the _proxy part to find the original name:
#!/bin/bash
main_dir=/etc/grub.d
orig_dir=$main_dir/proxifiedScripts
backup_dir=$main_dir/proxyscript_backup
mkdir -p $backup_dir
for script in $(ls $orig_dir); do
# we're assuming there's only one proxy script for each proxied file
proxy_script=$(ls ${main_dir}/*_"${script}"_proxy)
new_script=$(echo "$proxy_script" | sed 's/_proxy//g')
# back up the "proxy script"
mv "$proxy_script" $backup_dir
# overwrite it with the original shell script if it doesn't already exist
if [ ! -f "$new_script" ]; then
cp $orig_dir/"$script" "$new_script"
else
echo "file already exists"
fi
done
Also, if 10_linux has been copied during the upgrade, chances are that
the files in the proxy folder is an older version so I wouldn't really
want the new files to be overwritten with the old ones so, a simple sudo
rm /etc/grub.d/*_proxy works just as well for me to prevent the grub
failure which I experienced post upgrade. People can always fire up
grub-customizer again and regenerate the files if needed.
Alternatively, could it be as simple as copying
/etc/grub.d/bin/grubcfg_proxy as part of the package install/update?
** Attachment added: "test.sh"
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1969353/+attachment/5582507/+files/test.sh
--
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:
Confirmed
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Status in grub-customizer source package in Focal:
Confirmed
Status in ubuntu-release-upgrader source package in Focal:
Confirmed
Status in grub-customizer source package in Impish:
Confirmed
Status in ubuntu-release-upgrader source package in Impish:
Confirmed
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