The yum installation reports the error as follows:
Error: Package: samba-client-libs-4.10.16-13.el7_9.x86_64 (yum_sssd)
Requires: libavahi-common.so.3()(64bit)
Error: Package: libsmbclient-4.10.16-13.el7_9.x86_64 (yum_sssd)
Requires: libcups.so.2()(64bit)
Error: Package: sssd-krb5-common-1.16.5-10.el7_9.7.x86_64 (yum_sssd)
Requires: cyrus-sasl-gssapi(x86-64)
Error: Package: samba-client-libs-4.10.16-13.el7_9.x86_64 (yum_sssd)
Requires: libcups.so.2()(64bit)
Error: Package: samba-client-libs-4.10.16-13.el7_9.x86_64 (yum_sssd)
Requires: libavahi-client.so.3()(64bit)
Error: Package: samba-common-libs-4.10.16-13.el7_9.x86_64 (yum_sssd)
Requires: libcups.so.2()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles –nodigest
Solutions
1 Retrieve the file that the above prompt cannot find
Here we take the missing libcups.so.2 file as an example
//查看libcups.so.2文件是否存在
find / -name libcups.so.2
//存在的话,添加libcups.so.2的目录进系统共享库
export LD_LIBRARY_PATH=/path/to/libcups.so.2:$LD_LIBRARY_PATH
2 Use the command to retrieve the required dependencies
Yum provides libcups.so.2
finds that the dependency required by libcups.so.2 is cups-libs-1.6.3-51.el7.i686
3 Install missing dependencies
yum install -y cups-libs
After the installation is complete, search again and find that libcups.so.2 already exists at this time
. The problem is solved. Other missing files can be processed and solved according to this method.
4 special instructions
If the current host cannot access the external network or the yum source is not configured, the following methods can be used to solve the problem
1) Find a server that can access the external network (note that the server version number needs to be consistent)
You can view the system version number through cat /etc/redhat-release
2) Use yumdownloader --resolve --destdir=./cups-libs to download the required dependencies
[If you are prompted that the yumdownloader command does not exist, use yum install -y yumdownloader to install first]
3) Copy the rpm package downloaded above to a server that cannot be connected to the Internet
4) rpm -Uvh --force --nodeps *.rpm install
After the installation is complete, the result is the same as using yum -y install xx above. It can also be found that libcups.so.2 already exists. For other missing files, you can use the same method to download the rpm package and install it.