"502 Bad Gateway” error trying to install new software

Hi and welcome :partying_face:

The users of this forum can help you, we need some more info where this error is generated, this might be a issue with mirrors or a network configuration adjustment. Please read this excellent thread how to help the forum users help you better:

A quick try is to generate your mirrors again, this can be done in the add/remove software application (pamac) under settings or from a terminal running sudo pacman-mirrors --fasttrack && sudo pacman -Syyu