CentOS Samba 无法安装

CentOS Samba 无法安装

我在 CentOS 6.5 服务器上安装 samba 时遇到问题。我运行:

yum install samba

它找到了软件包,但是出现了以下错误消息,我无法继续:

Error: Package: samba-winbind-clients-3.6.9-151.el6_4.1.i686 (updates)
           Requires: samba-winbind = 3.6.9-151.el6_4.1
           Installed: samba-winbind-3.6.9-164.el6.x86_64 (@base/$releasever)
               samba-winbind = 3.6.9-164.el6
           Available: samba-winbind-3.6.9-151.el6.x86_64 (base)
               samba-winbind = 3.6.9-151.el6
           Available: samba-winbind-3.6.9-151.el6_4.1.x86_64 (updates)
               samba-winbind = 3.6.9-151.el6_4.1
           Available: samba4-winbind-4.0.0-55.el6.rc4.x86_64 (base)
               samba-winbind = 4.0.0-55.el6.rc4
Error: Package: glibc-2.12-1.107.el6_4.5.i686 (updates)
           Requires: glibc-common = 2.12-1.107.el6_4.5
           Installed: glibc-common-2.12-1.132.el6.x86_64 (@base/$releasever)
               glibc-common = 2.12-1.132.el6
           Available: glibc-common-2.12-1.107.el6.x86_64 (base)
               glibc-common = 2.12-1.107.el6
           Available: glibc-common-2.12-1.107.el6_4.2.x86_64 (updates)
               glibc-common = 2.12-1.107.el6_4.2
           Available: glibc-common-2.12-1.107.el6_4.4.x86_64 (updates)
               glibc-common = 2.12-1.107.el6_4.4
           Available: glibc-common-2.12-1.107.el6_4.5.x86_64 (updates)
               glibc-common = 2.12-1.107.el6_4.5
Error: p11-kit-trust conflicts with nss-3.14.3-4.el6_4.i686
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我已经很久没用过 Linux 了,所以我真的不知道该怎么办,我试过错误消息建议的命令,但没有用。我在安装 MySQL 时也遇到了同样的问题

答案1

您不知何故与上游发行版不同步。要解决此问题:

  1. 清除 yum 缓存。

    yum clean all
    
  2. 将您安装的所有软件重新同步到最新的可用版本。

    yum distro-sync
    

    (不要在yum update这里烦恼;这不太可能有帮助,因为无论如何它可能都不会做任何事情。)

现在再次尝试安装。

答案2

尝试 ayum update然后跟yum install samba samba-client samba-winbind

相关内容