[CentOS] Permission denied when updating CentOS 8 Streams

Fri Feb 19 14:46:41 UTC 2021
Simon Matter <simon.matter at invoca.ch>

> 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.

Are you sure? At least from here over IPv4, http works well but https
doesn't work at all. Sounds strange if http would work only over IPv4 and
https would work only over IPv6.

Simon