yum安装出错

[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
: PYCURL ERROR - "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.-.el6.x86_64
samba-common-3.6.-.el6.x86_64
samba-client-3.6.-.el6.x86_64
samba-winbind-3.6.-.el6.x86_64
samba4-libs-4.0.-.el6.rc4.x86_64
[root@lxh yum.repos.d]# rpm -e samba-common-3.6.-.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了

上一篇:BZOJ 3585: mex( 离线 + 线段树 )


下一篇:AppScan 测试需要输入用户名密码的网站