美文网首页
(1)ubuntu20.04更换 阿里源

(1)ubuntu20.04更换 阿里源

作者: 纵春水东流 | 来源:发表于2021-04-12 15:37 被阅读0次

    一、shell

    #! /bin/bash
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    sudo echo \
    "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    
    deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    
    #deb http://cz.archive.ubuntu.com/ubuntu bionic main universe
    # deb http://security.ubuntu.com/ubuntu xenial-security main
    # deb https://typora.io/linux ./
    # deb-src https://typora.io/linux ./"  > /etc/apt/sources.list
    

    二、

    deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    
    deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    
    #deb http://cz.archive.ubuntu.com/ubuntu bionic main universe
    # deb http://security.ubuntu.com/ubuntu xenial-security main
    # deb https://typora.io/linux ./
    # deb-src https://typora.io/linux ./
    

    echo
    dfafds
    fafdsa"

    相关文章

      网友评论

          本文标题:(1)ubuntu20.04更换 阿里源

          本文链接:https://www.haomeiwen.com/subject/rqexlltx.html