albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.21k stars 303 forks source link

Fedora package: GPG check FAILED, Expired #1407

Closed trie-me closed 3 months ago

trie-me commented 3 months ago

Package source

OpenSuse.org repos

App logs

> This failure is an install-time failure using `dnf` package manager under `Fedora 40`

Install logs follow
_______________________________________________

Downloading Packages:
(1/4): cmake-filesystem-3.28.2-1.fc40.x86_64.rpm                70 kB/s |  18 kB     00:00    
(2/4): qt6-qtscxml-6.7.1-1.fc40.x86_64.rpm                     914 kB/s | 551 kB     00:00    
(3/4): libqalculate-4.9.0-4.fc40.x86_64.rpm                    2.4 MB/s | 2.2 MB     00:00    
(4/4): albert-0.24.1-629.1.x86_64.rpm                          551 kB/s | 1.3 MB     00:02    
-----------------------------------------------------------------------------------------------
Total                                                          1.3 MB/s | 4.0 MB     00:03     
error: Verifying a signature using certificate A4B83CD05FDF5C5178482D4A1488EB46E192A257 (home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>):
  1. Certificiate 1488EB46E192A257 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
  2. Key 1488EB46E192A257 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
error: Verifying a signature using certificate A4B83CD05FDF5C5178482D4A1488EB46E192A257 (home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>):
  1. Certificiate 1488EB46E192A257 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
  2. Key 1488EB46E192A257 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
home:manuelschneid3r (Fedora_40)                               2.1 kB/s | 1.1 kB     00:00    
GPG key at https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key (0xE192A257) is already installed
The GPG keys listed for the "home:manuelschneid3r (Fedora_40)" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: albert-0.24.1-629.1.x86_64
 GPG Keys are configured as: https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached pqackages by executing 'dnf clean packages'.
Error: GPG check FAILED


### Current Behavior

## Setup:

- open terminal
- add repo keys per instructions @ https://software.opensuse.org/download.html?project=home:manuelschneid3r&package=albert
- run `sudo dnf install albert`

## Result:

- Install failed per GPG conflict as shown in logs

### Expected Behavior

Application successfully installs

### Anything else?

_No response_
ManuelSchneid3r commented 3 months ago

pub rsa2048 2017-10-27 [SC] [verfällt: 2026-07-11]

Have you updated you system a lot?

josemaX commented 3 months ago

Same here (upgrading)

[SKIPPED] albert-0.24.1-629.1.x86_64.rpm: Already downloaded                   
error: Verifying a signature using certificate A4B83CD05FDF5C5178482D4A1488EB46E192A257 (home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>):
  1. Certificiate 1488EB46E192A257 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
  2. Key 1488EB46E192A257 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
error: Verifying a signature using certificate A4B83CD05FDF5C5178482D4A1488EB46E192A257 (home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>):
  1. Certificiate 1488EB46E192A257 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
  2. Key 1488EB46E192A257 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-29T03:59:57Z
home:manuelschneid3r (Fedora_40)                4.7 kB/s | 1.1 kB     00:00    
GPG key at https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key (0xE192A257) is already installed
The GPG keys listed for the "home:manuelschneid3r (Fedora_40)" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: albert-0.24.1-629.1.x86_64
 GPG Keys are configured as: https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
ManuelSchneid3r commented 3 months ago

Have you updated you system a lot?

Quite easy to misunderstand. I read that users on fedora have such problems when they did lots of system upgrades.

ManuelSchneid3r commented 3 months ago

Please try this:

  1. Update the GPG Key: The GPG key for the repository has expired. You need to import the new key. Follow these steps:

    sudo rpm --import https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key
  2. Clear DNF Cache: After updating the GPG key, clear the DNF cache to remove any cached packages that might cause conflicts.

    sudo dnf clean all
  3. Retry the Installation: Attempt to install the package again.

    sudo dnf install albert

By updating the GPG key and clearing the cache, the DNF package manager should recognize the new key and proceed with the installation without the GPG check error.

josemaX commented 3 months ago

Please try this:

1. **Update the GPG Key**:
   The GPG key for the repository has expired. You need to import the new key. Follow these steps:
   ```shell
   sudo rpm --import https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key
   ```

2. **Clear DNF Cache**:
   After updating the GPG key, clear the DNF cache to remove any cached packages that might cause conflicts.
   ```shell
   sudo dnf clean all
   ``` 

By updating the GPG key and clearing the cache, the DNF package manager should recognize the new key and proceed with the installation without the GPG check error.

I did before the rpm --import but not clearing all.

Done, and same result.

Thanks!

ManuelSchneid3r commented 3 months ago

Does this apply to your problem ? https://github.com/openrazer/openrazer/issues/2061#issuecomment-1537231613

ManuelSchneid3r commented 3 months ago

Done, and same result.

with same result you mean the issue still persists?

josemaX commented 3 months ago

Done, and same result.

with same result you mean the issue still persists?

Sorry, yes, the same error.

josemaX commented 3 months ago

Does this apply to your problem ? openrazer/openrazer#2061 (comment)

Yes! This solved it

root@host:~# rpm -aq |grep -i E192A257
gpg-pubkey-e192a257-59f33889
root@host:~# rpm -e gpg-pubkey-e192a257-59f33889
root@host:~# dnf upgrade

Then when upgrading:

....

[SKIPPED] albert-0.24.1-629.1.x86_64.rpm: Already downloaded                   
home:manuelschneid3r (Fedora_40)                4.6 kB/s | 1.1 kB     00:00    
Importando llave GPG 0xE192A257:
 ID usuario: "home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>"
 Huella    : A4B8 3CD0 5FDF 5C51 7848 2D4A 1488 EB46 E192 A257
 Desde     : https://download.opensuse.org/repositories/home:/manuelschneid3r/Fedora_40/repodata/repomd.xml.key
¿Está de acuerdo [s/N]?: s
La llave ha sido importada exitosamente
Ejecutando verificación de operación
Verificación de operación exitosa.
Ejecutando prueba de operaciones
Prueba de operación exitosa.

Sorry I forgot export LANG to en.. So messages are in spanish. But solved.

Thanks!

ManuelSchneid3r commented 3 months ago

Good. Enjoy!