OCI: Unable to Remove Python2 Packages After Upgrading from OL7 to OL8 — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: Unable to Remove Python2 Packages After Upgrading from OL7 to OL8

Applies To:

Oracle Cloud Infrastructure

Oracle Linux 8

Symptoms:

Attempting to remove python2 rpm using DNF results in a dependency error:

#sudo dnf remove python2
Error:
Problem: package leapp-0.17.0-1.0.2.el7_9.noarch from @System requires /usr/bin/python2

Attempting to remove the leapp package also fails with the below error.

#sudo dnf remove leapp
No packages marked for removal.
All matches were filtered out by exclude filtering for argument: leapp

Manual check confirms that both the packages are installed.

#sudo rpm -qa | grep -E 'leapp|python2|el7'
leapp-0.17.0-1.0.2.el7_9.noarch                             Sat Jan 18 05:13:49 2025                                                  
leapp-upgrade-el7toel8-0.20.0-2.0.5.el7_9.noarch            Sat Jan 18 05:13:51 2025

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!