• 解决安装rpm时lib冲突:libstdc++-2-libc6.1-1-2.9.0.so from install of compat-libstdc++-7.3-2.96.118 conflicts with file from ...


    sudo rpm -ivh xxx.rpm -aid --force

    [oracle@localhost Oracle]$ sudo rpm -ivh compat-libstdc++-7.3-2.96.118.i386.rpm compat-libstdc++-devel-7.3-2.96.118.i386.rpm
    warning: compat-libstdc++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    Preparing...                ########################################### [100%]
            file /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so from install of compat-libstdc++-7.3-2.96.118 conflicts with file from package compat-libstdc++-296-2.96-132.7.2
            file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so from install of compat-libstdc++-7.3-2.96.118 conflicts with file from package compat-libstdc++-296-2.96-132.7.2
    [oracle@localhost Oracle]$ sudo rpm -ivh compat-gcc-c++-7.3-2.96.118.i386.rpm
    warning: compat-gcc-c++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    error: Failed dependencies:
            compat-libstdc++ = 7.3 is needed by compat-gcc-c++-7.3-2.96.118.i386
            compat-libstdc++-devel = 7.3 is needed by compat-gcc-c++-7.3-2.96.118.i386
    
    [oracle@localhost Oracle]$ rpm -ivh compat-libstdc++-7.3-2.96.118.i386.rpm -aid --force
    warning: compat-libstdc++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    error: can't create transaction lock
    [oracle@localhost Oracle]$
    [oracle@localhost Oracle]$ sudo rpm -ivh compat-libstdc++-7.3-2.96.118.i386.rpm -aid --force
    warning: compat-libstdc++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    Preparing...                ########################################### [100%]
       1:compat-libstdc++       ########################################### [100%]
    [oracle@localhost Oracle]$ sudo rpm -ivh compat-libstdc++-devel-7.3-2.96.118.i386.rpm -aid --force
    warning: compat-libstdc++-devel-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    Preparing...                ########################################### [100%]
       1:compat-libstdc++-devel ########################################### [100%]
    [oracle@localhost Oracle]$ sudo rpm -ivh compat-gcc-c++-7.3-2.96.118.i386.rpm
    warning: compat-gcc-c++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    Preparing...                ########################################### [100%]
       1:compat-gcc-c++         ########################################### [100%]
    [oracle@localhost Oracle]$
    [oracle@localhost Oracle]$

    另一解决途径:

    rpm -e compat-libstdc++-296-2.96-138
    [root@localhost administrator]# rpm -ivh compat-libstdc++-7.3-2.96.122.i386.rpm
    warning: compat-libstdc++-7.3-2.96.122.i386.rpm: Header V3 DSA signature: NOKEY,
     key ID db42a60e
    Preparing...                ########################################### [100%]
            file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so from install of compat-lib
    stdc++-7.3-2.96.122.i386 conflicts with file from package compat-libstdc++-296-2
    .96-138.i386
    [root@localhost administrator]# rpm -qa | grep -i compat-libstdc++
    compat-libstdc++-33-3.2.3-61
    compat-libstdc++-296-2.96-138
    [root@localhost administrator]# rpm -e compat-libstdc++-296-2.96-138
    [root@localhost administrator]# rpm -qa | grep -i compat-libstdc++
    compat-libstdc++-33-3.2.3-61
    [root@localhost administrator]# rpm -ivh compat-libstdc++-7.3-2.96.122.i386.rpm
    warning: compat-libstdc++-7.3-2.96.122.i386.rpm: Header V3 DSA signature: NOKEY,
     key ID db42a60e
    Preparing...                ########################################### [100%]
       1:compat-libstdc++       ########################################### [100%]
    [root@localhost administrator]#
  • 相关阅读:
    在IIS上部署 .Net Core 3.0 项目踩坑实录
    .net core3.0部署Linux服务器 使用Docker容器和Nginx反代理教程
    播放器 AxWindowsMediaPlayer控件的使用
    Github下载慢和下载过程中断等情况的解决方案
    GitHub第一次上传遇到的问题
    DataGridView && 增加复选框(checkbox)方法
    努力
    绘图:drawImage一个用法
    Tuple<T1,T2,.........T> 元组简单使用
    随机的标识符GUID
  • 原文地址:https://www.cnblogs.com/duanguyuan/p/4118210.html
Copyright © 2020-2023  润新知