zoukankan      html  css  js  c++  java
  • yum安装报错——Transaction check error: ***conflicts with***

    一、起因:我想搭建LNMP环境,需要安装以下rpm包

    在使用源码包安装服务程序之前,首先要让安装主机具备编译程序源码的环境,他需要具备C语言、C++语言、Perl语言的编译器,以及各种常见的编译支持函数库程序。
    因此请先配置妥当Yum软件仓库,然后把下面列出的这些软件包都统统安装上:
    1 [root@linuxprobe ~]# yum install -y apr* autoconf automake bison
    bzip2 bzip2* compat* cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel
    gcc gcc-c++ gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel
    libcom_err-devel libpng libpng-devel libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool* libgomp
    libxml2 libxml2-devel libXpm* libtiff libtiff* make mpfr ncurses* ntp openssl openssl-devel patch pcre-devel perl
    php-common php-gd policycoreutils telnet t1lib t1lib* nasm nasm* wget zlib-devel

     

    二、问题:出现报错

     1 Transaction check error:
     2   file /etc/libvirt/libvirt.conf from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     3   file /usr/lib64/libvirt-lxc.so.0 from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     4   file /usr/lib64/libvirt-qemu.so.0 from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     5   file /usr/lib64/libvirt.so.0 from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     6   file /usr/share/libvirt/cpu_map.xml from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     7   file /usr/share/libvirt/schemas/basictypes.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     8   file /usr/share/libvirt/schemas/capability.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
     9   file /usr/share/libvirt/schemas/domain.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
    10   file /usr/share/libvirt/schemas/domaincommon.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
    11   file /usr/share/libvirt/schemas/domainsnapshot.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
    12   file /usr/share/libvirt/schemas/interface.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
    13   file /usr/share/libvirt/schemas/network.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
    14   file /usr/share/libvirt/schemas/networkcommon.rng from install of libvirt-libs-4.5.0-23.el7_7.6.x86_64 conflicts with file from package libvirt-client-1.1.1-29.el7.x86_64
    ………………省略

    我们可以查看一些相关信息

    [root@localhost ~]# rpm -qa | grep libvirt*
    [root@localhost ~]# rpm -qi libvirt-client-1.1.1-29.el7.x86_64
    [root@localhost ~]# rpm -ql libvirt-client-1.1.1-29.el7.x86_64
    …………省略

    三、解决:方法是把不需要的版本删掉(低版本)

    1 [root@localhost admin]# yum -y update libvirt-client

    方法一:使用yum来升级CentOS 7.0老旧的包。

    yum -y remove libvirt-client-1.1.1-29.el7.x86_64

    方法二:使用yum来卸载,若用此法卸载该安装包,会造成相关依赖包也被卸载,最后系统会黑屏!这也是我一直错误的地方。

    好吧,我得承认,这个方法并不有效。

  • 相关阅读:
    (一二二)核心动画进阶
    1089. Insert or Merge (25)
    (一二一)核心动画基础
    (一二〇)CALayer的一些特性
    (一一九)通过CALayer实现阴影、圆角、边框和3D变换
    1086. Tree Traversals Again (25)
    POJ 2610:Dog & Gopher
    模拟内存分配(链表实现)
    圣诞树后能找到我的记忆
    YTU 2797: 复仇者联盟之关灯
  • 原文地址:https://www.cnblogs.com/ytdyz/p/12643058.html
Copyright © 2011-2022 走看看