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了

  • 相关阅读:
    html表单提交的几种方法
    ORACLE-SQLLOAD导入外部数据详解
    js 技巧1
    js 细节
    问题链接
    abstract 抽象类
    修饰符 public、 private 和 protected和区别
    HTML5新特性之Mutation Observer
    img 标签上的src 链接图片不存在时 怎么处理
    npm 用 淘宝代理
  • 原文地址:https://www.cnblogs.com/rohero/p/5422334.html
Copyright © 2011-2022 走看看