zoukankan      html  css  js  c++  java
  • ubuntu 20.04 LTS 更换阿里云源

    第一步:先备份下原始源:

    sudo cp /etc/apt/source.list /etc/apt/source.list.backup

    第二步:修改文件   

    sudo vim  /etc/apt/source.list

    清除原有的,替换以下源

    复制代码
    deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
    deb http://mirrors.aliyun.com/ubuntu/ focal universe
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
    deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted
    deb http://mirrors.aliyun.com/ubuntu/ focal-security universe
    deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse
    复制代码

     保存下,即可执行更新

    sudo  apt update
    sudo  apt upgrade
  • 相关阅读:
    It is unuseful to regret
    越难熬的时候,越要靠自己
    2019/11/11
    QT Http
    QT 初步认识
    模板
    RTTI(Runtime Type Infomation)
    位域
    C++ 多字节string转UTF-8 string
    C++ 读写csv文件
  • 原文地址:https://www.cnblogs.com/chinasoft/p/15420913.html
Copyright © 2011-2022 走看看