无法安装 glibc-devel‘需要:libnss_files.so.2’错误

无法安装 glibc-devel‘需要:libnss_files.so.2’错误

我正在使用 Linux 6.1,我需要安装 glibc-devel,但是出现此错误并失败。

[root@server1 Packages]# yum install glibc-devel-2.12-1.25.el6.i686.rpm
Loaded plugins: refresh-packagekit
Setting up Install Process
Examining glibc-devel-2.12-1.25.el6.i686.rpm: glibc-devel-2.12-1.25.el6.i686
Marking glibc-devel-2.12-1.25.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package glibc-devel.i686 0:2.12-1.25.el6 will be installed
--> Processing Dependency: libBrokenLocale.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libanl.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libcidn.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libcrypt.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libdl.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libm.so.6 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnsl.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnss_compat.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnss_dns.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnss_files.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnss_hesiod.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnss_nis.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libnss_nisplus.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libresolv.so.2 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: librt.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libthread_db.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Processing Dependency: libutil.so.1 for package: glibc-devel-2.12-1.25.el6.i686
--> Finished Dependency Resolution
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnss_files.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libutil.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnss_dns.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnss_compat.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libanl.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: librt.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libthread_db.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libm.so.6
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnss_nis.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnsl.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnss_nisplus.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libnss_hesiod.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libcrypt.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libresolv.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libdl.so.2
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libcidn.so.1
Error: Package: glibc-devel-2.12-1.25.el6.i686 (/glibc-devel-2.12-1.25.el6.i686)
           Requires: libBrokenLocale.so.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest  

答案1

我首先通过安装 glibc-2.12-1.25.el6.i686.rpm 解决了这个问题。

但是在安装“glibc-2.12-1.25.el6.i686.rpm”时出现此错误。
错误:软件包:glibc-2.12-1.25.el6.i686 (/glibc-2.12-1.25.el6.i686)
需要:libfreebl3.so(NSSRAWHASH_3.12.3)
错误:软件包:glibc-2.12-1.25.el6.i686 (/glibc-2.12-1.25.el6.i686)
需要:libfreebl3.so

我通过同时安装 nss-softokn-freebl-3.12.9-3.el6.i686.rpm glibc-2.12-1.25.el6.i686.rpm 解决了此“libfreebl3.so”错误。<= 这是解决方案的重点!!!

$ yum 安装 nss-softokn-freebl-3.12.9-3.el6.i686.rpm glibc-2.12-1.25.el6.i686.rpm

此后,我可以成功安装“glibc-devel-2.12-1.25.el6.i686.rpm”。
$ yum install glibc-devel-2.12-1.25.el6.i686.rpm

相关内容