Transaction Check Error:file /usr/libexec/getconf/default conflicts between attempted installs of gcc-6.4.1-1.fc25.i686 and gcc-6.4.1-1.fc25.x86_64

今天在我的ubuntu系统上使用yum来安装软件时出错了错误:Transaction Check Error:file /usr/libexec/getconf/default conflicts between attempted installs of gcc-6.4.1-1.fc25.i686 and gcc-6.4.1-1.fc25.x86_64

根据提示得知是由于两个gcc文件冲突,查看repos.d目录下发现是fedora启用了多个源,这个源就相当于下载软件的仓库,当系统同时启用两个源时,下载下来的软件就有可能出现文件冲突,所以只保留一个源即可。

具体方法为先切换到  /etc/yum.repos.d/目录下,命令cd /etc/yum.repos.d/ ,此目录下的文件即是源文件,使用vi打开某一源文件,将某一行的enable=1,改为enable=0,及成功禁用源。

完整示例:

cd /etc/yum.repos.d/

vi fedora-updates.repo

enable=0

原文地址:https://www.cnblogs.com/lijinze-tsinghua/p/8733598.html