-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
almalinux-deploy.sh fails to unregister subscription on RHEL10. I have found the same issue on two separate bare-metal systems with different hardware, along with one non-VirtualBox virtual machine.
after running sudo bash almalinux-deploy.sh, the script stops with this:
Verify almalinux-release package OK
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]
Primary Modules:
list List subscription and product information for this system
refresh Pull the latest subscription data from the server
register Register this system to the Customer Portal or another subscription management service
release Configure which operating system release to use
status Show status information for this system
unregister Unregister this system from the Customer Portal or another subscription management service
Other Modules:
clean Remove all local system and subscription data without affecting the server
config List, set, or remove the configuration parameters in use by this system
environments Display the environments available for a user
facts View or update the detected system information
identity Display the identity certificate for this system or request a new one
orgs Display the organizations against which a user can register a system
plugins View and configure with 'subscription-manager plugins'
repo-override Manage custom content repository settings
repos List the repositories which this system is entitled to use
syspurpose Convenient module for managing all system purpose settings
version Print version information
So to get the script to work, I did the following:
-
Check status of RHEL10 subscription with
sudo subscription-manager status -
Unregister RHEL10 with
sudo subscription-manager unregister -
sudo subscription-manager clean -
Disable subscription-manager with
sudo sed -i 's/^enabled=.*/enabled=0/' /etc/dnf/plugins/subscription-manager.conf -
Verified that it's disabled with
grep enabled /etc/dnf/plugins/subscription-manager.confto getenabled=0 -
Removed subscription-manager packages with
sudo dnf remove -y subscription-manager subscription-manager-rhsm-certificates -
sudo dnf clean all -
Remove cache with
sudo rm -rf /var/cache/dnf
After following these steps, sudo bash almalinux-deploy.sh works as intended with the end output being Migration to AlmaLinux is completed
Expected Behavior
No response
Steps To Reproduce
- Install RHEL10 from Red Hat
curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.shsudo bash almalinux-deploy.sh
Anything else?
almalinux-deployerror1.txt
almalinux-rhel10-successproof.txt
Search terms
EL10, RHEL10, AlmaLinux10