Multiple Errors: First time trying to get Wine

Questions about Wine on Linux
Locked
RvrS0ng
Newbie
Newbie
Posts: 1
Joined: Wed Jul 20, 2022 9:40 am

Multiple Errors: First time trying to get Wine

Post by RvrS0ng »

I am very very very new to Linux and seems to have completely messed up while trying to get Wine using the command prompt. I am running Linux Mint 20.3 Cinnamon version 5.2.7. My final goal was to get the stable version of Wine. Here are the errors I am getting.

RvrS0ng@RvrS0ngsDellLaptop:~$ sudo apt update
[sudo] password for RvrS0ng:
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://packages.linuxmint.com una InRelease
Hit:3 http://packages.linuxmint.com una Release
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:9 http://archive.canonical.com/ubuntu focal InRelease
Get:10 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [8,041 B]
Err:10 https://dl.winehq.org/wine-builds/ubuntu focal 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 focal 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 focal 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/winehq-focal.sources:1

I have tried adding the key and removing sources but haven't found a forum that has successfully helped me add and remove the items. Can anyone help? I apologize in advance of most likely needing a dummy walk-through to fix this. Thanks
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Multiple Errors: First time trying to get Wine

Post by invisible kid »

Hi, I am afraid I won't be that much help, but I can relate to frustration with repository entries and package managers. Luckily a lot of folks use wine, so I am sure you can find targetted help on the Mint forums.

I didn't look too hard, maybe this page can help:
https://linuxhint.com/installing_wine_linux_mint/

Hope you get some luck!
User avatar
slowpokefarm
Level 2
Level 2
Posts: 14
Joined: Thu Jul 28, 2022 5:59 am

Re: Multiple Errors: First time trying to get Wine

Post by slowpokefarm »

You are missing the public key for wine repository.
Please take a look at the download page. As per instructions you need to add the key like that:

Code: Select all

sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
Here's the general case of a missing pubkey: https://stackoverflow.com/questions/707 ... public-key

Hope that helps!
Locked