Cannot enable repositories through subscriptions

Latest response

Following system:

NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

The system is a fresh install under WSL that appeared to go well. When I was initially unable to install any updates through yum, I disabled Simple Content Access, because most troubleshooting on the web uses the subscription-manager.

I basically tried different variations of the following sequence [comment: I'm in root, so not using sudo; sudo is not installed, and I am not able to install it due to the present issue]:

FIRST, CLEAN START:

subscription-manager remove --all

subscription-manager unregister

subscription-manager clean

THEN, REGISTER FRESH (which appears to work successfully):

subscription-manager register --username USER --password PASSWORD --auto-attach

subscription-manager refresh

subscription-manager list --available

THEN, LOOK FOR THE POOL ID's IN THE OUTPUT; THERE ARE TWO, ONE FOR "Red Hat Developer Subscription for Individuals" AND ONE FOR "Red Hat Beta Access"; I ISSUE THE COMMANDS (ONE FOR EACH POOL ID):

subscription-manager attach --pool=POOL_ID

THE RESULT: NO SUCCESS, FOR EXAMPLE:

yum clean all, OR
yum update

BOTH RESULTS IN THE SAME ERROR MESSAGE:

"
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.

There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
"

IF I TRY TO ISSUE yum-config-manager WITH ANY REPO OR WITH *, I GET:

"
Loaded plugins: ovl, product-id, subscription-manager

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
"

THROUGH THE subscription manager, WHEN I ISSUE:

subscription-manager repos --list

, I GET THE FOLLOWING:

"
This system has no repositories available through subscriptions.
"

, PRETTY MUCH WHATEVER I DO. I GET EXACTLY THE SAME ERROR IF I TRY TO ENABLE A REPO WHICH DEFINITELY SHOULD WORK:

subscription-manager repos --enable rhel-7-server-optional-rpms

THE SUBSCRIPTION AS SUCH APPEARS FINE. ANY IDEAS ARE HELPFUL!

JZ

Responses