Ubuntu 20.04:“E:软件包‘wine32’没有安装候选项”

Ubuntu 20.04:“E:软件包‘wine32’没有安装候选项”

在全新安装的 Ubuntu 20.04.1 上,我尝试安装 wine32 ( sudo apt-get install wine32)。但是出现错误:E: Package 'wine32' has no installation candidate。这是怎么回事?

$ sudo apt-get update
  ...
$ sudo apt-get install wine32
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package wine32 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libwine

E: Package 'wine32' has no installation candidate

我需要wine32运行 32 位 Windows 可执行文件。

答案1

就我而言:docker witch node、java、angular 和 electron 都可以正常工作 - 我留下了完整的 dockerfile

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

相关内容