Ubuntu 20.04 not is possible install WINE if using apt-get

Questions about Wine on Linux
Locked
aug
Level 3
Level 3
Posts: 69
Joined: Sat Oct 30, 2021 4:21 am

Ubuntu 20.04 not is possible install WINE if using apt-get

Post by aug »

Hello.
Ubuntu 20.04.3 updated.
Trying install using apt-get following the informations from https://wiki.winehq.org/Ubuntu when trying the command
sudo apt-get update
is showed an error message about not being possible read WINE key from repository.
That problem trying install using apt-get happen since some previous versions.

For luck is possible install WINE development current version 7.7 if copying all deb files from https://dl.winehq.org/
For luck I also all dependencies installed and thus WINE is working.

Only reporting.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by jkfloris »

The wiki has recently been updated and now uses a .sources file to add the WineHQ repository. If you still have a reference to WineHQ in sources.list, you can remove it along with the key in trusted.gpg.

Or do you mean that the new way causes problems with apt-get?
aug
Level 3
Level 3
Posts: 69
Joined: Sat Oct 30, 2021 4:21 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by aug »

wget -nc https://dl.winehq.org/wine-builds/ubunt ... al.sources
sudo mv winehq-focal.sources /etc/apt/sources.list.d/
sudo apt-get update

After
sudo apt-get install --install-recommends winehq-devel

Is showed message about not being possible access to key and not find any WINE build.
That problem happen since before 09-2021.
Is possible manually download WINE deb and works fine.

My topic is only for report it.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by jkfloris »

Did you also download and install the WineHQ key?

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
aug
Level 3
Level 3
Posts: 69
Joined: Sat Oct 30, 2021 4:21 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by aug »

Yes.
sudo apt-get update show
Err:6 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Not was possible verify signature because public key not available
NO_PUBKEY 76F1A20FF987672F
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by jkfloris »

Do you also get the message when you use apt instead of apt-get?
aug
Level 3
Level 3
Posts: 69
Joined: Sat Oct 30, 2021 4:21 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by aug »

Yes.
The same error message.
My topic is only to report about that problem.
I have WINE installed and running.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by jkfloris »

Unfortunately, I cannot reproduce the problem.
What the problem is remains a mystery.

Should you find out why the WineHQ key doesn't work, I'd love to hear about it.
aug
Level 3
Level 3
Posts: 69
Joined: Sat Oct 30, 2021 4:21 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by aug »

You have tested in Ubuntu 20.04.4 ?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by jkfloris »

Yes

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal
Another possibility is that you have an old version of winehq.key on your computer.
Could you try:

Code: Select all

wget -O winehq.key https://dl.winehq.org/wine-builds/winehq.key
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
And post the output of:

Code: Select all

cat /etc/apt/sources.list.d/*.sources
# and
gpg /usr/share/keyrings/winehq-archive.key
ELY_M
Newbie
Newbie
Posts: 1
Joined: Tue May 17, 2022 11:25 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by ELY_M »

I am having trouble too :( I read all comments here.... here is my problem....


root@103:~#
root@103:~#
root@103:~# cat /etc/apt/sources.list.d/*.sources
Types: deb
URIs: https://dl.winehq.org/wine-builds/ubuntu
Suites: focal
Components: main
Architectures: amd64 i386
Signed-By: /usr/share/keyrings/winehq-archive.key
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~# gpg /usr/share/keyrings/winehq-archive.key
gpg: WARNING: no command supplied. Trying to guess what you mean ...
pub rsa3072 2018-12-10 [SC]
D43F640145369C51D786DDEA76F1A20FF987672F
uid WineHQ packages <[email protected]>
sub rsa3072 2018-12-10 [E] [expired: 2020-12-09]
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~# gpg /usr/share/keyrings/winehq-archive.key
gpg: WARNING: no command supplied. Trying to guess what you mean ...
pub rsa3072 2018-12-10 [SC]
D43F640145369C51D786DDEA76F1A20FF987672F
uid WineHQ packages <[email protected]>
sub rsa3072 2018-12-10 [E] [expired: 2020-12-09]
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~#
root@103:~# apt update
Get:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [8041 B]
Get:2 https://deb.nodesource.com/node_16.x focal InRelease [4583 B]
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease
Err:1 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
Hit:4 http://packages.panopta.com/deb stable InRelease
Err:2 https://deb.nodesource.com/node_16.x focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
Hit:5 http://archive.canonical.com/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Reading package lists... 68%
Reading package lists... 99%
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: GPG error: https://deb.nodesource.com/node_16.x focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
E: The repository 'https://deb.nodesource.com/node_16.x 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:52 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list:54
root@103:~#
root@103:~#


it look like the key is expired or something.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 20.04 not is possible install WINE if using apt-get

Post by jkfloris »

What are the permissions of /usr/share/keyrings/winehq-archive.key?

Code: Select all

ls -asl /usr/share/keyrings/winehq-archive.key
Locked