You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04安装wine-stable时wine32缺失及依赖报错的解决咨询

Ubuntu 22.04安装wine-stable时wine32缺失及依赖报错的解决咨询

最近在Ubuntu 22.04系统上尝试安装wine-stable,执行命令sudo apt install wine-stable后遇到了一堆依赖不满足的报错,终端的完整输出如下:

Reading package lists... Done

Building dependency tree... Done

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:

init : PreDepends: systemd-sysv
libldap-2.5-0 : Depends: libsasl2-2 (>= 2.1.27+dfsg2) but it is not installable
libpulse0 : Depends: libapparmor1 (>= 2.7.0~beta1+bzr1772) but it is not installable
libsane1 : Depends: libsnmp40 (>= 5.9.1+dfsg) but it is not installable
Recommends: ipp-usb but it is not going to be installed
libxml2 : Depends: libicu70 (>= 70.1-1~) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我整理了几个可能解决这个问题的方向,大家可以逐个尝试:

  • 先排查是否存在被固定的包:执行dpkg --get-selections | grep hold,如果有输出的包,用sudo apt-mark unhold <包名>解除固定,之后再重新尝试安装wine-stable。
  • 修复系统依赖并更新源:先运行sudo apt update更新源列表,接着执行sudo apt --fix-broken install自动修复依赖问题,完成后再安装wine-stable。
  • 启用32位架构支持:wine很多组件依赖32位库,执行sudo dpkg --add-architecture i386添加32位架构,然后更新源sudo apt update,再尝试安装命令sudo apt install wine-stable。
  • 如果上述方法都无效,试试添加wine官方PPA源来获取更兼容的版本:
    1. 先安装必要工具:sudo apt install software-properties-common
    2. 添加PPA源:sudo add-apt-repository ppa:wine/wine-builds
    3. 更新源列表:sudo apt update
    4. 安装wine官方稳定版:sudo apt install --install-recommends winehq-stable

备注:内容来源于stack exchange,提问作者Victor Creations

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 08:54:07