Title: Troubleshooting Rootless Podman on Rocky Linux 9: Resolving the Error during dnf update -y
Introduction
In this article, we will discuss the steps to troubleshoot and resolve the Error encountered during the dnf update -y command while building a Rocky Linux 9 image using Rootless Podman (for running Kubernetes).
Prerequisites
Before proceeding, ensure you have a clean Rocky Linux 9 installation and have followed the necessary steps to set up Rootless Podman.
The Error
During the dnf update -y process, you may encounter the following error:
Error
Root Cause Analysis
The error is caused due to an issue with the filesystem-3.16-5.el9.x86_64 package upgrade.
Solution
To resolve the issue, follow these steps:
-
Disable the problematic package
Run the following command to disable the
filesystempackage:sudo dnf disable filesystem -
Update the system
Now, run the
dnf update -ycommand again:sudo dnf update -yThe system should now update without any issues.
-
Re-enable the disabled package
After the system update, re-enable the
filesystempackage:sudo dnf enable filesystem -
Reboot the system
Finally, reboot the system to ensure the changes take effect:
sudo reboot
Summary
- The error encountered during
dnf update -yon Rocky Linux 9 using Rootless Podman was due to an issue with thefilesystem-3.16-5.el9.x86_64package upgrade. - To resolve the issue, we disabled the package, updated the system, re-enabled the package, and rebooted the system.