Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Wine Dockerfile #5579

Closed
ccheraa opened this issue Jan 25, 2021 · 2 comments · Fixed by #5855
Closed

Building Wine Dockerfile #5579

ccheraa opened this issue Jan 25, 2021 · 2 comments · Fixed by #5855

Comments

@ccheraa
Copy link

ccheraa commented Jan 25, 2021

  • Version: 22.9.1
  • Electron Version: 11.2.1
  • Electron Type (current, beta, nightly): current
  • Target: linux

My issue is not related to electron or electron builder.

I tried to build /docker/wine/Dockerfile using the command

docker build --rm --force-rm --squash -t test/electron-builder-wine:default .

I got:

E: Unable to locate package winehq-stable

I tried to change the key and repo to the ones mentioned in WineHQ documentation

FROM electronuserland/builder:latest

RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common && dpkg --add-architecture i386 && \
-  curl -L https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key > winehq.key && apt-key add winehq.key && \
-  apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./' && \
+  curl -L https://dl.winehq.org/wine-builds/winehq.key > winehq.key && apt-key add winehq.key && \
+  apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' && \
  apt-get update && \
  apt-get -y purge software-properties-common libdbus-glib-1-2 python3-dbus python3-gi python3-pycurl python3-software-properties && \
  apt-get install -y --no-install-recommends winehq-stable && \
  # clean
  apt-get clean && rm -rf /var/lib/apt/lists/* && unlink winehq.key

RUN curl -L https://github.com/electron-userland/electron-builder-binaries/releases/download/wine-2.0.3-mac-10.13/wine-home.zip > /tmp/wine-home.zip && unzip /tmp/wine-home.zip -d /root/.wine && unlink /tmp/wine-home.zip

ENV WINEDEBUG -all,err+all
ENV WINEDLLOVERRIDES winemenubuilder.exe=d

and got a different error:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 6.0.0~bionic-1)
E: Unable to correct problems, you have held broken packages.

if I add apt-get install wine-stable I get the same error for different packages.

Is there a problem with Dockerfile or am I doing something wrong?

@flaushi
Copy link

flaushi commented Mar 19, 2021

Same thing here. Could you solve your problem?

@flaushi
Copy link

flaushi commented Mar 19, 2021

it seems the ubuntu version is too old for the current winhq version https://askubuntu.com/a/1205535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants