美文网首页
ubuntu 22.04更换源

ubuntu 22.04更换源

作者: 老陕西 | 来源:发表于2023-01-06 10:18 被阅读0次

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

    sudo bash -c "cat << EOF > /etc/apt/sources.list && apt update 
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    EOF"
    

    相关文章

      网友评论

          本文标题:ubuntu 22.04更换源

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