错误提示
使用pacman
或者yay
等包管理器安装程序时报错warning: cannot resolve "lib32-*"
以下是我在Archlinux下安装Wine版本酷狗时出现的报错
warning: cannot resolve "lib32-fontconfig", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-lcms2", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libxml2", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libxcursor", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libxrandr", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libxdamage", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libxi", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-gettext", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-freetype2", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-glu", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libsm", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-libpcap", a dependency of "wine-for-wechat"
warning: cannot resolve "lib32-faudio", a dependency of "wine-for-wechat"
解决方案
之所以会报错,是因为我们要装的是32位的程序(毕竟是lib32
么),只需开启multilib
1,更新软件包列表,然后就可以找到lib32-*
这些包了~
- 在
/etc/pacman.conf
中,去掉如下两行的注释
[multilib]
Include = /etc/pacman.d/mirrorlist
- 执行
pacman -Syu
更新软件包列表并升级包
参考链接
Wine Installation failed due to dependencies - Arch Linux Forums, https://bbs.archlinux.org/viewtopic.php?pid=1938006#p1938006 ↩︎