error installing Wine in ubuntu17.10

Questions about Wine on Linux
Locked
gcefalu
Level 1
Level 1
Posts: 5
Joined: Tue Nov 07, 2017 2:41 pm

error installing Wine in ubuntu17.10

Post by gcefalu »

I am trying to install wine according to the instructions found at https://wiki.winehq.org/Ubuntu
these are:
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

Everything works fine up to here, however I get an error when I try to run sudo apt-get update "404 not found" could not resolve http. Are there any lines to be added to the sources.list file in etc/apt?
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: error installing Wine in ubuntu17.10

Post by dimesio »

If it's the same errors you posted in your other thread, those are for other repositories that have nothing to do with Wine.
gcefalu
Level 1
Level 1
Posts: 5
Joined: Tue Nov 07, 2017 2:41 pm

Re: error installing Wine in ubuntu17.10

Post by gcefalu »

I have reinstalled the virtual machine workstation player and ubuntu 17.10
When I run sudo apt-get update I get the follwing error:

gcefalu@ubuntu:/etc/apt$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [76.7 kB]
Get:5 https://dl.winehq.org/wine-builds/ubuntu artful InRelease [4,677 B]
Err:5 https://dl.winehq.org/wine-builds/ubuntu artful InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu artful InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu artful 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.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: error installing Wine in ubuntu17.10

Post by dimesio »

Did you download the release key and add the repository following the instructions on https://wiki.winehq.org/Ubuntu?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: error installing Wine in ubuntu17.10

Post by Bob Wya »

@ gcefalu,

If you're posting terminal output or commands, please can you use the supplied WineHQ forum Code tags:

Code: Select all

I AM CODE
That's the little Code button above the forum full Post a reply edit box (not the Quick Reply).

Otherwise forum posts quickly become painful to read easily... :cry:

Ta
Bob
AnotherUser
Newbie
Newbie
Posts: 2
Joined: Tue Apr 10, 2018 10:14 am

Re: error installing Wine in ubuntu17.10

Post by AnotherUser »

I ran into the same issue and I think there is something wrong with the setup of pgp keys.

The error states that there is no public key with the ID: 818A435C5FCBF54A
It can be validated that the signature on the server requires this key:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/xenial/Release.gpg
gpg --list-packets Release.gpg
Output:
  • :signature packet: algo 1, keyid 818A435C5FCBF54A
    version 4, created 1522506302, md5len 0, sigclass 0x00
    digest algo 8, begin of digest 94 87
    hashed subpkt 33 len 21 (?)
    hashed subpkt 2 len 4 (sig created 2018-03-31)
    subpkt 16 len 8 (issuer key ID 818A435C5FCBF54A)
    data: [4095 bits]
Yet, the key we are supposed to install (according to the instructions) has a different ID (74EEA1BB56414319):

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/Release.key
gpg --list-packets Release.key 
Output:
  • :public key packet:
    version 4, algo 1, created 1519478203, expires 0
    pkey[0]: [4096 bits]
    pkey[1]: [17 bits]
    keyid: 74EEA1BB56414319
    :user ID packet: "Alistair Leslie-Hughes (Wine packages) <[email protected]>"
    :signature packet: algo 1, keyid 74EEA1BB56414319
    version 4, created 1519478203, md5len 0, sigclass 0x13
    digest algo 8, begin of digest 12 d3
    hashed subpkt 33 len 21 (?)
    hashed subpkt 2 len 4 (sig created 2018-02-24)
    hashed subpkt 27 len 1 (key flags: 03)
    hashed subpkt 9 len 4 (key expires after 10y0d0h0m)
    hashed subpkt 11 len 4 (pref-sym-algos: 9 8 7 2)
    hashed subpkt 21 len 5 (pref-hash-algos: 8 9 10 11 2)
    hashed subpkt 22 len 3 (pref-zip-algos: 2 3 1)
    hashed subpkt 30 len 1 (features: 01)
    hashed subpkt 23 len 1 (key server preferences: 80)
    subpkt 16 len 8 (issuer key ID 74EEA1BB56414319)
    data: [4094 bits]
    :public sub key packet:
    version 4, algo 1, created 1519478203, expires 0
    pkey[0]: [4096 bits]
    pkey[1]: [17 bits]
    keyid: 7B717B4374490CD3
    :signature packet: algo 1, keyid 74EEA1BB56414319
    version 4, created 1519478203, md5len 0, sigclass 0x18
    digest algo 8, begin of digest dd 67
    hashed subpkt 33 len 21 (?)
    hashed subpkt 2 len 4 (sig created 2018-02-24)
    hashed subpkt 27 len 1 (key flags: 0C)
    hashed subpkt 9 len 4 (key expires after 10y0d0h0m)
    subpkt 16 len 8 (issuer key ID 74EEA1BB56414319)
    data: [4094 bits]
I am not a apt / gpg expert, so I might miss something. But forgetting to run apt-key add is not the problem here, I think. Any thoughts?
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: error installing Wine in ubuntu17.10

Post by dimesio »

AnotherUser wrote: :user ID packet: "Alistair Leslie-Hughes (Wine packages) <[email protected]>"
My best guess is that this is probably related to https://bugs.winehq.org/show_bug.cgi?id=44955.
AnotherUser
Newbie
Newbie
Posts: 2
Joined: Tue Apr 10, 2018 10:14 am

Re: error installing Wine in ubuntu17.10

Post by AnotherUser »

Cool, the Release.key was updated, fixing the error. :)
ASDASDfdgfgh
Newbie
Newbie
Posts: 1
Joined: Mon Dec 17, 2018 10:35 am

Re: error installing Wine in ubuntu17.10

Post by ASDASDfdgfgh »

Just to add to the previous reply. I was following this guide: https://www.addictivetips.com/ubuntu-li ... -on-linux/ and I followed the method to install wine-staging on Ubuntu 18.04 - I got similar errors and dependency rabbit-hole. Reading every line of my terminal output suggested it was a repository issue and the comment above suggested the key might be an issue.

The code box in the linked article has the wrong release key!!! I don't know if this is due to the repository or Wine Devs or the author of this article, or my setup at fault. The solution is to follow the instructions for 18.04. Use *that key*, but delete the first key you used using rm -r /pathtoRelease.key and if necessary (wasn't for me) apt-key remove /pathtoRelease.key. Then I was able to reduce the problem to "W: Can not find PkgVer for 'winehq-staging'. So I changed to winehq-devel instead of staging.

TL;DR: Try a different key, like one from the previous version of your distro. Sorry it's not a complete solution.
Locked