New repository key for WineHQ repository

Questions about Wine on Linux
Locked
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

New repository key for WineHQ repository

Post by dimesio »

This afternoon the migration to OBS builds was completed, and the WineHQ repository key has changed.

Debian and Ubuntu users who have been using the old key (Release.key) will need to download the new one (winehq.key) and add it, or you will get an error message about the missing key.

To download and install the new key:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
and then run

Code: Select all

sudo apt update
I have also updated the wiki with this information.
dotaq
Newbie
Newbie
Posts: 1
Joined: Wed Dec 19, 2018 5:31 pm

Re: New repository key for WineHQ repository

Post by dotaq »

Sweet, thanks!! :mrgreen:

I was about to make a post looking for this
internetuser
Newbie
Newbie
Posts: 3
Joined: Wed Dec 19, 2018 6:13 pm

Re: New repository key for WineHQ repository

Post by internetuser »

Wow, I joined because I wanted to ask this question:
I installed wine-staging using the guide here:
https://wiki.winehq.org/Debian

However, I was able to install wine-staging, but I cant figure out why I am getting this error message. I added the gpg key successfully, used
deb https://dl.winehq.org/wine-builds/debian/ buster main
and it even installed wine-staging. But when I try to apt-update, it gives me an error. It's as if the key they provide is not the correct one.

W: GPG error: https://dl.winehq.org/wine-builds/debian buster 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/debian buster InRelease' is not signed.
I guess I will post it for the sake of web crawlers helping others with this issue find it through the error message.
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

Re: New repository key for WineHQ repository

Post by dimesio »

internetuser wrote: W: GPG error: https://dl.winehq.org/wine-builds/debian buster 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/debian buster InRelease' is not signed.
Make sure you download the winehq.key, not the Release.key.
SlaboMetal
Level 1
Level 1
Posts: 5
Joined: Tue Dec 18, 2018 9:25 pm

Re: New repository key for WineHQ repository

Post by SlaboMetal »

I'm also trying to download Wine and failing miserably. Still getting errors or nothing happening at the end of the code even with this update. What gives? What am I missing here?

I'm running Ubuntu 18.04.1 Bionic Beaver.
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

Re: New repository key for WineHQ repository

Post by dimesio »

SlaboMetal wrote:I'm also trying to download Wine and failing miserably. Still getting errors or nothing happening at the end of the code even with this update. What gives? What am I missing here?

I'm running Ubuntu 18.04.1 Bionic Beaver.
I have no way of knowing without seeing the console output and the contents of your /etc/apt/sources.list.
Cookie
Level 2
Level 2
Posts: 27
Joined: Mon Jun 22, 2015 2:09 pm

Re: New repository key for WineHQ repository

Post by Cookie »

Last update to 4.0 RC3 staging killed my wine, even the new key + procedure did not help!

winecfg - unknown...
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

Re: New repository key for WineHQ repository

Post by dimesio »

To anyone posting here for help: you need to copy from the terminal the exact commands you entered and the terminal output and paste them into your post (and use code tags).
User avatar
facePlanted
Level 2
Level 2
Posts: 12
Joined: Tue May 08, 2018 1:18 am

Re: New repository key for WineHQ repository

Post by facePlanted »

(on debian 9)

root@linux:~# apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Ign:4 https://dl.winehq.org/wine-builds/debian stretch InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Err:6 https://dl.winehq.org/wine-builds/debian stretch Release
gnutls_handshake() failed: Public key signature verification has failed.
Reading package lists... Done
E: The repository 'https://dl.winehq.org/wine-builds/debian stretch Release' does not have a Release file.
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.
SlaboMetal
Level 1
Level 1
Posts: 5
Joined: Tue Dec 18, 2018 9:25 pm

Re: Wine package for Ubuntu 18.04.1 not working

Post by SlaboMetal »

Just tried again same thing.

Code: Select all

arcman@SlabOMetal:~$ sudo dpkg --add-architecture i386
[sudo] password for arcman: 
arcman@SlabOMetal:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.

