[root@lxh yum.repos.d]# yum install -y samba
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
 * extras: mirrors.skyshe.cn
 * updates: centos.ustc.edu.cn
http://mirrors.tencentyun.com/centos1/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.tencentyun.com'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

解决办法

[root@lxh yum.repos.d]# rpm -qa |grep samba
samba-winbind-clients-3.6.9-164.el6.x86_64
samba-common-3.6.9-164.el6.x86_64
samba-client-3.6.9-164.el6.x86_64
samba-winbind-3.6.9-164.el6.x86_64
samba4-libs-4.0.0-58.el6.rc4.x86_64
[root@lxh yum.repos.d]# rpm -e samba-common-3.6.9-164.el6.x86_64 -f --nodeps
warning: /etc/samba/smb.conf saved as /etc/samba/smb.conf.rpmsave
[root@lxh yum.repos.d]# yum install -y samba

这样就能成功安装samba了

posted on 2016-04-22 18:05  Rohero  阅读(819)  评论(0编辑  收藏  举报