错误:缺less依赖关系:package wine-core需要/ usr / X11R6 / bin / xmessage

安装wine时,CentOS出现以下错误:

sudo yum install wine 

错误:

 --> Finished Dependency Resolution wine-core-1.2.3-1.el4.rf.i386 from rpmforge has depsolving problems --> Missing Dependency: /usr/X11R6/bin/xmessage is needed by package wine-core-1.2.3-1.el4.rf.i386 (rpmforge) Error: Missing Dependency: /usr/X11R6/bin/xmessage is needed by package wine-core-1.2.3-1.el4.rf.i386 (rpmforge) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest The program package-cleanup is found in the yum-utils package. 

xmessage是xorg-x11-apps的一部分( sudo yum install xorg-x11-apps ):

 $ rpm -ql xorg-x11-apps | grep xmessage /usr/bin/xmessage 

我试图通过以下方式进行符号链接:

 cd /usr/X11R6/bin && sudo ln -s ../../../usr/bin/xmessage xmessage 

但它没有帮助。

你在最有可能不是centos 4的机器上安装了一个centos 4软件包。 获取与您的操作系统相匹配的葡萄酒包的一个版本。

而且如果你的操作系统真的是升级的话,那么centos 4就不会再有安全补丁了。

您正在混合多个第三方存储库。 你需要设置yum优先级插件。 尤其是,EPEL已知会与其他第三方回购产生冲突。

请阅读并遵循以下指示:

http://wiki.centos.org/AdditionalResources/Repositories

http://wiki.centos.org/PackageManagement/Yum/Priorities

因为你需要红酒,并且rpmforge和EPEL都有红酒,所以我build议你只启用其中的一种,而不是两种。

要尽可能简化回购状态,请使用rpmforge或EPEL作为目前唯一的第三方回购。 删除或删除其他人。 然后尝试安装葡萄酒。

最简单的解决方法是通过以下命令删除RPMforge ( check by rpm -qa | grep rpmforge ):

 $ sudo rpm -e rpmforge-release