arcman@SlabOMetal:~$ sudo apt-key add winehq.key
OK
arcman@SlabOMetal:~$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/
> sudo apt update
> sudo apt install --install-recommends winehq-stable
> 
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

Re: New repository key for WineHQ repository

Post by dimesio »

Code: Select all

arcman@SlabOMetal:~$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/
You're missing the end part of that command, including the closing quote, which is why the command never completes. If you're on bionic, it should be

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' 
SlaboMetal
Level 1
Level 1
Posts: 5
Joined: Tue Dec 18, 2018 9:25 pm

Re: New repository key for WineHQ repository

Post by SlaboMetal »

dimesio wrote:

Code: Select all

arcman@SlabOMetal:~$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/
You're missing the end part of that command, including the closing quote, which is why the command never completes. If you're on bionic, it should be

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' 

Ok I got a lot farther than I think I have in this attempted install but I still get an error at the very end.

Code: Select all

arcman@SlabOMetal:~$ sudo dpkg --add-architecture i386 
[sudo] password for arcman: 
arcman@SlabOMetal:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.

arcman@SlabOMetal:~$ sudo apt-key add winehq.key
OK
arcman@SlabOMetal:~$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Hit:1 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:2 http://repo.steampowered.com/steam precise InRelease                     
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic InRelease                     
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]   
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] 
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [14.8 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [9,088 B]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [39.7 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [245 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [55.7 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [105 kB]
Ign:14 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./ InRelease
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [200 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [177 kB]
Hit:17 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./ Release
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [328 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:20 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,812 B]
Fetched 1,430 kB in 1s (1,130 kB/s)                                           
Reading package lists... Done
arcman@SlabOMetal:~$ sudo apt update
Hit:1 http://repo.steampowered.com/steam precise InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Ign:6 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./ InRelease
Hit:7 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./ Release
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done                      
Building dependency tree       
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
arcman@SlabOMetal:~$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.
arcman@SlabOMetal:~$ 
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

Re: New repository key for WineHQ repository

Post by dimesio »

Code: Select all

Ign:14 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./ InRelease
At some point you added the cosmic repository; you need to delete that entry from your /etc/apt/sources.list.
davidovich
Newbie
Newbie
Posts: 1
Joined: Fri Mar 01, 2019 4:32 pm

Re: New repository key for WineHQ repository

Post by davidovich »

dimesio wrote:This afternoon the migration to OBS builds was completed, and the WineHQ repository key has changed.

Debian and Ubuntu users who have been using the old key (Release.key) will need to download the new one (winehq.key) and add it, or you will get an error message about the missing key.

To download and install the new key:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
and then run

Code: Select all

sudo apt update
I have also updated the wiki with this information.
Hello dimesio
as i see you understand WINE
I ve already overcome some step in installing winehd:
~$ wget https://dl.winehq.org/wine-builds/Release.key
--2019-03-01 23:22:12-- https://dl.winehq.org/wine-builds/Release.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.14.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.14.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3122 (3.0K) [application/pgp-keys]
Saving to: ‘Release.key’

Release.key 100%[===================>] 3.05K --.-KB/s in 0s

2019-03-01 23:22:15 (13.7 MB/s) - ‘Release.key’ saved [3122/3122]

anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ sudo apt-key add Release.key
[sudo] password for anatoly:
Sorry, try again.
[sudo] password for anatoly:
OK
anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ sudo apt update
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/yandex-browser.list
E: The list of sources could not be read.
anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ ^C
anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ "

but it stop and I don t know what to do
my mashine is 16.04 LTS 64 bit
thank you in advance
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: New repository key for WineHQ repository

Post by jkfloris »

Why did you download and register the "Release.key" if the opening post and the wiki says "winehq.key"?!
Read: https://wiki.winehq.org/Ubuntu
anatoly@anatoly-Lenovo-ideapad-320-15IKB:~$ sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
Nice try, but that is not exactly the command.

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/yandex-browser.list
This file is malformed. You have to modify it
Locked