Centos
在 CentOS 6.4 上安裝 Samba 4.0.7
CentOS 6.4 的 yum repo 只有 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
您需要擺脫以前的 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-tdb
orpytalloc
,至少對於erase
andinstall
來說,因為這有效。
包裹
python-tevent
sernet-samba 軟體包與之衝突,很可能是以前 CentOS 安裝 samba 的結果。檢查與
rpm -qi python-tevent | grep Repository
它來自哪個儲存庫。如果它來自“base”,請先將其刪除,然後再試一次。
另請注意,僅檢查 samba 的版本號是不夠的;RedHat 在適當的時候向後移植安全修復程序(當然,CentOS 也繼承了這些)。在https://access.redhat.com/security/updates/backporting/?sc_cid=3093查看他們的頁面。