Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52439
On April 21, 2022, Ubuntu Jammy Jellyfish will be released. On this version of Ubuntu, it is no longer possible to add the Winehq key through apt-key. This is also no longer possible on Debian Bookworm. To make the installation of Wine on the different Ubuntu and Debian distributions the same, the idea is to switch to .sources files. This will allow the WineHQ repository to be added with:
Download and install the key: wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
Download and install the sources file for your distro, for example bookworm wget -nc https://dl.winehq.org/wine-builds/winehq-bookworm.sources sudo mv winehq-bookworm.sources /etc/apt/sources.list.d/
Where winehq-bookworm.sources contains the following:
Types: deb URIs: https://dl.winehq.org/wine-builds/debian Suites: bookworm Components: main Architectures: amd64 i386 Signed-By: /usr/share/keyrings/winehq-archive.key
In the future (starting with apt version 2.3.10), this approach also makes it possible to embed the winehq key in the .sources file. Attached are the sources files for the supported Debian and Ubuntu versions and already for Ubuntu Jammy.
Can these files be uploaded to dl.winehq.org?
Floris