docker-wine
docker-wine copied to clipboard
error trying to build one a m1
Describe the bug
git clone https://github.com/scottyhardy/docker-wine.git
./build
369.0 invoke-rc.d: policy-rc.d denied execution of start.
369.5 Setting up winehq-stable (8.0.2~focal-1) ...
369.5 Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
369.6 Processing triggers for mime-support (3.64ubuntu1) ...
369.8 Processing triggers for libc-bin (2.31-0ubuntu9) ...
370.1 E: Could not configure 'libc6:i386'.
370.1 E: Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
------
Dockerfile:30
--------------------
29 | ARG WINE_BRANCH="stable"
30 | >>> RUN wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
31 | >>> && echo "deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main" >> /etc/apt/sources.list \
32 | >>> && dpkg --add-architecture i386 \
33 | >>> && apt-get update \
34 | >>> && DEBIAN_FRONTEND="noninteractive" apt-get install -y --install-recommends winehq-${WINE_BRANCH} \
35 | >>> && rm -rf /var/lib/apt/lists/*
36 |
--------------------
ERROR: failed to solve: process "/bin/sh -c wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - && echo \"deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main\" >> /etc/apt/sources.list && dpkg --add-architecture i386 && apt-get update && DEBIAN_FRONTEND=\"noninteractive\" apt-get install -y --install-recommends winehq-${WINE_BRANCH} && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
To Reproduce
git clone https://github.com/scottyhardy/docker-wine.git
./build
Expected behavior it should build
Screenshots
369.0 invoke-rc.d: policy-rc.d denied execution of start.
369.5 Setting up winehq-stable (8.0.2~focal-1) ...
369.5 Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
369.6 Processing triggers for mime-support (3.64ubuntu1) ...
369.8 Processing triggers for libc-bin (2.31-0ubuntu9) ...
370.1 E: Could not configure 'libc6:i386'.
370.1 E: Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
------
Dockerfile:30
--------------------
29 | ARG WINE_BRANCH="stable"
30 | >>> RUN wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
31 | >>> && echo "deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main" >> /etc/apt/sources.list \
32 | >>> && dpkg --add-architecture i386 \
33 | >>> && apt-get update \
34 | >>> && DEBIAN_FRONTEND="noninteractive" apt-get install -y --install-recommends winehq-${WINE_BRANCH} \
35 | >>> && rm -rf /var/lib/apt/lists/*
36 |
--------------------
ERROR: failed to solve: process "/bin/sh -c wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - && echo \"deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main\" >> /etc/apt/sources.list && dpkg --add-architecture i386 && apt-get update && DEBIAN_FRONTEND=\"noninteractive\" apt-get install -y --install-recommends winehq-${WINE_BRANCH} && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
Desktop (please complete the following information):
- OS: [e.g. iOS] mac os x venture 13.4.1 (c)
- Browser [e.g. chrome, safari]: chrome
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context using orbstack as docker runtime
I tried building an amd64 image locally on a M1 and running it under emulation - e.g.
docker buildx build --platform=linux/amd64 -t docker-wine
then
docker run -it --rm --hostname="$(hostname)" --env="RDP_SERVER=yes" --publish="3389:3389/tcp" --platform=linux/amd64 docker-wine /bin/bash
but unfortunately I get some errors with kernel32.dll when I run anything.