Proxy error 407

Latest response

Errors during downloading metadata for repository 'rhel-8-for-x86_64-appstream-rpms':
- Curl error (56): Failure when receiving data from the peer for [Received HTTP code 407 from proxy after CONNECT]
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried


Unregistering and re-registering the machine fixed this for me.

sudo subscription-manager unregister
sudo subscription-manager register
sudo subscription-manager attach --auto
sudo dnf update