[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了

相关文章:

  • 2021-11-25
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-07-17
  • 2021-08-06
  • 2021-08-15
相关资源
相似解决方案