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
This sometimes happen when the automatic nvidia kernel module installation fails. The workaround is:
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 […]
Linux ssh log in super slow
It was found that systemd-logind malfunctioned, By restarting it — systemctl restart systemd-logind The problem is resolved.
tcsh script behavior change
Recently I noticed a tcsh behavior change. CentOS7, Rocky 8, Ubuntu 20.04, Fedora 41, and Linux Mint if you have a string variable in tcsh, like set a=”mystring” and attempt to get its path when treating is as a filename: set b=”$a:h” it will return $a itself. To be noted that the expect behavior when […]
Window 11 cannot install Asian Keyboard
It happened to me that when I attempt to install Chinese/Japan/Korean input method to my windows 11 box, it fails on installing the “Basic Typing” after attempted to download for about 30 seconds with error “Sorry, we’re having trouble installing this feature. You can try again later. Error code 0x0”. And all other components like […]
When dnf/yum update stuck on cleaning up…
Sometimes when you are doing dnf/yum update, the progress may stop on the last step – cleaning up packages for hours, if you have a super large data drive. This may be caused by an installing script falsely attempts to scan through multi-million files on your data drive that is not mounted in a regular […]
Restart docker failed on docker0 network interface
Sometimes when you attempt to restart docker.service, it fails on cannot restart docker0 network interface. In this case, you can simple do ifdown docker0 Then you can start docker.service again.