zoukankan      html  css  js  c++  java
  • centos5 源失效解决办法

    将源文件备份

    [base]
    name=CentOS-$releasever - Base
    failovermethod=priority
    baseurl=http://vault.centos.org/5.11/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5
    http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-5
    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    failovermethod=priority
    baseurl=http://vault.centos.org/5.11/updates/$basearch/
    		http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5
    http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-5
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    failovermethod=priority
    baseurl=http://vault.centos.org/5.11/extras/$basearch/
    		http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5
    http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-5
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    failovermethod=priority
    baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
    		http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5
    http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-5
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    failovermethod=priority
    baseurl=http://vault.centos.org/5.11/contrib/$basearch/
    		http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5
    http://mirrors.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-5
    

      

  • 相关阅读:
    Dangling Javadoc comment
    IntelliJ IDEA :Error(1, 1) java 非法字符 'ufeff'
    什么是webhook
    智能DNS
    filebeat 乱码
    windows,交换机syslog收集
    Rsyslog
    ntp
    centos7 -lvm卷组
    nginx安装
  • 原文地址:https://www.cnblogs.com/lcxiao/p/11361037.html
Copyright © 2011-2022 走看看