Archive:
Month: April 2025
When upgrading OS, dnf and rpm fails on SHA1 packages
First, use rpm -q gpg-pubkey –qf ‘%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n’ to identify keys from obsolete repositories, then use rpm -e gpg-pubkey-xxxxxxxx-yyyyyyyy to remove the keys that were imported from the SHA1 era. Then have the offending packages removed by rpm -q –nosignature –querybynumber xxxx where you can get the xxxx from the stderr messages from rpm -qa >/dev/null
Grub force install to boot sector
When upgrading OS or replacing drives, the UEFI booting may not be able to automatically installed on the boot drive, resulting not able to update the boot menu to include the new kernels. When you do grub2-install <your boot device>, it errors out with information: Installing for x86_64-efi platform.grub2-install: error: This utility should not be […]