[CentOS] Permission denied when updating CentOS 8 Streams

Fri Feb 19 14:30:44 UTC 2021
Paul Heinlein <heinlein at madboa.com>

On Fri, 19 Feb 2021, Mathieu Baudier wrote:

> Hello,
>
> On a remote server (in an IPv6-only infrastructure) I am getting the
> following error when trying to update CentOS 8 Streams x86_64:
>
> $ sudo dnf upgrade --refresh
> Failed to set locale, defaulting to C.UTF-8
> CentOS Stream 8 - AppStream
>
>                           0.0  B/s |   0  B     00:16
> Errors during downloading metadata for repository 'appstream':
>  - Curl error (7): Couldn't connect to server for
> http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock
> [Failed to connect to mirrorlist.centos.org port 80: Permission denied]
> Error: Failed to download metadata for repo 'appstream': Cannot prepare
> internal mirrorlist: Curl error (7): Couldn't connect to server for
> http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock
> [Failed to connect to mirrorlist.centos.org port 80: Permission denied]

Try using an https:// URL.

-- 
Paul Heinlein
heinlein at madboa.com
45°38' N, 122°6' W