How to Fix: I am running oracle23c on Oracle Linux 8.8. When I run dnf, I get the following error. What is the solution to this?
Oracle Linux 8.8 and oracle23c installation issue with dnf error.
📋 Table of Contents
The error you're experiencing occurs when attempting to install or update packages using dnf on an Oracle Linux 8.8 system with Oracle Database 23c installed. This issue affects users who have not properly configured their system for Oracle Database installation.
This problem can be frustrating, especially if you're new to managing Oracle databases on Linux systems. However, by following the steps outlined in this guide, you should be able to resolve the issue and continue using your Oracle Database 23c without disruptions.
⚠️ Common Causes
- The primary cause of this error is that the package oracle-database-free-23c requires the installation of oracle-database-preinstall-23c, but there's an incompatibility between the two due to a version mismatch. This occurs because Oracle Linux 8.8 has different versions of the packages available compared to the latest available version from Oracle.
- An alternative reason for this issue could be that the system is missing some necessary dependencies required by the oracle-database-free-23c package, which prevents it from being installed or updated.
✅ Best Solutions to Fix It
Method 1: Resolving Version Mismatch
- Step 1: Step 1: Update the Oracle Linux 8.8 repositories to the latest version that supports Oracle Database 23c.
- Step 2: - Run the command `sudo dnf config-manager --set-enabled ol8_appstream` to enable the AppStream repository.
- Step 3: - Then, run `sudo dnf update --skip-broken --nobest` to ensure all packages are up-to-date and compatible with Oracle Database 23c.
- Step 4: Step 2: Install the oracle-database-preinstall-23ai package from the latest available version.
- Step 5: - Run `sudo dnf install oracle-database-preinstall-23ai-1.0-2.el8.x86_64` to download and install the necessary pre-installation package.
Method 2: Resolving Dependency Issues
- Step 1: Step 1: Check for any missing dependencies required by oracle-database-free-23c.
- Step 2: - Run `sudo dnf repoquery --listdependencies oracle-database-free-23c-1.0-1.x86_64` to identify the required packages and their versions.
- Step 3: Step 2: Install the missing dependencies.
- Step 4: - Use `sudo dnf install
` for each missing dependency identified in Step 1.
💡 Conclusion
To resolve this issue, you can try either resolving the version mismatch by updating your repositories and installing the oracle-database-preinstall-23ai package or resolving any dependency issues by identifying and installing the necessary packages. By following these steps, you should be able to successfully install or update packages using dnf on your Oracle Linux 8.8 system with Oracle Database 23c installed.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid