Saturday, September 24, 2022

wine public key is not available: NO_PUBKEY

GPG error: https://dl.winehq.org/wine-builds/ubuntu jammy InRelease:  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F solution in the end:

sudo mkdir -pm755 /etc/apt/keyrings

sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key // NOT WORKING =>

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources


sudo apt update

GPG error: https://dl.winehq.org/wine-builds/ubuntu jammy InRelease: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 76F1A20FF987672F



apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 76F1A20FF987672F

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.3wB3ExL4Nk/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 76F1A20FF987672F
gpg: key 76F1A20FF987672F: public key "WineHQ packages <wine-devel@winehq.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no writable keyring found: Not found
gpg: error reading '[stdin]': General error
gpg: import from '[stdin]' failed: General error
gpg: Total number processed: 0



sudo apt install curl // NOT WORKING

nupg-ring:/etc/apt/trusted.gpg.d/winehq.gpg --import
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: directory '/root/.gnupg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 76F1A20FF987672F: public key "WineHQ packages <wine-devel@winehq.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found

curl -s https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/winehq-archive.gpg --import

sudo chown _apt /etc/apt/trusted.gpg.d/winehq-archive.gpg

sudo chmod 644 /etc/apt/trusted.gpg.d/winehq-archive.gpg

sudo apt update



sudo apt-key list

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2015-10-28 [SC]
     BC52 8686 B50D 79E3 39D3  721C EB3E 94AD BE12 29CF
uid           [ unknown] Microsoft (Release signing) <gpgsecurity@microsoft.com>

/etc/apt/trusted.gpg.d/google-chrome.gpg
----------------------------------------
pub   rsa4096 2016-04-12 [SC]
     EB4C 1BFD 4F04 2F6D DDCC  EC91 7721 F63B D38B 4796
uid           [ unknown] Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com>
sub   rsa4096 2021-10-26 [S] [expires: 2024-10-25]

/etc/apt/trusted.gpg.d/microsoft.gpg
------------------------------------
pub   rsa2048 2015-10-28 [SC]
     BC52 8686 B50D 79E3 39D3  721C EB3E 94AD BE12 29CF
uid           [ unknown] Microsoft (Release signing) <gpgsecurity@microsoft.com>

/etc/apt/trusted.gpg.d/mozillateam-ubuntu-ppa.gpg
-------------------------------------------------
pub   rsa1024 2009-01-18 [SC]
     0AB2 1567 9C57 1D1C 8325  275B 9BDB 3D89 CE49 EC21
uid           [ unknown] Launchpad PPA for Mozilla Team

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub   rsa4096 2012-05-11 [SC]
     8439 38DF 228D 22F7 B374  2BC0 D94A A3F0 EFE2 1092
uid           [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub   rsa4096 2018-09-17 [SC]
     F6EC B376 2474 EDA9 D21B  7022 8719 20D1 991B C93C
uid           [ unknown] Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>

/etc/apt/trusted.gpg.d/winehq-archive.gpg
---------------------------------
pub   rsa3072 2018-12-10 [SC]
     D43F 6401 4536 9C51 D786  DDEA 76F1 A20F F987 672F
uid           [ unknown] WineHQ packages <wine-devel@winehq.org>



sudo nano /etc/apt/sources.list.d/winehq-jammy.sources

Types: deb

URIs: https://dl.winehq.org/wine-builds/ubuntu
Suites: jammy
Components: main
Architectures: amd64 i386
Signed-By: /usr/share/keyrings/winehq-archive.key

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 76F1A20FF987672F // NOTHING

--2022-09-24 20:55:18--  https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.114.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.114.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3,1K) [application/pgp-keys]
Saving to: ‘/usr/share/keyrings/winehq-archive.key’

/usr/share/keyrings/winehq-arch 100%[====================================================>]   3,14K  --.-KB/s    in 0,001s   

2022-09-24 20:55:19 (3,16 MB/s) - ‘/usr/share/keyrings/winehq-archive.key’ saved [3220/3220]


SOLUTION

sudo mkdir -pm755 /etc/apt/keyrings

sudo wget -nc -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources

sudo apt update

sudo apt install --install-recommends winehq-devel

winecfg

No comments:

Post a Comment