在反复尝试并尝试用谷歌搜索这个问题后,我被困住了,正在向我的堆垛机伙伴寻求帮助。
wget http://www.tcadmin.com/installer/mono-2.11.4-i386.rpm
yum -y install mono-2.11.4-i386.rpm --nogpgcheck
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done
当我到达 yum 部分时,它失败并输出此错误。
file / from install of mono-2.11.4-bi.x86_64 conflicts with file from package filesystem-3.2-18.el7.x86_64
大多数网站和地方都建议使用覆盖或强制命令,但这听起来很愚蠢,可能会给我自己和系统带来问题。
我已就此问题向提供 wiki 的公司提交了工单,但我尚未收到回复。
另一个建议是提取 rpm 并一个一个地移动文件,但这非常耗时..
工单的回复如下;
It is safe to force install because all files are placed in /opt/mono-2.11.4 but there is a bug with mono on centos 7 that prevents tcadmin from working correctly.
最佳答案
对于遇到此线程的任何其他人,我很高兴地报告,虽然我在安装 mono 时没有遇到此错误(那是一个完整的其他过程),但我在尝试安装 TCAdmin 本身时确实遇到了它,但我使用 rpmrebuild 后能够在 CentOS 7 上完成 TCAdmin 的安装修改规范。
只需安装 rpmrbebuild,运行 rpmrebuild -pe {packagename}.rpm
,向下滚动到 %files 部分并删除任何有问题的目录的行(在我的例子中,'/' 和 '/home' 目录),保存并退出,按 y,并记下结果位置。在我的例子中,它是 /root/rpmbuild/RPMS/noarch/{packagename}.rpm
。
遍历该目录并运行 yum -y install ./{packagename.rpm
它将顺利安装。
这同样适用于任何其他返回文件系统冲突错误的包。只需相应地调整上述示例中的包名称即可。
*感谢可敬的 Ahmad Samir 用他在 this 中的帖子为我指明了正确的方向线程。
关于linux - 与包 filesystem-3.2 中的文件冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27172142/