zoukankan      html  css  js  c++  java
  • 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
    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了

  • 相关阅读:
    pymysql模块的简单操作
    day21--继承--派生
    subprocess模式,re模式,logging模块, 防止测试自动执行, 包的理论
    前端知识
    Django框架
    jieba/word cloud
    python语法基础知识
    Vue框架——Vue指令
    Vue框架基础
    Django——静态文件配置和连接数据库
  • 原文地址:https://www.cnblogs.com/rohero/p/5422334.html
Copyright © 2011-2022 走看看