偶然在安装桌面的时候报了这个错,由于yum源配置了epel和阿里云的源和本地源,造成了软件冲突。
其中local-http是挂载的本地ISO系统文件所生成的仓库。其余的源为互联网源。
[root@slave1 centos]# yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * epel: mirrors.bfsu.edu.cn repo id repo name status aliyun aliyun 10,072 *epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,753 kvm kvm 63 local-http local 3,894 openstack-queens openstack-queens
check error: file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.e17.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.64.el7.centos.noarch
解决方案为:升级错误提示后面的提示的包 grub2-common,重新安装fwupdate-efi即可。命令如下:
yum update grub2-common -y yum install fwupdate-efi -y
在此做一个备忘,如果还有什么软件是冲突了,先把from后面的软件升级,然后在重新安装of后面的软件即可。



