• Ubuntu14.04 server (amd64)修改源


    1.备份原来的源文件

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    

    2.修改源

    sudo vi /etc/apt/sources.list
    ##Ubuntu 官方更新服务器(欧洲,此为官方源,国内较慢,但无同步延迟问题,电信、移动/铁通、联通等公网用户可以使用):  
      
      
      
    deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse  
      
    deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse  
      
    deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse  
      
    deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse  
      
    deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse  
      
    deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse  
      
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse  
      
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse  
      
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse  
      
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse  
      
    ##Ubuntu官方提供的其他软件(第三方闭源软件等):  
      
      
      
    deb http://archive.canonical.com/ubuntu/ trusty partner  
      
    deb http://extras.ubuntu.com/ubuntu/ trusty main 
    

      

    保存!

    sudo apt-get update

  • 相关阅读:
    基础1-安装zookeeper
    Logstash-input-file 配置
    Logstash-input-rabbitmq 配置
    EF 部分更新 忽略NULL
    CoreApi 3.1
    logstash基于RabbitMQ的输入配置
    史上最详细的linux三剑客讲解-grep-awk-sed
    CDN概述
    HttpDNS和传统DNS的区别
    Linux性能分析工具之----mpstat
  • 原文地址:https://www.cnblogs.com/sea-stream/p/9793219.html
Copyright © 2020-2023  润新知