解决Wine安装时提示You could try running: rpm -Va –nofiles –nodigest问题

简介:

最近想在美国VPS上装个Wine
可是在执行yum install wine时却遇到了意想不到的错误
系统提示:
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
经过一番周折,最后发现是yum源冲突的问题,并在最后成功解决
清理yum源
众所周知,安装yum前必须要先安装epel源
不过,你以前或许也安装过其他的源,由于源的优先级等原因,可能导致你安装epel源后仍旧不能优先使用
导致安装wine时出现上面的错误
所以下面我们要先清理那些导致安装失败的源
1、执行下面的命令进入yum源目录
cd /etc/yum.repos.d
2、输入ls,查看当前有的源
QQ截图20140602143053

3、你会发现,除了centos官方源和epel源以外,还有一些其他的源
4、用rm命令删除掉他们
5、运行下面的命令清除yum源缓存
yum clean all
6、运行下面的命令重新生成yum源缓存
yum makecache

7、运行下面的命令安装wine
8、这样一来就可以成功安装了,若这时提示nothing to do,可能是epel源被破坏,运行下面的命令重新安装
rpm -ivh http://server.wanghailin.cn/yum/epel/epel-release-6-8.noarch.rpm --force --nodeps

若上面的地址失效,请到本博资源库中的yum源资源库寻找:http://server.wanghailin.cn/yum/


本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1739231


相关文章
|
20天前
ubunut16.04 make install 提示 makeinfo is missing on your system;
ubunut16.04 make install 提示 makeinfo is missing on your system;
12 2
|
16天前
|
人工智能 Ubuntu 机器人
【ubuntu】手把手教你解决ubuntu报错openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
【ubuntu】手把手教你解决ubuntu报错openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
|
Linux Shell
Linux报错:pip: command not found
Linux报错:pip: command not found
144 0
|
Ubuntu Go 开发工具
ubuntu下go-zero项目安装goctl后报错:command not found
ubuntu下go-zero项目安装goctl后报错:command not found
543 0
ubuntu下go-zero项目安装goctl后报错:command not found
|
Linux 网络虚拟化
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
227 0
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
|
Ubuntu 网络协议 Linux
Linux - Ubuntu下执行apt-get update报错:Some index files failed to download. They have been ignored, or old ones used instead.
Linux - Ubuntu下执行apt-get update报错:Some index files failed to download. They have been ignored, or old ones used instead.
1818 0
Linux - Ubuntu下执行apt-get update报错:Some index files failed to download. They have been ignored, or old ones used instead.

热门文章

最新文章