zoukankan      html  css  js  c++  java
  • Ubuntu18.04修改apt-get源

    Ubuntu18.04修改apt-get源

     

    1.背景

      服务器上安装了最新的Ubuntu Server 18.04,使用apt-get命令安装软件时,有时候速度比较慢,用国内的镜像源更换下apt-get的默认源。

    2.实现

    (1)编辑源文件,vim /etc/apt/sources.list ,将原源使用#注释掉。

    (2)使用网易apt-get源,替换为如下(注意版本 不同,源不同,用不同的代码替换 ”bionic“):

    复制代码
    deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    复制代码

    (3)再执行apt-get update,apt-get upgrade,就配置好了。

  • 相关阅读:
    docker初识--简单用法
    性能测试--面向目标场景设计
    性能测试之--波浪场景设计
    性能测试之--阶梯负载场景设计
    Jmeter后置处理器之正则提取器详解
    JMETE-元件执行顺序
    python高阶函数-map、reduce、filter
    socket 多线程安全、粘包问题
    The fastest MySQL Sandbox setup ever!
    两个实用的Python的装饰器
  • 原文地址:https://www.cnblogs.com/wwh/p/11608282.html
Copyright © 2011-2022 走看看