在 CentOS 6.4 上安装 Samba 4.0.7

在 CentOS 6.4 上安装 Samba 4.0.7

CentOS 6.4 的 yum 仓库只有 4.0.0。从那时起我看到了一些主要的安全和稳定性补丁。

所以我注册了 SerNet,并按照他们的指示安装了他们的 GPG 密钥。然后我做了:

sudo yum -y install sernet-samba*

输出结束于:

> Transaction Summary
> ================================================================================================================================ Install      34 Package(s)
> 
> Total size: 36 M Installed size: 157 M Downloading Packages: Running
> rpm_check_debug Running Transaction Test
> 
> 
> Transaction Check Error:   file
> /usr/lib/python2.6/site-packages/tdb.so from install of
> sernet-samba-ad-4.0.7-2.el6.i686 conflicts with file from package
> python-tdb-1.2.10-1.el6.i686   file
> /usr/lib/python2.6/site-packages/talloc.so from install of
> sernet-samba-ad-4.0.7-2.el6.i686 conflicts with file from package
> pytalloc-2.0.7-2.el6.i686   file
> /usr/lib/python2.6/site-packages/ldb.so from install of
> sernet-samba-ad-4.0.7-2.el6.i686 conflicts with file from package
> pyldb-1.1.13-3.el6.i686   file
> /usr/lib/python2.6/site-packages/_tevent.so from install of
> sernet-samba-ad-4.0.7-2.el6.i686 conflicts with file from package
> python-tevent-0.9.17-1.el6.i686   file
> /usr/lib/python2.6/site-packages/tevent.pyc from install of
> sernet-samba-ad-4.0.7-2.el6.i686 conflicts with file from package
> python-tevent-0.9.17-1.el6.i686   file
> /usr/lib/python2.6/site-packages/tevent.pyo from install of
> sernet-samba-ad-4.0.7-2.el6.i686 conflicts with file from package
> python-tevent-0.9.17-1.el6.i686
> 
> Error Summary
> -------------

...然后回到提示。这是否意味着我需要升级 python 或者其他东西?我已经安装了:

Python 2.6.6 (r266:84292, Feb 21 2013, 23:54:59)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2

不够新?

$ rpm -qi python-tevent
Name        : python-tevent                Relocations: (not relocatable)
Version     : 0.9.17                            Vendor: CentOS
Release     : 1.el6                         Build Date: Fri 22 Feb 2013 01:47:57 AM EST
Install Date: Thu 04 Jul 2013 09:56:11 AM EDT      Build Host: c6b8.bsys.dev.centos.org
Group       : Development/Libraries         Source RPM: libtevent-0.9.17-1.el6.src.rpm
Size        : 16963                            License: LGPLv3+
Signature   : RSA/SHA1, Sat 23 Feb 2013 12:52:51 PM EST, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://tevent.samba.org/
Summary     : Python bindings for the Tevent library
Description :
Python bindings for libtevent

答案1

套餐

python-tevent

sernet-samba 软件包与之冲突,很可能是由于之前 CentOS 安装了 samba 造成的。检查与

rpm -qi python-tevent | grep Repository

它来自哪个存储库。如果它来自“base”,请先将其删除,然后重试。

另请注意,仅检查 samba 的版本号是不够的;还需要检查 samba 的版本号。 RedHat 适当地向后移植了安全修复程序(当然,CentOS 也继承了这些修复程序)。请参阅他们的相关页面:https://access.redhat.com/security/updates/backporting/?sc_cid=3093

答案2

您需要摆脱以前的 samba 安装依赖项:

$ sudo yum -y erase libtevent
$ sudo yum -y erase python-tdb
$ sudo yum -y erase pytalloc

进而:

$ sudo yum -y install sernet-samba*

...将工作。虽然yum依赖于 python,但它似乎不依赖于python-tdbor pytalloc,至少对于eraseand来说install,因为这有效。

相关内容