Debian 9.9 に wine32 をインストールしようとすると、次の問題が発生します。
# apt-get install wine32
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
wine32:i386 : Depends: libwine:i386 (= 1.8.7-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答え1
32ビットアーキテクチャを有効にし、必要なすべてのパッケージをインストールする必要があります。バラよりインストールに関する注意:
sudo dpkg --add-architecture i386 && sudo apt update
sudo apt install \
wine \
wine32 \
wine64 \
libwine \
libwine:i386 \
fonts-wine
答え2
私もDebian 10 buster
同じ問題を抱えていますwine32
。 Debian 10.9 のいくつかのアップデート以降、上記の方法がうまくいくようです。これが私が解決した方法です。
$dpkg --print-architecture && dpkg --print-foreign-architectures
amd64
i386
$sudo apt remove wine && sudo apt purge wine
$sudo apt remove wine64 && sudo apt purge wine64
$wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.
$sudo apt-key add winehq.key
OK
$sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
$sudo apt update
$sudo apt install --install-recommends winehq-stable
$wine --version
wine-6.0
$sudo apt install winetricks wine32
userdbn@debian:~/Downloads$ winecfg
wine: '/home/userdbn/.wine' is a 64-bit installation, it cannot be used with a 32-bit wineserver.
userdbn@debian:~/Downloads$ sudo apt install wine64
その後、すべてのWindowsプログラムが再起動し始めます。
答え3
これは私に合ったdockerfileです(node、java、Angular、Electro)。
FROM node:16.15.0
WORKDIR /work
COPY package.json .
RUN apt update
RUN apt-get -y install zip unzip
# node_modules witch angular and electron
RUN npm install -g n @angular/cli electron electron-builder
# JAVA
RUN apt-get -y install default-jre
RUN apt install openjdk-11-jre-headless
# Wine (Wine32)
RUN apt install -y software-properties-common
RUN dpkg --add-architecture i386
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
RUN apt update
RUN apt -y install --install-recommends winehq-stable
EXPOSE 3002