sudo rpm -ivh xxx.rpm -aid --force
[[email protected] 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 [[email protected] 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 [[email protected] 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 [[email protected] Oracle]$ [[email protected] 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%] [[email protected] 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%] [[email protected] 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%] [[email protected] Oracle]$ [[email protected] Oracle]$
另一解决途径:
rpm -e compat-libstdc++-296-2.96-138
[[email protected] 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 [[email protected] administrator]# rpm -qa | grep -i compat-libstdc++ compat-libstdc++-33-3.2.3-61 compat-libstdc++-296-2.96-138 [[email protected] administrator]# rpm -e compat-libstdc++-296-2.96-138 [[email protected] administrator]# rpm -qa | grep -i compat-libstdc++ compat-libstdc++-33-3.2.3-61 [[email protected] 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%] [[email protected] administrator]#
时间: 2024-10-15 11:26:15