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来卸载,若用此法卸载该安装包,会造成相关依赖包也被卸载,最后系统会黑屏!这也是我一直错误的地方。

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

  • 相关阅读:
    poj 2528 Mayor's posters (线段树+离散化)
    poj 1201 Intervals (差分约束)
    hdu 4109 Instrction Arrangement (差分约束)
    poj 1195 Mobile phones (二维 树状数组)
    poj 2983 Is the Information Reliable? (差分约束)
    树状数组 讲解
    poj 2828 Buy Tickets (线段树)
    hdu 1166 敌兵布阵 (树状数组)
    Ubuntu网络配置
    Button控制窗体变量(开关控制灯的状态)
  • 原文地址:https://www.cnblogs.com/ytdyz/p/12643058.html
Copyright © 2011-2022 走看看