Ubuntu22.04_winehp_key_no available_need gpg.can't update

Questions about Wine on Linux
Locked
ghome9
Newbie
Newbie
Posts: 2
Joined: Tue Jan 10, 2023 11:03 am

Ubuntu22.04_winehp_key_no available_need gpg.can't update

Post by ghome9 »

I want to install the winehq 7.0+ by follow the wiki ,but not completed.The following show how i do it.
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
do the:
#########
sudo apt-key del "D43F 6401 4536 9C51 D786 DDEA 76F1 A20F F987 672F"
##########
cout :
########
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
##########
Then do :
##########
ubun-virtual-machine:~/Downloads$ apt-key list

#########
cout :
###########
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/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) <[email protected]>

/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) <[email protected]>
#############

no one was the key .
do :
########
sudo apt update
#######
cout:
##########
rr:5 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
Reading package lists... Done
W: 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
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
############
do:
############
cp winehq.key /usr/share/keyrings/winehq-archive.key
cp winehq.key /etc/apt/trusted.gpg.d
sudo apt update
############
cout:
############
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Reading package lists... Done
W: 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
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
#############
So how to install wine7+ in ubuntu 22.04.
Before this way . I install wine by ubuntu software, but it was 6.0. And on the way of i rise it up to 7.0, do the install wine32 and then the gnome alot was be remove. the OS become service .
A question can wine and steam both alive in the os?
ghome9
Newbie
Newbie
Posts: 2
Joined: Tue Jan 10, 2023 11:03 am

Re: Ubuntu22.04_winehp_key_no available_need gpg.can't update

Post by ghome9 »

I found the problem after one day .
some keyword was wrong by that contrast many post.
https://wiki.winehq.org/Ubuntu_zhcn was
sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
and i follow this.
but the https://wiki.winehq.org/Ubuntu was
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

need to use it (https://wiki.winehq.org/Ubuntu) . and https://wiki.winehq.org/Ubuntu_zhcn must refresh.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu22.04_winehp_key_no available_need gpg.can't update

Post by jkfloris »

Thanks!
The wiki has been updated.
Locked