Archive:

Month: April 2025


NVidia-smi shows API mismatch

By: | Post date: April 28, 2025 | Comments: No Comments

Posted in categories: Computer Tips, Work related

Sometime when updated NVidia driver and CUDA on Rocky Linux systems, running nvidia-smi shows that kernel driver version mismatch. If you run dmseg It will show: NVRM: API mismatch: the client has the version aaa.bbb, butNVRM: this kernel module has the version ccc.ddd. PleaseNVRM: make sure that this kernel module and all NVIDIA driverNVRM: components […]

When dnf update kernel failed to generate initramfs

By: | Post date: April 24, 2025 | Comments: No Comments

Posted in categories: Computer Tips, Work related

This sometimes happen when the automatic nvidia kernel module installation fails. The workaround is:

Setting firewalld to allow nodes on intranet to access internet

By: | Post date: April 4, 2025 | Comments: No Comments

Posted in categories: Computer Tips, Work related

When upgrading OS, dnf and rpm fails on SHA1 packages

By: | Post date: April 2, 2025 | Comments: No Comments

Posted in categories: Computer Tips, Work related

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

By: | Post date: April 2, 2025 | Comments: No Comments

Posted in categories: Computer Tips, Uncategorized, Work related

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 […]