Problem installing Microsoft Edge

Good afternoon, I am trying to install Microsoft Edge from the terminal, but it returns GPG vverification error: These are the commands I used:

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo dnf config-manager --add-repo https://packages.microsoft.com/yumrepos/edge
Agregando repositorio de: https://packages.microsoft.com/yumrepos/edge
sudo mv /etc/yum.repos.d/packages.microsoft.com_yumrepos_edge.repo /etc/yum.repos.d/microsoft-edge.repo
sudo dnf install microsoft-edge-stable
created by dnf config-manager from https://packages.microsoft.com/yumrepos/edge     26 kB/s |  37 kB     00:01    
Dependencias resueltas.
===================================================================================================================
 Paquete                     Arquitectura Versión                 Repositorio                                 Tam.
===================================================================================================================
Instalando:
 microsoft-edge-stable       x86_64       115.0.1901.183-1        packages.microsoft.com_yumrepos_edge       145 M

Resumen de la transacción
===================================================================================================================
Instalar  1 Paquete

Tamaño total de la descarga: 145 M
Tamaño instalado: 509 M
¿Está de acuerdo [s/N]?: s
Descargando paquetes:
microsoft-edge-stable-115.0.1901.183-1.x86_64.rpm                                  5.1 MB/s | 145 MB     00:28    
-------------------------------------------------------------------------------------------------------------------
Total                                                                              5.1 MB/s | 145 MB     00:28     
Problemas abriendo el paquete microsoft-edge-stable-115.0.1901.183-1.x86_64.rpm
Los paquetes descargados se han guardado en caché para la próxima transacción.
Puede borrar los paquetes de la caché ejecutando 'dnf clean packages'.
Error: FALLÓ la verificación de GPG

I also tried to install it with the .rpm file that I downloaded from the Microsoft web site, but it gives me error:

sudo dnf install ./microsoft-edge-stable-115.0.1901.183-1.x86_64.rpm 
Última comprobación de caducidad de metadatos hecha hace 1:04:56, el lun 24 jul 2023 15:14:55.
Dependencias resueltas.
===================================================================================================================
 Paquete                           Arquitectura       Versión                       Repositorio               Tam.
===================================================================================================================
Instalando:
 microsoft-edge-stable             x86_64             115.0.1901.183-1              @commandline             145 M

Resumen de la transacción
===================================================================================================================
Instalar  1 Paquete

Tamaño total: 145 M
Tamaño instalado: 509 M
¿Está de acuerdo [s/N]?: s
Descargando paquetes:
Ejecutando verificación de operación
Verificación de operación exitosa.
Ejecutando prueba de operaciones
Error: Error de prueba de transacción:
  package microsoft-edge-stable-115.0.1901.183-1.x86_64 does not verify: RSA signature: BAD (header tag 1002: invalid OpenPGP signature: Parsing an OpenPGP packet:
  Failed to parse Signature Packet
      because: Signature appears to be created by a non-conformant OpenPGP implementation, see <https://github.com/rpm-software-management/rpm/issues/2351>.
      because: Malformed MPI: leading bit is not set: expected bit 1 to be set in        0 (0))

How do I fix this problem? Thanks.

This seems related to a problem I have been having updating to the version you are trying to install. Microsoft apparently isn’t signing the file according to standard protocols. Microsoft is or should be aware of the problem, and here are a couple of links discussing it:

https://www.reddit.com/r/MicrosoftEdge/comments/156khdd/error_gpg_check_failed/
https://www.reddit.com/r/Fedora/comments/12m608f/cannot_update_packages_microsoft_edge_gives_error/
Best regards

Do you need the RPM version of it specifically? If not, the flathub version of it should work fine.

The flatpak may not have as much integration though, especially if you want extensions that call system apps or things like that. That said, it should be fine for most. If you do need the integration, it could probably be fixed by messing with flatpak permissions.

The RPM did not install since it seems the PGP key it uses is a bit messed up. Messing with it could lead to security stuff and I’m not experienced enough with dnf to give suggestions.

Instructions to get the flatpak version:

  1. Run this if you don’t have flathub. It will add the flathub repo, it is safe to run even if repo is already there.
flatpak remote-add --if-not-exists flathub [https://dl.flathub.org/repo/flathub.flatpakrepo](https://dl.flathub.org/repo/flathub.flatpakrepo)
  1. Install edge through flatpak
flatpak install flathub com.microsoft.Edge

Hi, @anthonys53. I have followed the reddit thread and installed Edge version 114 and ignoring the upgrade to version 115 until Microsoft fixes the problem. Thanks!

1 Like