APT - 尝试安装 Wine32 时软件包损坏

APT - 尝试安装 Wine32 时软件包损坏

我正在尝试安装 wine32。

运行sudo apt install wine32返回以下输出:

Reading package list... Done
Create dependency tree
Reading status information... Done

Some packages cannot be installed. This may mean that
asked for an impossible situation or, if you are using the distribution
unstable, that some required packages have not yet been created or are
have taken from «Incoming». The following information may help resolve the situation:

The following packages have unmet dependencies:

wine32:i386 : Depends: libwine:i386 (= 4.0-2) but will not install

E: Unable to fix problems, has saved broken packages.

我正在使用 huayra 5.0,以防有帮助。

答案1

首先,我是你添加了架构i386dpkg --add-architecture i386),因为 Huayra 5 只有一个amd64版本。

正如 cas 在评论中所说,wine32不在 Huayra 的仓库中。我会尝试从 WineHQ 的存储库安装 Wine32。
为此,首先您需要下载并添加 WineHQ 的存储库密钥。

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

然后下载相应 Debian 版本的源文件(Huayra 5 基于 Debian Buster。供将来参考,如果您使用其他版本的 Debian,请更改buster您的 Debian 版本代号)

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/buster/winehq-buster.sources

完成此操作后,您将需要更新软件包列表:sudo apt update

最后,要安装 Wine32,请运行:

sudo apt install --install-recommends wine32

相关内容