解决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,查看当前有的源
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/
完美解决问题!
解决npm错误:如何应对could not retrieve https://npm.taobao.org/mirrors/node/latest/shasums256.txt问题
黄聪:VPS服务器如何配置PHP.ini解决wordpress使用WP-Mail-SMTP插件发邮件出现Could not connect to SMTP host的解决办法
解决 Ruby Gems 安装中报错:you don't have write permissions for the /library/ruby/gems/2.6.0 directory
解决 Git Rebase 中的错误:cannot pull with rebase you have unstaged changes
如何解决 Node.js 下载时的 could not retrieve https //nodejs.org/dist/latest/shasums256.txt 错误
es 嵌套查询innerHit API es should嵌套should
解决ModuleNotFoundError: No module named 'psycopg2'的安装报错方法
解决 Git Rebase 错误警告: warning: could not read '.git/rebase-merge/head-name': no such file or directory