[Errno 14] HTTPS Error 401 - Unauthorized after subscription period expired

hello to all I can not enable the repo list on nethserver 7.6 thanks to those who give me a tip

Isn’t yum repolist -v command working or do you want to enable a specific repository?
Can you give an example of the steps you tried and what you want to accomplish?

oki try yum update and receive this error
Loaded plugins: changelog, fastestmirror, nethserver_events
Cleaning repos: sb-base sb-centos-sclo-rh sb-centos-sclo-sclo sb-epel sb-extras
: sb-nethserver-base sb-nethserver-updates sb-updates
Cleaning up list of fastest mirrors
Other repos take up 1.5 M of disk space (use --verbose for details)
[root@firewall ~]# yum update
Loaded plugins: changelog, fastestmirror, nethserver_events
Determining fastest mirrors
https://m1.nethserver.com/stable/7.6.1810/base/x86_64/repodata/repomd.xml: [Errn o 14] HTTPS Error 401 - Unauthorized
Trying other mirror.

One of the configured repositories failed (Stable mirror: CentOS Base 7),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=sb-base ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable sb-base
    or
        subscription-manager repos --disable=sb-base

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=sb-base.skip_if_unavailable=true

failure: repodata/repomd.xml from sb-base: [Errno 256] No more mirrors to try.
https://m1.nethserver.com/stable/7.6.1810/base/x86_64/repodata/repomd.xml: [Errn o 14] HTTPS Error 401 - Unauthorized

From the output above, you’ve (or had) a subscription. Is the subscription active or expired? Are the credentials/Secret correct?

yes the subscription is expired

If you want to keep using the subscription repositories you can renew it. Otherwise, you can “unsubscribe” to restore original repositories by removing the SystemID and Secret from the configuration database:

To revert the system configuration to its initial state and use the original NethServer repositories run

config setprop subscription SystemId '' Secret ''
signal-event software-repos-save

Note that for the upcoming server-manager GUI (based on cockpit) an “Unsubscribe” option is already available:

1 Like