Ubuntu 24.04 LTS运行Wine提示缺少wine32,安装wine32:i386时出现依赖问题
Ubuntu 24.04 LTS运行Wine提示缺少wine32,安装wine32:i386时出现依赖问题
嘿,我之前在Ubuntu 24.04 LTS上折腾Wine的时候,刚好碰到了和你一模一样的问题!先给你还原下整个问题场景,再分享几个亲测有效的解决办法:
问题场景还原
当我运行Wine时,弹出了这个提示:
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32:i386"
但执行sudo apt-get install wine32:i386时,又碰到了依赖错误,关键报错信息如下:
sudo apt-get install wine32:i386 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: libgd3:i386 : Depends: libheif1:i386 (>= 1.17.6-1ubuntu4~)
解决办法
办法1:先确认32位架构已启用
Ubuntu 24.04默认可能没开启i386架构支持,这可是Wine 32位组件运行的基础,先执行这两步:
- 启用i386架构:
sudo dpkg --add-architecture i386 - 更新软件源缓存:
sudo apt update
完成后再尝试安装wine32:i386,很多时候这一步就能直接解决依赖问题。
办法2:修复系统损坏的依赖
如果上面的步骤没用,大概率是系统里存在损坏的依赖包,试试用系统自带的修复命令:sudo apt --fix-broken install
这个命令会自动检测并修复未满足的依赖关系,等修复完成后,再重新安装wine32:i386就行。
办法3:改用Wine官方源安装(终极方案)
如果系统自带源里的Wine包确实存在兼容问题,那直接用Wine官方提供的源来安装,兼容性会好很多:
- 先卸载现有Wine相关包(避免新旧包冲突):
sudo apt remove --purge wine wine64 wine32:i386 sudo apt autoremove --purge sudo apt clean - 添加Wine官方的GPG密钥,用来验证包的合法性:
sudo mkdir -pm755 /etc/apt/keyrings sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key - 添加适配Ubuntu 24.04的Wine官方源:
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources - 更新源缓存后,安装稳定版Wine:
sudo apt update sudo apt install --install-recommends winehq-stable
安装完成后,Wine会自动配置好32位和64位的运行环境,再也不会弹出缺少wine32的提示啦。
备注:内容来源于stack exchange,提问作者reneas




