question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wine docker container cannot run apt update anymore

See original GitHub issue
  • Version: Only affects the docker container. Not the builder itself.
  • Electron Version: Only affects the docker container. Not the builder itself.
  • Electron Type (current, beta, nightly): Current
  • Target: Windows

All docker container which contain wine to target windows builds (electronuserland/wine, electronuserland/wine-*) cannot run “apt update” anymore. It looks like Suse recently updated the wine release key which causes apt to fail when trying to update because the keys don’t match. This can cause pipelines to fails because some dependencies can’t be installed. Here the output of a fresh container:

sudo docker run -it electronuserland/builder:wine-mono

root@8de079db3cbb:/project# apt update
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease [1562 B]                                                                               
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                                                                
Err:2 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease                                        
  The following signatures were invalid: EXPKEYSIG DFA175A75104960E Emulators OBS Project <Emulators@build.opensuse.org>
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                          
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                                   
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]                                                                     
Get:8 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]                          
Get:9 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [11.1 kB]                                                  
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [1088 kB]                                
Get:11 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [177 kB]                              
Get:7 https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease [23.2 kB]                                 
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]                                       
Get:13 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [13.5 kB]                                          
Get:14 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1328 kB]                                             
Get:16 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [11.3 MB]                                                 
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]                                                                        
Get:15 https://packagecloud.io/github/git-lfs/ubuntu bionic/main amd64 Packages [4237 B]                                                                         
Get:18 https://packagecloud.io/github/git-lfs/ubuntu bionic/main i386 Packages [4224 B]                                                  
Get:19 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]                                                                                                                                                                                                                                  
Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [1214 kB]                                                                                                                                                                                                                                    
Get:21 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [5146 B]                                                                                                                                                                                                                                   
Get:22 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]                                                                                                                                                                                                                                       
Get:23 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]                                                                                                                                                                                                                                           
Get:24 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]                                                                                                                                                                                                                                             
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]                                                                                                                                                                                                                                         
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]                                                                                                                                                                                                                                     
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]                                                                                                                                                                                                                                   
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1476 kB]                                                                                                                                                                                                                                          
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1950 kB]                                                                                                                                                                                                                                      
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [16.5 kB]                                                                                                                                                                                                                                    
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [23.5 kB]                                                                                                                                                                                                                                    
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]                                                                                                                                                                                                                                    
Get:33 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]                                                                                                                                                                                                                                       
Get:34 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]                                                                                                                                                                                                                                   
Get:35 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [11.2 kB]                                                                                                                                                                                                                                        
Get:36 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [11.4 kB]                                                                                                                                                                                                                                    
Reading package lists... Done                                                                                                                                                                                                                                                                                                
W: GPG error: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease: The following signatures were invalid: EXPKEYSIG DFA175A75104960E Emulators OBS Project <Emulators@build.opensuse.org>
E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ 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.
root@8de079db3cbb:/project# 

It should suffice to rebuild and upload the electronuserland/wine and electronuserland/wine-* images as far as I can tell.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
DanielMcAsseycommented, Dec 21, 2020

Workaround for me was to add this command before doing apt-update, not the best, but more secure workaround than bypassing

wget -qO - https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | apt-key add -

0reactions
stale[bot]commented, Jun 4, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dockerd can't perform `apt-get update` when building image ...
When I run docker compose up I get the following log: Step 4/14 : RUN apt-get update ---> [Warning] The requested image's platform ......
Read more >
SteamCMD - Valve Developer Community
On first run, SteamCMD will automatically update and enter you into a Steam> prompt. Type help for more information. Windows. Open a Command ......
Read more >
apt update docker.com Release 404 not found - Ask Ubuntu
According to the docker page for Ubuntu, the problem is that it should be https://download.docker.com/linux/ubuntu instead of ...
Read more >
docker desktop offline installer
Install on Ubuntu Server Complete installation guide with PostgreSQL database, docker and optional SSL setup; Install on DigitalOcean Launch a prebuilt ...
Read more >
Running Wine within Docker - Ales Nosek
We'll run the Windows application inside this Docker container. ... RUN dpkg --add-architecture i386 RUN apt-get update RUN apt-get install ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found