Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.74k stars 10.47k forks source link

Having an issue updating scrcpy on fedora 39 via dnf apparently the repo can't find the gpg key. #5180

Open yeldarb1983 opened 1 month ago

yeldarb1983 commented 1 month ago

Please read the prerequisites to run scrcpy.

Also read the FAQ and check if your issue already exists.

Environment

Describe the bug

I can't update to the latest version from 2.5 via DNF. I keep getting errors about the repo not having a valid GPG key signature and not being able to find a "live" one where it expects to. the program runs as expected otherwise.

thank you in advance for any assistance you can offer


Please paste terminal output in a code block.

`(base) <username>@fedora:~$ sudo dnf update
[sudo] password for <username>: 
Last metadata expiration check: 0:29:54 ago on Fri 09 Aug 2024 07:58:03 PM CDT.
Dependencies resolved.
============================================================================================================================================================================================================================================
 Package                                       Architecture                                  Version                                                Repository                                                                         Size
============================================================================================================================================================================================================================================
Upgrading:
 scrcpy                                        x86_64                                        2.6.1-1.fc39                                           copr:copr.fedorainfracloud.org:zeno:scrcpy                                        182 k

Transaction Summary
============================================================================================================================================================================================================================================
Upgrade  1 Package

Total size: 182 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] scrcpy-2.6.1-1.fc39.x86_64.rpm: Already downloaded                                                                                                                                                                               
error: Verifying a signature using certificate 28091D1D2A7F7DAFDF6AF72666C47270C9947AB8 (zeno_scrcpy (None) <zeno#scrcpy@copr.fedorahosted.org>):
  1. Certificate 66C47270C9947AB8 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
  2. Key 66C47270C9947AB8 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
error: Verifying a signature using certificate 28091D1D2A7F7DAFDF6AF72666C47270C9947AB8 (zeno_scrcpy (None) <zeno#scrcpy@copr.fedorahosted.org>):
  1. Certificate 66C47270C9947AB8 invalid: certificate is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
  2. Key 66C47270C9947AB8 invalid: key is not alive
      because: The primary key is not live
      because: Expired on 2024-04-22T22:23:32Z
Copr repo for scrcpy owned by zeno                                                                                                                                                                          1.4 kB/s | 989  B     00:00    
GPG key at https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg (0xC9947AB8) is already installed
The GPG keys listed for the "Copr repo for scrcpy owned by zeno" 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: scrcpy-2.6.1-1.fc39.x86_64
 GPG Keys are configured as: https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg
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`
mailinglists35 commented 3 weeks ago

Hi, have you found a solution?

mailinglists35 commented 3 weeks ago

meanwhile I did this after removing the repo to allow system upgrade from fc39 to fc40, after rebooting into fc40

yumdownloader scrcpy rpm -Uvh --nosignature scrcpy-2.6.1-1.fc40.x86_64.rpm

mailinglists35 commented 3 weeks ago

and to allow dnf to upgrade, add --skip-broken

yeldarb1983 commented 3 weeks ago

Hi, have you found a solution?

hey, sorry I didn't get back quicker, nothing yet, though I did skip so I could update other stuff. to be honest, I'm not terribly worried about it, as it works fine as-is, but I figured the devs would want to know, lol

zenofile commented 2 weeks ago

For anyone having this problem, this should fix it:

sudo rpm -e $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n" gpg-pubkey | grep zeno | cut -f1)
sudo rpm --import https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg

This command imports the new COPR repository keys.

For reasons unknown to me, the keys for some older COPR repositories (including this one) have expired. If you have a long-standing installation with scrcpy, you might encounter this issue. Unfortunately, there's nothing I can do to fix this on the repository side, as I have no control over the repository keys, so client side intervention is required.