No Release?

Questions about Wine on Linux
Locked
kerptastic
Newbie
Newbie
Posts: 1
Joined: Wed Feb 06, 2019 4:06 pm

No Release?

Post by kerptastic »

Just realized the repositories changed when rebuilding my docker containers. Following the instructions for an 18.04 install (bionic), I have:

Code: Select all

RUN wget -nc --no-check-certificate https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Which results in:

Code: Select all

Step 6/9 : RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
 ---> Running in 67d0e581ee27
Ign:1 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Err:2 https://dl.winehq.org/wine-builds/ubuntu bionic Release
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 151.101.66.217 443]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [146 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [337 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [3451 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [927 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [675 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6955 B]
Get:13 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3666 B]
Reading package lists...
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic Release' does not have a Release file.
The command '/bin/sh -c apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'' returned a non-zero code: 100
Am I forgetting something obvious here?

Thanks!
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: No Release?

Post by spoon0042 »

If winehq.key already exists wget -nc does not overwrite it, leaving the old key, which is what I'm assuming happened given you have "Certificate verification failed". Maybe the wiki should mention this, I don't know.

Your last line there about exit code 100 may or may not be anything, first try making sure the key has been updated.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: No Release?

Post by Bob Wya »

spoon0042 wrote:If winehq.key already exists wget -nc does not overwrite it, leaving the old key, which is what I'm assuming happened given you have "Certificate verification failed". Maybe the wiki should mention this, I don't know.
...
No clobber shouldn't be used for such a small file, that is subject to the occasional update.
Also a sensible path should be set first... So the download directory is writeable (by the user executing the command).

Bob
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: No Release?

Post by spoon0042 »

Looking at the wget manpage it would seem -N is what is wanted instead. Pretty sure anyway.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: No Release?

Post by dimesio »

The winehq.key has not changed since the switch from release.key and if you already had it installed you should not have to reinstall it.

Googling the non-zero code error message turned up https://stackoverflow.com/questions/380 ... o-code-100.
Locked