You are not logged in.
I ran pacman -Syu and upgraded all packages including grub. When I went to upgrade to
grub-2:2.06.r380.g151467888-1-x86_64 – I got this:
[spike@zenboy ~]$ sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
Installing for x86_64-efi platform.
Installation finished. No error reported.
[spike@zenboy ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-fallback.img
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
/etc/grub.d/proxifiedScripts/linux: line 200: version_find_latest: command not foundI have not yet rebooted as I’m afraid it won’t load. What can I do to fix these two errors?
I don’t know how to fix the shared library libcrypto.so.1.1 error - and
Line 200 in proxifiedScripts/linux reads:
linux=`version_find_latest $list` I have looked but not found this issue combination. Upgrading grub with those two commands has been working fine ever since that last big grub change some months ago. Thanks.
Last edited by andheisus (2022-11-21 03:28:12)
Offline
Those are grub-customizer problems. Last I knew grub-customizer wasn't compatible with the grub Arch ships.
EDIT: And even if it is now, you need to reinstall it to your grub installation. Just like grub, that doesn't happen automatically on upgrade.
Last edited by Scimmia (2022-11-20 22:31:28)
Online
I had read that it might be related, so I uninstalled grub-customizer. Then I ran grub-mkconfig again, but am still getting those same two errors.
Offline
Because, as I alluded to, the package doesn't install or uninstall the files into grub. You have to do that separately. I can't tell you how, though, as I don't use it.
Online
pacman -Fl grub
...
grub etc/grub.d/
grub etc/grub.d/00_header
grub etc/grub.d/10_linux
grub etc/grub.d/20_linux_xen
grub etc/grub.d/30_os-prober
grub etc/grub.d/30_uefi-firmware
grub etc/grub.d/40_custom
grub etc/grub.d/41_custom
grub etc/grub.d/README
...Get rid of anything else in
/etc/grub.dunless you purposely put it there.
Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '
Offline
merlock: I went to uninstall what’s not on your list, but got warnings on the first command. Does this result make any sense?
[spike@zenboy ~]$ sudo pacman -Fl grub
[sudo] password for spike:
warning: database file for 'core' does not exist (use '-Fy' to download)
warning: database file for 'extra' does not exist (use '-Fy' to download)
warning: database file for 'community' does not exist (use '-Fy' to download)
warning: database file for 'multilib' does not exist (use '-Fy' to download)
error: package 'grub' was not found
[spike@zenboy ~]$ cd /etc/grub.d
[spike@zenboy grub.d]$ ls
00_header 10_linux_proxy 30_uefi-firmware 41_custom
01_grub-customizer_menu_color_helper 20_linux_xen 31_uefi-firmware backup bin proxifiedScripts README
10_linux 30_os-prober 40_custom So I:
[spike@zenboy grub.d]$ sudo pacman -R 01_grub-customizer_menu_color_helper
error: target not found: 01_grub-customizer_menu_color_helperDo I really uninstall all that is not on that list (except the folders)?
So I tried running the grub-install and grub-mkconfig commands again just to see – still getting the same errors.
Offline
[spike@zenboy grub.d]$ sudo pacman -R 01_grub-customizer_menu_color_helper error: target not found: 01_grub-customizer_menu_color_helper
You can't uninstall a file. You uninstall the package.
pacman -Qo 01_grub-customizer_menu_color_helperwill tell you the name of the package to uninstall. Give that name to pacman -R. If you've already uninstalled the package or no package owns it, delete the file or move it to a backup directory.
For a list of files installed by grub,
pacman -Ql grubLast edited by cfr (2022-11-21 00:58:18)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I had already uninstalled grub-customizer, but when I ran the query here, i got:
[spike@zenboy grub.d]$ pacman -Qo 01_grub-customizer_menu_color_helper
error: No package owns 01_grub-customizer_menu_color_helperI found a hint for a fix (workaround?, not sure) on google at https://forums.linuxmint.com/viewtopic.php?t=379134. It calls for installing libssl-1.1, I guess to satisfy the missing library error.
So I did and then ran grub-install ... it was ok, no error reported.
And re-ran grub-mkconfig:
[spike@zenboy grub.d]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-fallback.img
/etc/grub.d/proxifiedScripts/linux: line 200: version_find_latest: command not found
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Adding boot menu entry for UEFI Firmware Settings ...
done
[spike@zenboy grub.d]$ This looks like a good config result to me... think it's safe to reboot?
Offline
You uninstalled the grub-customizer *package*, you did NOT uninstall grub-customizer. That's the whole point.
Why do people insist on using that workaround instead of fixing things?
Online
I had already uninstalled grub-customizer, but when I ran the query here, i got:
[spike@zenboy grub.d]$ pacman -Qo 01_grub-customizer_menu_color_helper error: No package owns 01_grub-customizer_menu_color_helper
If you've already uninstalled the package or no package owns it, delete the file or move it to a backup directory.
I found a hint for a fix (workaround?, not sure) on google at https://forums.linuxmint.com/viewtopic.php?t=379134. It calls for installing libssl-1.1, I guess to satisfy the missing library error.
That is not a good 'solution'.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I'm a bit confused now, Scimmia, as to how to fully uninstall all the package bits. I found an old post of Allan's that suggests *pacman -Rsn* but that is now reporting *target not found*. And yes, cfr, I know that the MInt thread is a sloppy fix, but would it allow me to safely reboot and apply all the updates, so I can properly repair my damage?
Last edited by andheisus (2022-11-21 01:36:43)
Offline
mkdir /etc/grub.d.bkup
mv -n /etc/grub.d/01_grub-customizer_menu_color_helper /etc/grub.d.bkup/The file is not in pacman's database (pacman -Qo says no package owns it). It is not pacman's job to remove it. You could simply delete it but, unless you are using something like etckeeper, it would be safer to move it in the first instance.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Thank you cfr, that worked well. And should I now try to reboot, since I get no errors any more with grub-install and grub-mkconfig?
Offline
Thank you cfr, that worked well. And should I now try to reboot, since I get no errors any more with grub-install and grub-mkconfig?
If you didn't already, I would do pacman -Syu to make sure everything is updated. Otherwise, nobody can guarantee anything, but, if grub is happy, it is probably safe. If you have either a live image you can boot in case of disaster or you have the ability to make one, that is always a good fallback.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
All was up to date with pacman and yay - so I rebooted, and grub loaded with the newest version number. So all is good there - thanks to you cfr and you as well, Scimmia. I'll mark this as solved, but if all these issues came from grub-customizer, if I had removed it with pacman -Rsn would that have likely prevented these errors?
Grub does seem prone to issues - for dual-booting with Windows, what are the best options for an alternative bootloader. I have looked at the comparison chart in the wiki, but am still undecided. And - can I switch bootloaders without having to reinstall?
Thanks again, much appreciated.
Offline
No, -Rsn would not have made a difference.
The issues didn't come from the package. The package installs a binary to /usr/bin/. When you run that binary to make customizations to grub, it puts those customizations in /etc/. It has nothing to do directly with the package, it's all about what the program puts where.
Online
You do not have to reinstall Arch to change your boot loader, no. You just install and configure what you need.
I have no idea about dual booting with Windows. The wiki will tell you what will work. You have to decide which you prefer, perhaps by reading up on the options or perhaps by trying something out.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Ok good, thanks cfr. I'll look more closely at the wiki now for options. And thanks for the note about the -Rsn option, Scimmia, as well as the program procedures.
Offline